From 04023ba6095d94df8b486118a5b381b672565c35 Mon Sep 17 00:00:00 2001 From: DEKHTIARJonathan Date: Thu, 19 Apr 2018 10:57:56 +0200 Subject: [PATCH] Requirements Pinned with range to insure tested versions are used. Range are used to prevent updating requirements all the time. --- docs/requirements.txt | 15 ++++++++------- requirements.txt | 10 +++++----- requirements_dev.txt | 1 + setup.py | 2 ++ tests/requirements.txt | 14 +++++++------- 5 files changed, 23 insertions(+), 19 deletions(-) create mode 100644 requirements_dev.txt diff --git a/docs/requirements.txt b/docs/requirements.txt index 536d08901..bc48f2523 100644 --- a/docs/requirements.txt +++ b/docs/requirements.txt @@ -1,7 +1,8 @@ -matplotlib -pymongo -progressbar2==3.37.0 -scikit-image -scipy -sphinx==1.7.1 -tensorflow==1.5.0 +flake8-docstrings>=1.3,<1.4 +matplotlib>=2.2,<2.3 +pymongo>=3.6,<3.7 +progressbar2>=3.37,<3.38 +scikit-image>=0.13,<0.14 +scipy>=1.0,<1.1 +sphinx>=1.7,<1.8 +tensorflow>=1.7,<1.8 diff --git a/requirements.txt b/requirements.txt index e2be80218..bcce7cccb 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,5 +1,5 @@ -numpy -progressbar2==3.37.0 -scipy -scikit-image -matplotlib +matplotlib>=2.2,<2.3 +numpy>=1.14,<1.15 +progressbar2>=3.37,<3.38 +scikit-image>=0.13,<0.14 +scipy>=1.0,<1.1 diff --git a/requirements_dev.txt b/requirements_dev.txt new file mode 100644 index 000000000..c1454c776 --- /dev/null +++ b/requirements_dev.txt @@ -0,0 +1 @@ +autopep8>=1.3,<1.4 \ No newline at end of file diff --git a/setup.py b/setup.py index 2993ff57a..351b6ac45 100755 --- a/setup.py +++ b/setup.py @@ -131,6 +131,8 @@ def req_file(filename): # dependencies). You can install these using the following syntax, # $ pip install -e .[test] extras_require={ + 'dev': req_file("requirements_dev.txt"), + 'doc': req_file("docs/requirements.txt"), 'test': req_file("tests/requirements.txt") }, scripts=[ diff --git a/tests/requirements.txt b/tests/requirements.txt index 055c17a11..30ea1b241 100644 --- a/tests/requirements.txt +++ b/tests/requirements.txt @@ -1,7 +1,7 @@ -keras==2.1.5 -pydocstyle==2.1.1 -pytest==3.4.1 -pytest-cache==1.0 -pytest-cov==2.5.1 -pytest-xdist==1.22.2 -yapf==0.20.2 \ No newline at end of file +keras>=2.1,<2.2 +pydocstyle>=2.1,<2.2 +pytest>=3.4,<3.5 +pytest-cache>=1.0,<1.1 +pytest-cov>=2.5,<2.6 +pytest-xdist>=1.22,<1.23 +yapf>=0.20,<0.21 \ No newline at end of file