on master help sign in
[enh] setup.py requirements ++ new folders
5c073fdAdam Tauber
setup.py+7−28
@@ -17,6 +17,8 @@ def read(*rnames):
17
17
18
18
19long_description = read('README.rst')
19long_description = read('README.rst')
20+requirements = map(str.strip, open('requirements.txt').readlines())
21+dev_requirements = map(str.strip, open('requirements-dev.txt').readlines())
20
22
21setup(
23setup(
22 name='searx',
24 name='searx',
@@ -38,35 +40,9 @@ setup(
38 license='GNU Affero General Public License',
40 license='GNU Affero General Public License',
39 packages=find_packages('.'),
41 packages=find_packages('.'),
40 zip_safe=False,
42 zip_safe=False,
41− install_requires=[
43+ install_requires=requirements,
42− 'flask',
43− 'flask-babel',
44− 'requests',
45− 'lxml',
46− 'pyyaml',
47− 'pygments',
48− 'setuptools',
49− 'python-dateutil',
50− 'pyopenssl',
51− 'ndg-httpsclient',
52− 'pyasn1',
53− 'pyasn1-modules',
54− 'certifi'
55− ],
56 extras_require={
44 extras_require={
57− 'test': [
45+ 'test': dev_requirements
58− 'coverage',
59− 'flake8',
60− 'mock',
61− 'plone.testing',
62− 'robotframework',
63− 'robotframework-debuglibrary',
64− 'robotframework-httplibrary',
65− 'robotframework-selenium2library',
66− 'robotsuite',
67− 'unittest2',
68− 'zope.testrunner',
69− ]
70 },
46 },
71 entry_points={
47 entry_points={
72 'console_scripts': [
48 'console_scripts': [
@@ -86,6 +62,9 @@ setup(
86 'static/*/*/*/*/*.*',
62 'static/*/*/*/*/*.*',
87 'templates/*/*.*',
63 'templates/*/*.*',
88 'templates/*/*/*.*',
64 'templates/*/*/*.*',
65+ 'tests/*',
66+ 'tests/*/*',
67+ 'tests/*/*/*',
89 'translations/*/*/*'
68 'translations/*/*/*'
90 ],
69 ],
91 },
70 },