Przeglądaj źródła

[enh] setup.py requirements ++ new folders

Adam Tauber 9 lat temu
rodzic
commit
5c073fdd83
1 zmienionych plików z 7 dodań i 28 usunięć
  1. 7
    28
      setup.py

+ 7
- 28
setup.py Wyświetl plik

17
 
17
 
18
 
18
 
19
 long_description = read('README.rst')
19
 long_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
 
21
 setup(
23
 setup(
22
     name='searx',
24
     name='searx',
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=[
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
-    ],
43
+    install_requires=requirements,
56
     extras_require={
44
     extras_require={
57
-        'test': [
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
-        ]
45
+        'test': dev_requirements
70
     },
46
     },
71
     entry_points={
47
     entry_points={
72
         'console_scripts': [
48
         'console_scripts': [
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
     },