diff --git a/bukuserver/requirements.txt b/bukuserver/requirements.txt index cdd5d38..5437826 100644 --- a/bukuserver/requirements.txt +++ b/bukuserver/requirements.txt @@ -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 diff --git a/setup.py b/setup.py index 678dad3..58b937a 100644 --- a/setup.py +++ b/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', ] diff --git a/tests/test_setup.py b/tests/test_setup.py new file mode 100644 index 0000000..63dda86 --- /dev/null +++ b/tests/test_setup.py @@ -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