From 564f55a5071089dfb02ccc4e34869cb2a52f5505 Mon Sep 17 00:00:00 2001 From: russellballestrini Date: Wed, 2 Dec 2015 16:27:11 -0500 Subject: [PATCH] 0.1.0 --- MANIFEST.in | 1 + README.rst | 2 +- setup.py | 25 +++++++++++++++++++------ 3 files changed, 21 insertions(+), 7 deletions(-) create mode 100644 MANIFEST.in diff --git a/MANIFEST.in b/MANIFEST.in new file mode 100644 index 0000000..f9bd145 --- /dev/null +++ b/MANIFEST.in @@ -0,0 +1 @@ +include requirements.txt diff --git a/README.rst b/README.rst index 1a89aec..bbf0825 100644 --- a/README.rst +++ b/README.rst @@ -1,7 +1,7 @@ nested_lookup ############# -.. image:: https://img.shields.io/badge/pypi-0.0.3-green.svg +.. image:: https://img.shields.io/badge/pypi-0.1.0-green.svg :target: https://pypi.python.org/pypi/nested-lookup .. image:: https://img.shields.io/badge/coverage-100%-green.svg diff --git a/setup.py b/setup.py index f90d983..12bc807 100644 --- a/setup.py +++ b/setup.py @@ -2,15 +2,15 @@ from setuptools import setup -from pip.req import parse_requirements - # get list of requirement strings from requirements.txt -install_requirements = parse_requirements('requirements.txt', session='None') -requires = map(lambda ir : str(ir.req), install_requirements) +remove_whitespace = lambda x : ''.join(x.split()) +sanitize = lambda x : not x.startswith('#') and x != '' +with open('requirements.txt', 'r') as f: + requires = filter(sanitize, map(remove_whitespace, f.readlines() )) setup( name = 'nested-lookup', - version = '0.0.3', + version = '0.1.0', description = 'lookup a key in a deeply nested document of dicts and lists', keywords = 'nested document dictionary dict list lookup schema json xml yaml', long_description = open('README.rst').read(), @@ -24,10 +24,23 @@ setup( py_modules = ['nested_lookup'], include_package_data = True, + install_requires = requires, + + classifiers = [ + # Specify the Python versions you support here. In particular, ensure + # that you indicate whether you support Python 2, Python 3 or both. + 'Programming Language :: Python :: 2', + 'Programming Language :: Python :: 2.6', + 'Programming Language :: Python :: 2.7', + 'Programming Language :: Python :: 3', + 'Programming Language :: Python :: 3.2', + 'Programming Language :: Python :: 3.3', + 'Programming Language :: Python :: 3.4', + ], ) # setup keyword args: http://peak.telecommunity.com/DevCenter/setuptools # built and uploaded to pypi with this: -# python setup.py sdist bdist_egg register upload +# python setup.py sdist bdist_egg bdist_wheel register upload