aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2020-11-29 18:30:48 +0300
committerEgor Tensin <Egor.Tensin@gmail.com>2020-11-29 20:36:31 +0300
commitb6d3406bdfe8e5c1b44104e7fc071eb88fdfd869 (patch)
tree2ecfec2d43d686a66eca6c172ea711888ed93ee5
parentadd GitHub workflow (diff)
downloadvk-scripts-b6d3406bdfe8e5c1b44104e7fc071eb88fdfd869.tar.gz
vk-scripts-b6d3406bdfe8e5c1b44104e7fc071eb88fdfd869.zip
update requirements.txt
-rw-r--r--.github/workflows/test.yml8
-rw-r--r--constraints.txt3
-rw-r--r--requirements.txt7
3 files changed, 13 insertions, 5 deletions
diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml
index 723fa69..f64c44b 100644
--- a/.github/workflows/test.yml
+++ b/.github/workflows/test.yml
@@ -12,6 +12,10 @@ jobs:
test:
runs-on: ubuntu-18.04
+ env:
+ PIP_DISABLE_PIP_VERSION_CHECK: 1
+ PIP_NO_PYTHON_VERSION_WARNING: 1
+
strategy:
fail-fast: false
matrix:
@@ -29,7 +33,9 @@ jobs:
python-version: '${{ matrix.python-version }}'
- name: Install dependencies
- run: python -m pip install -r requirements.txt
+ run: |
+ pip install -r constraints.txt
+ pip install -r requirements.txt
- name: Run the tests
run: ./.ci/bin/main.sh
diff --git a/constraints.txt b/constraints.txt
new file mode 100644
index 0000000..8a74c51
--- /dev/null
+++ b/constraints.txt
@@ -0,0 +1,3 @@
+# Numpy 1.17 dropped support for Python 3.4.
+numpy >1.11,<1.17 ; python_version == '3.4'
+numpy >=1.17 ; python_version > '3.4'
diff --git a/requirements.txt b/requirements.txt
index 8fe1f23..0e97461 100644
--- a/requirements.txt
+++ b/requirements.txt
@@ -1,4 +1,3 @@
-numpy>1.11.0
-matplotlib==1.5.1; python_version == '3.4'
-matplotlib==2.1.2; python_version == '3.5'
-matplotlib==3.1.1; python_version > '3.5'
+matplotlib ~=1.5 ; python_version == '3.4'
+matplotlib ~=2.1 ; python_version == '3.5'
+matplotlib ~=3.1 ; python_version > '3.5'