Skip to content
Browse files 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

  pip install -e .\[test\]

Signed-off-by: Markus Heiser <>
  • Loading branch information
return42 committed Nov 28, 2019
1 parent 05033ea commit a56c56ead319ab150dcb5c9f055e62f4103a59a7
Showing with 6 additions and 6 deletions.
  1. +6 −6
@@ -11,14 +11,14 @@
sys.path.insert(0, './searx')
from version import VERSION_STRING

with open('README.rst') as f:
long_description =

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()]


0 comments on commit a56c56e

Please sign in to comment.
You can’t perform that action at this time.