Skip to content

Commit

Permalink
Update for numpy 2
Browse files Browse the repository at this point in the history
  • Loading branch information
wpreimes committed Nov 13, 2024
1 parent 26b347e commit 5a1c6d6
Show file tree
Hide file tree
Showing 8 changed files with 18 additions and 121,793 deletions.
19 changes: 11 additions & 8 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ jobs:
miniconda-version: "latest"
auto-update-conda: true
python-version: ${{ matrix.python-version }}
environment-file: environment.yml
activate-environment: pytesmo
channel-priority: flexible
auto-activate-base: false
- name: Print Infos
Expand All @@ -60,14 +62,6 @@ jobs:
shell: bash -l {0}
run: |
pytest --cache-clear
- name: Upload Coverage
shell: bash -l {0}
run: |
pip install coveralls && coveralls --service=github
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
COVERALLS_FLAG_NAME: ${{ matrix.python-version }}
COVERALLS_PARALLEL: true
- name: Create wheel and dist package
shell: bash -l {0}
run: |
Expand All @@ -76,6 +70,15 @@ jobs:
python setup.py bdist_wheel --dist-dir artifacts/dist
ls artifacts/dist
twine check artifacts/dist/*
- name: Upload Coverage
shell: bash -l {0}
run: |
pip install coveralls && coveralls --service=github
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
COVERALLS_FLAG_NAME: ${{ matrix.python-version }}
COVERALLS_PARALLEL: true

- name: Upload Artifacts
uses: actions/upload-artifact@v4
with:
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[build-system]
requires = ["Cython >= 0.29.23", "setuptools>=46.1.0", "wheel", "setuptools_scm[toml]>=5", "oldest-supported-numpy"]
requires = ["Cython >= 0.29.23", "setuptools>=46.1.0", "wheel", "setuptools_scm[toml]>=5", "numpy>=2,<3"]
build-backend = "setuptools.build_meta"
[tool]
[tool.setuptools_scm]
Expand Down
Loading

0 comments on commit 5a1c6d6

Please sign in to comment.