This commit is contained in:
2017-03-01 18:23:03 -08:00
parent 697887dc2e
commit 66de9c0d2a
3 changed files with 65 additions and 0 deletions
+6
View File
@@ -0,0 +1,6 @@
[[source]]
url = "https://pypi.python.org/simple"
verify_ssl = true
[packages]
toml = "*"
+49
View File
@@ -0,0 +1,49 @@
"""
pip-pop manages your requirements files.
"""
import sys
from setuptools import setup
setup(
name='toml2json',
version='0.1.0',
url='https://github.com/kennethreitz/toml2json',
license='MIT',
author='Kenneth Reitz',
author_email='me@kennethreitz.org',
# description=__doc__.strip('\n'),
#packages=[],
scripts=['toml2json'],
#include_package_data=True,
zip_safe=False,
platforms='any',
install_requires=['toml'],
classifiers=[
# As from https://pypi.python.org/pypi?%3Aaction=list_classifiers
#'Development Status :: 1 - Planning',
#'Development Status :: 2 - Pre-Alpha',
#'Development Status :: 3 - Alpha',
'Development Status :: 4 - Beta',
#'Development Status :: 5 - Production/Stable',
#'Development Status :: 6 - Mature',
#'Development Status :: 7 - Inactive',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
#'Programming Language :: Python :: 2.3',
#'Programming Language :: Python :: 2.4',
#'Programming Language :: Python :: 2.5',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
#'Programming Language :: Python :: 3',
#'Programming Language :: Python :: 3.0',
#'Programming Language :: Python :: 3.1',
#'Programming Language :: Python :: 3.2',
#'Programming Language :: Python :: 3.3',
'Intended Audience :: Developers',
'Intended Audience :: System Administrators',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Topic :: System :: Systems Administration',
]
)
Executable
+10
View File
@@ -0,0 +1,10 @@
#!/usr/bin/env python
import sys
import json
import toml
piped_in = sys.stdin.read()
print(json.dumps(toml.loads(piped_in)))