Merge pull request #387 from rachmadaniHaryono/feature/test_setup
new: dev: sync requirement file and setup
This commit is contained in:
commit
2c577a9afa
@ -1,19 +1,23 @@
|
||||
appdirs==1.4.3
|
||||
beautifulsoup4==4.5.3
|
||||
appdirs>=1.4.3
|
||||
arrow>=0.12.1
|
||||
beautifulsoup4>=4.5.3
|
||||
buku>=2.9
|
||||
cffi==1.9.1
|
||||
click==6.7
|
||||
Flask>=0.12.3
|
||||
requests>=2.20.0
|
||||
Flask-API==0.6.9
|
||||
idna==2.5
|
||||
itsdangerous==0.24
|
||||
cffi>=1.9.1
|
||||
click>=6.7
|
||||
Flask-Admin>=1.5.1
|
||||
Flask-API>=0.6.9
|
||||
Flask-Bootstrap>=3.3.7.1
|
||||
flask-paginate>=0.5.1
|
||||
Flask-WTF>=0.14.2
|
||||
Flask>=1.0.2
|
||||
idna>=2.5
|
||||
itsdangerous>=0.24
|
||||
Jinja2>=2.10.1
|
||||
MarkupSafe==1.0
|
||||
packaging==16.8
|
||||
pyasn1==0.2.3
|
||||
pycparser==2.17
|
||||
pyparsing==2.2.0
|
||||
six==1.10.0
|
||||
MarkupSafe>=1.0
|
||||
packaging>=16.8
|
||||
pyasn1>=0.2.3
|
||||
pycparser>=2.17
|
||||
requests>=2.20.0
|
||||
six>=1.10.0
|
||||
urllib3>=1.23
|
||||
Werkzeug==0.11.15
|
||||
Werkzeug>=0.11.15
|
||||
|
16
setup.py
16
setup.py
@ -32,15 +32,27 @@ tests_require = [
|
||||
|
||||
|
||||
server_require = [
|
||||
'appdirs>=1.4.3',
|
||||
'arrow>=0.12.1',
|
||||
'beautifulsoup4>=4.5.3',
|
||||
'cffi>=1.9.1',
|
||||
'click>=6.7',
|
||||
'Flask-Admin==1.5.1',
|
||||
'Flask-Admin>=1.5.1',
|
||||
'Flask-API>=0.6.9',
|
||||
'Flask-Bootstrap>=3.3.7.1',
|
||||
'flask-paginate>=0.5.1',
|
||||
'Flask-WTF>=0.14.2',
|
||||
'Flask>=0.12',
|
||||
'Flask>=1.0.2',
|
||||
'idna>=2.5',
|
||||
'itsdangerous>=0.24',
|
||||
'Jinja2>=2.10.1',
|
||||
'MarkupSafe>=1.0',
|
||||
'packaging>=16.8',
|
||||
'pyasn1>=0.2.3',
|
||||
'pycparser>=2.17',
|
||||
'requests>=2.20.0',
|
||||
'six>=1.10.0',
|
||||
'urllib3>=1.23',
|
||||
'Werkzeug>=0.11.15',
|
||||
]
|
||||
|
||||
|
10
tests/test_setup.py
Normal file
10
tests/test_setup.py
Normal file
@ -0,0 +1,10 @@
|
||||
def test_bukuserver_requirement(monkeypatch):
|
||||
def m_setup(**kwargs):
|
||||
return None
|
||||
import setuptools
|
||||
monkeypatch.setattr(setuptools, 'setup', m_setup)
|
||||
import setup
|
||||
setup_l = setup.server_require
|
||||
with open('bukuserver/requirements.txt') as f:
|
||||
bs_l = [x for x in f.read().splitlines() if not x.startswith('buku')]
|
||||
assert bs_l == setup_l
|
Loading…
Reference in New Issue
Block a user