diff options
author | Markus Heiser <markus.heiser@darmarit.de> | 2019-11-28 19:22:03 +0100 |
---|---|---|
committer | Markus Heiser <markus.heiser@darmarit.de> | 2019-11-28 19:22:03 +0100 |
commit | a56c56ead319ab150dcb5c9f055e62f4103a59a7 (patch) | |
tree | f99c328981fbd1d355be407a639df75bc427235e | |
parent | 05033ea8d8d3b3afb92c614a86399a499e7ad07e (diff) | |
download | searxng-a56c56ead319ab150dcb5c9f055e62f4103a59a7.tar.gz searxng-a56c56ead319ab150dcb5c9f055e62f4103a59a7.zip |
seatup.py: fix [dev_]requirements and open file with context
setup(..) named arguments 'install_requires' and 'extras_require' need lists
arguments, the <map object> is ignored when installing extra environment
'test'::
pip install -e .\[test\]
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
-rw-r--r-- | setup.py | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -11,14 +11,14 @@ import sys sys.path.insert(0, './searx') from version import VERSION_STRING +with open('README.rst') as f: + long_description = f.read() -def read(*rnames): - return open(os.path.join(os.path.dirname(__file__), *rnames)).read() +with open('requirements.txt') as f: + requirements = [ l.strip() for l in f.readlines()] - -long_description = read('README.rst') -requirements = map(str.strip, open('requirements.txt').readlines()) -dev_requirements = map(str.strip, open('requirements-dev.txt').readlines()) +with open('requirements-dev.txt') as f: + dev_requirements = [ l.strip() for l in f.readlines()] setup( name='searx', |