fix how we load requirements.txt in setup.py
modified: README.rst modified: setup.py
This commit is contained in:
parent
4b8eeaf969
commit
fcf2842de9
2 changed files with 11 additions and 5 deletions
|
|
@ -1,7 +1,7 @@
|
||||||
nested_lookup
|
nested_lookup
|
||||||
#############
|
#############
|
||||||
|
|
||||||
.. image:: https://img.shields.io/badge/pypi-0.2.17-green.svg
|
.. image:: https://img.shields.io/badge/pypi-0.2.18-green.svg
|
||||||
:target: https://pypi.python.org/pypi/nested-lookup
|
:target: https://pypi.python.org/pypi/nested-lookup
|
||||||
.. image:: https://travis-ci.org/rameshrvr/nested-lookup.svg?branch=master
|
.. image:: https://travis-ci.org/rameshrvr/nested-lookup.svg?branch=master
|
||||||
:target: https://travis-ci.org/rameshrvr/nested-lookup
|
:target: https://travis-ci.org/rameshrvr/nested-lookup
|
||||||
|
|
|
||||||
14
setup.py
14
setup.py
|
|
@ -12,12 +12,18 @@ def sanitize(x):
|
||||||
return not x.startswith("#") and x != ""
|
return not x.startswith("#") and x != ""
|
||||||
|
|
||||||
|
|
||||||
with open("requirements.txt", "r") as f:
|
def requirements():
|
||||||
requires = filter(sanitize, map(remove_whitespace, f.readlines()))
|
with open("requirements.txt", "r") as f:
|
||||||
|
r = f.readlines()
|
||||||
|
map(remove_whitespace, r)
|
||||||
|
filter(sanitize, r)
|
||||||
|
return r
|
||||||
|
|
||||||
|
print(requirements())
|
||||||
|
|
||||||
setup(
|
setup(
|
||||||
name="nested-lookup",
|
name="nested-lookup",
|
||||||
version="0.2.17",
|
version="0.2.18",
|
||||||
description="Python functions for working with deeply nested documents (lists and dicts) ",
|
description="Python functions for working with deeply nested documents (lists and dicts) ",
|
||||||
keywords="nested document dictionary dict list lookup schema json xml yaml",
|
keywords="nested document dictionary dict list lookup schema json xml yaml",
|
||||||
long_description=open("README.rst").read(),
|
long_description=open("README.rst").read(),
|
||||||
|
|
@ -28,7 +34,7 @@ setup(
|
||||||
license="Public Domain",
|
license="Public Domain",
|
||||||
packages=find_packages(),
|
packages=find_packages(),
|
||||||
include_package_data=True,
|
include_package_data=True,
|
||||||
install_requires=requires,
|
install_requires=requirements(),
|
||||||
classifiers=[
|
classifiers=[
|
||||||
# Specify the Python versions you support here. In particular, ensure
|
# Specify the Python versions you support here. In particular, ensure
|
||||||
# that you indicate whether you support Python 2, Python 3 or both.
|
# that you indicate whether you support Python 2, Python 3 or both.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue