Commit a56c56ea authored by Markus Heiser's avatar Markus Heiser

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: 's avatarMarkus Heiser <markus.heiser@darmarit.de>
parent 05033ea8
......@@ -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',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment