Skip to content

Commit bd4e099

Browse files
committed
Update minimum requirements
1 parent 3712c24 commit bd4e099

File tree

2 files changed

+41
-9
lines changed

2 files changed

+41
-9
lines changed

.github/workflows/test_min_reqs.yml

Lines changed: 39 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -57,22 +57,21 @@ jobs:
5757
run: |
5858
pytest
5959
60-
test_min_reqs_py38_39:
60+
test_min_reqs_py38:
6161
strategy:
6262
fail-fast: false
6363
matrix:
64-
python-version: ["3.8", "3.9"] # Same minimum requirements
6564
os:
6665
- ubuntu-latest
6766
- macOS-14
6867
- windows-latest
6968
runs-on: ${{ matrix.os }}
7069
steps:
7170
- uses: actions/checkout@v4
72-
- name: Set up Python ${{ matrix.python-version }}
71+
- name: Set up Python 3.8
7372
uses: actions/setup-python@v3
7473
with:
75-
python-version: ${{ matrix.python-version }}
74+
python-version: "3.8"
7675
- name: Install minimum dependencies
7776
run: |
7877
python -m pip install --upgrade pip
@@ -89,6 +88,38 @@ jobs:
8988
run: |
9089
pytest
9190
91+
test_min_reqs_py39:
92+
strategy:
93+
fail-fast: false
94+
matrix:
95+
os:
96+
- ubuntu-latest
97+
- macOS-14
98+
- windows-latest
99+
runs-on: ${{ matrix.os }}
100+
steps:
101+
- uses: actions/checkout@v4
102+
- name: Set up Python 3.9
103+
uses: actions/setup-python@v3
104+
with:
105+
python-version: "3.9"
106+
- name: Install minimum dependencies
107+
run: |
108+
python -m pip install --upgrade pip
109+
pip install -r requirements-dev.txt
110+
pip install cbor2==5.4.0
111+
pip install coincurve==${{ runner.os == 'macOS' && '18.0.0' || '15.0.1' }}
112+
pip install crcmod==1.7
113+
pip install ecdsa==0.17
114+
pip install ed25519-blake2b==1.4
115+
pip install pycryptodome==3.15
116+
pip install pynacl==1.5
117+
pip install py-sr25519-bindings==0.1.3
118+
- name: Run tests
119+
run: |
120+
pytest
121+
122+
92123
test_min_reqs_py310:
93124
strategy:
94125
fail-fast: false
@@ -108,7 +139,7 @@ jobs:
108139
run: |
109140
python -m pip install --upgrade pip
110141
pip install -r requirements-dev.txt
111-
pip install cbor2==5.1.2
142+
pip install cbor2==5.4.0
112143
pip install coincurve==${{ runner.os == 'macOS' && '18.0.0' || '16.0.0' }}
113144
pip install crcmod==1.7
114145
pip install ecdsa==0.17
@@ -139,7 +170,7 @@ jobs:
139170
run: |
140171
python -m pip install --upgrade pip
141172
pip install -r requirements-dev.txt
142-
pip install cbor2==5.1.2
173+
pip install cbor2==5.4.0
143174
pip install coincurve==18.0.0
144175
pip install crcmod==1.7
145176
pip install ecdsa==0.17
@@ -170,7 +201,7 @@ jobs:
170201
run: |
171202
python -m pip install --upgrade pip
172203
pip install -r requirements-dev.txt
173-
pip install cbor2==5.1.2
204+
pip install cbor2==5.4.0
174205
pip install coincurve==19.0.1
175206
pip install crcmod==1.7
176207
pip install ecdsa==0.17
@@ -201,7 +232,7 @@ jobs:
201232
run: |
202233
python -m pip install --upgrade pip
203234
pip install -r requirements-dev.txt
204-
pip install cbor2==5.1.2
235+
pip install cbor2==5.4.0
205236
pip install coincurve==21.0.0
206237
pip install crcmod==1.7
207238
pip install ecdsa==0.17

requirements.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
cbor2>=5.1.2,<6.0.0
1+
cbor2>=5.1.2,<6.0.0; python_version < '3.9'
2+
cbor2>=5.4.0,<6.0.0; python_version >= '3.9'
23
coincurve>=15.0.1,<19.0.0; python_version == '3.7'
34
coincurve>=15.0.1; python_version > '3.7' and python_version < '3.10'
45
coincurve>=16.0.0; python_version == '3.10'

0 commit comments

Comments
 (0)