소스 검색

[enh] setup.py requirements ++ new folders

Adam Tauber 9 년 전
부모
커밋
5c073fdd83
1개의 변경된 파일7개의 추가작업 그리고 28개의 파일을 삭제
  1. 7
    28
      setup.py

+ 7
- 28
setup.py 파일 보기

@@ -17,6 +17,8 @@ def read(*rnames):
17 17
 
18 18
 
19 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 23
 setup(
22 24
     name='searx',
@@ -38,35 +40,9 @@ setup(
38 40
     license='GNU Affero General Public License',
39 41
     packages=find_packages('.'),
40 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 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 47
     entry_points={
72 48
         'console_scripts': [
@@ -86,6 +62,9 @@ setup(
86 62
             'static/*/*/*/*/*.*',
87 63
             'templates/*/*.*',
88 64
             'templates/*/*/*.*',
65
+            'tests/*',
66
+            'tests/*/*',
67
+            'tests/*/*/*',
89 68
             'translations/*/*/*'
90 69
         ],
91 70
     },