diff options
| author | Adam Tauber <asciimoo@gmail.com> | 2019-12-10 15:14:18 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-12-10 15:14:18 +0000 |
| commit | f7a0510ac0e1853e3662b39254f3eb9be0efa2b0 (patch) | |
| tree | f9756e0a1304d07bd6e90a23d19c128ed39086e5 /setup.py | |
| parent | e9311ee77658607ad6d607950850e83c5af38d64 (diff) | |
| parent | 7beb49b1fb6f4bea5f4b99b853ab30ac47505790 (diff) | |
Merge pull request #1756 from return42/boilerplate
RFC: Makefile based boilerplate for python projects
Diffstat (limited to 'setup.py')
| -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', |