Skip to content

Commit

Permalink
Fix setup of Python dependencies in python.yml Actions workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
althonos committed Sep 3, 2024
1 parent 3fe7495 commit c3fb717
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 8 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,2 @@
cython ~=3.0
wheel
auditwheel <5.2
setuptools >=46.4.0
scikit-build-core
8 changes: 4 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ jobs:
- name: Install Python requirements
run: python -m pip install -r .github/workflows/requirements.txt
- name: Install test requirements
run: python -m pip install -r pyrodigal/tests/requirements.txt
run: python -m pip install -r src/pyrodigal/tests/requirements.txt
- name: Build C extension in debug mode
run: python setup.py build_ext --inplace --debug
- name: Test without coverage
Expand Down Expand Up @@ -128,7 +128,7 @@ jobs:
- name: Install Python requirements
run: python -m pip install -r .github/workflows/requirements.txt
- name: Install test requirements
run: python -m pip install -r pyrodigal/tests/requirements.txt
run: python -m pip install -r src/pyrodigal/tests/requirements.txt
- name: Build C extension in debug mode
run: python setup.py build_ext --inplace --debug --plat-name macos-x86_64
- name: Test without coverage
Expand Down Expand Up @@ -191,7 +191,7 @@ jobs:
- name: Install Python requirements
run: python -m pip install -r .github/workflows/requirements.txt
- name: Install test requirements
run: python -m pip install -r pyrodigal/tests/requirements.txt
run: python -m pip install -r src/pyrodigal/tests/requirements.txt
- name: Build C extension
run: python setup.py build_ext --inplace
- name: Test without coverage
Expand Down Expand Up @@ -224,7 +224,7 @@ jobs:
- name: Install Python requirements
run: python -m pip install -r .github/workflows/requirements.txt
- name: Install test requirements
run: python -m pip install -r pyrodigal/tests/requirements.txt
run: python -m pip install -r src/pyrodigal/tests/requirements.txt
- name: Install coverage package
run: python -m pip install -U coverage
- name: Build Prodigal with optimizations
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ dependencies = [
"PyPI" = "https://pypi.org/project/pyrodigal"

[project.optional-dependencies]
test = ["importlib-resources ; python_version < '3.7'"]
test = ["importlib-resources ; python_version < '3.9'"]
isal = ["isal ~=1.1"]
lz4 = ["lz4 ~=4.0"]
zst = ["zstandard ~=0.22"]
Expand Down

0 comments on commit c3fb717

Please sign in to comment.