Skip to content

Commit

Permalink
chore: Update numpy dependency to version 1.19.3 for compatibility wi…
Browse files Browse the repository at this point in the history
…th Python 3.9
  • Loading branch information
sunt05 committed Jul 4, 2024
1 parent 34d8a36 commit a90032b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/build-publish_to_pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,13 @@ jobs:
strategy:
matrix:
buildplat:
- [ubuntu-latest, manylinux, x86_64]
# - [ubuntu-latest, manylinux, x86_64]
- [macos-11, macosx, x86_64]
- [windows-2019, win, AMD64]
# - [windows-2019, win, AMD64]
- [macos-14, macosx, arm64]

python: ["cp39", "cp310", "cp311", "cp312"]


fail-fast: false

env:
Expand All @@ -54,7 +53,7 @@ jobs:
CIBW_ARCHS: ${{ matrix.buildplat[2] }}
CIBW_ENVIRONMENT_PASS_LINUX: RUNNER_OS
CIBW_BEFORE_ALL_MACOS: "brew install gfortran && brew unlink gfortran && brew link gfortran"
CIBW_BEFORE_BUILD_WINDOWS: "pip install delvewheel" # Use delvewheel on windows
CIBW_BEFORE_BUILD_WINDOWS: "pip install delvewheel" # Use delvewheel on windows
CIBW_REPAIR_WHEEL_COMMAND_WINDOWS: "delvewheel repair -w {dest_dir} {wheel}"
CIBW_TEST_REQUIRES: pytest
CIBW_TEST_COMMAND_MACOS: "python -m pytest '{project}/test'"
Expand Down
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ license = { text = "GPL-V3.0" }

dependencies = [
"pandas< 1.5; python_version <= '3.9'", # to fix scipy dependency issue in UMEP under QGIS3 wtih python 3.9
"numpy==1.19.3; python_version <= '3.9'", # oldest numpy version compatible with Python 3.9
"pandas; python_version > '3.9'",
"oldest-supported-numpy; python_version <= '3.9'", # oldest numpy version compatible with Python 3.9
"importlib_resources; python_version < '3.9'", # to fix importlib issue in UMEP under QGIS3
"pandas; python_version > '3.9'",
"matplotlib",
"chardet",
"scipy",
Expand Down

0 comments on commit a90032b

Please sign in to comment.