Skip to content

Commit

Permalink
Move typing_extensions to requirements.txt
Browse files Browse the repository at this point in the history
  • Loading branch information
ebellocchia committed Feb 9, 2024
1 parent 2dba85f commit 6f91a2b
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 5 deletions.
36 changes: 34 additions & 2 deletions .github/workflows/test_min_reqs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,43 @@ on:
branches: [ "master" ]

jobs:
build_test_py37_38_39:
build_test_py37:
strategy:
fail-fast: false
matrix:
python-version: ["3.7", "3.8", "3.9"] # Same minimum requirements
os:
- ubuntu-latest
- macOS-latest
- windows-latest
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: Set up Python 3.7
uses: actions/setup-python@v3
with:
python-version: "3.7"
- name: Install minimum dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements-dev.txt
pip install cbor2==5.1.2
pip install coincurve==15.0.1
pip install crcmod==1.7
pip install ecdsa==0.17
pip install ed25519-blake2b==1.4
pip install pycryptodome==3.15
pip install pynacl==1.5
pip install py-sr25519-bindings==0.1.3
pip install typing_extensions==3.7.2
- name: Run tests
run: |
pytest
build_test_py38_39:
strategy:
fail-fast: false
matrix:
python-version: ["3.8", "3.9"] # Same minimum requirements
os:
- ubuntu-latest
- macOS-latest
Expand Down
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,4 @@ pynacl~=1.5
py-sr25519-bindings>=0.1.3,<2.0.0; python_version < '3.10'
py-sr25519-bindings>=0.1.4,<2.0.0; python_version == '3.10'
py-sr25519-bindings>=0.2.0,<2.0.0; python_version >= '3.11'
typing_extensions>=3.7.2; python_version == '3.7'
3 changes: 0 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,9 +122,6 @@ class DevelopCommand(CommandBase, develop):
},
install_requires=load_requirements("requirements.txt"),
extras_require={
":python_version == '3.7'": [
"typing_extensions",
],
"develop": load_requirements("requirements-dev.txt"),
},
packages=setuptools.find_packages(exclude=["*tests*"]),
Expand Down

0 comments on commit 6f91a2b

Please sign in to comment.