modified: README.rst
modified: nested_lookup/__init__.py modified: nested_lookup/lookup_api.py modified: nested_lookup/nested_lookup.py modified: setup.py modified: test_lookup_api.py modified: test_nested_lookup.py
This commit is contained in:
parent
8cec46c76e
commit
9348af1790
7 changed files with 361 additions and 387 deletions
50
setup.py
50
setup.py
|
|
@ -1,54 +1,50 @@
|
|||
# installation: pip install nested-lookup
|
||||
|
||||
from setuptools import (
|
||||
setup,
|
||||
find_packages,
|
||||
)
|
||||
from setuptools import setup, find_packages
|
||||
|
||||
|
||||
# get list of requirement strings from requirements.txt
|
||||
def remove_whitespace(x):
|
||||
return ''.join(x.split())
|
||||
return "".join(x.split())
|
||||
|
||||
|
||||
def sanitize(x):
|
||||
return not x.startswith('#') and x != ''
|
||||
return not x.startswith("#") and x != ""
|
||||
|
||||
|
||||
with open('requirements.txt', 'r') as f:
|
||||
with open("requirements.txt", "r") as f:
|
||||
requires = filter(sanitize, map(remove_whitespace, f.readlines()))
|
||||
|
||||
setup(
|
||||
name='nested-lookup',
|
||||
version='0.2.15',
|
||||
description='Python functions for working with deeply nested documents (lists and dicts) ',
|
||||
keywords='nested document dictionary dict list lookup schema json xml yaml',
|
||||
long_description=open('README.rst').read(),
|
||||
|
||||
author='Russell Ballestrini',
|
||||
author_email='russell@ballestrini.net',
|
||||
url='https://github.com/russellballestrini/nested-lookup',
|
||||
|
||||
platforms=['All'],
|
||||
license='Public Domain',
|
||||
|
||||
name="nested-lookup",
|
||||
version="0.2.15",
|
||||
description="Python functions for working with deeply nested documents (lists and dicts) ",
|
||||
keywords="nested document dictionary dict list lookup schema json xml yaml",
|
||||
long_description=open("README.rst").read(),
|
||||
author="Russell Ballestrini",
|
||||
author_email="russell@ballestrini.net",
|
||||
url="https://github.com/russellballestrini/nested-lookup",
|
||||
platforms=["All"],
|
||||
license="Public Domain",
|
||||
packages=find_packages(),
|
||||
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.6',
|
||||
'Programming Language :: Python :: 2.7',
|
||||
'Programming Language :: Python :: 3.5',
|
||||
'Programming Language :: Python :: 3.6',
|
||||
'Programming Language :: Python :: 3.7',
|
||||
"Programming Language :: Python :: 2.6",
|
||||
"Programming Language :: Python :: 2.7",
|
||||
"Programming Language :: Python :: 3.5",
|
||||
"Programming Language :: Python :: 3.6",
|
||||
"Programming Language :: Python :: 3.7",
|
||||
],
|
||||
)
|
||||
|
||||
# setup keyword args: http://peak.telecommunity.com/DevCenter/setuptools
|
||||
|
||||
# build package:
|
||||
# pip install twine
|
||||
# python setup.py sdist
|
||||
|
||||
# built and uploaded to pypi with this:
|
||||
# python setup.py sdist bdist_egg register upload
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue