-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #137 from adrn/numpy20
Compatibility with numpy 2.0
- Loading branch information
Showing
8 changed files
with
170 additions
and
89 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,25 +18,42 @@ jobs: | |
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
python-version: ["3.9", "3.10", "3.11"] | ||
python-version: ["3.10", "3.11", "3.12"] | ||
os: ["ubuntu-latest", "macos-latest"] | ||
pymc-version: ["latest"] | ||
include: | ||
- os: ubuntu-latest | ||
python-version: "3.10" | ||
pymc-version: "5.10.0" # Oldest pymc version | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- uses: actions/checkout@v4 | ||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
|
||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- name: "Install hdf5 for tables (linux)" | ||
if: runner.os == 'ubuntu-latest' | ||
run: sudo apt-get install libhdf5-serial-dev | ||
|
||
- name: Install dependencies | ||
run: | | ||
python -m pip install -U pip | ||
python -m pip install -e .[test] | ||
- name : "Install hdf5 for tables (mac)" | ||
if: runner.os == 'macos-latest' | ||
run: brew install hdf5 | ||
|
||
- name: Test package | ||
run: >- | ||
python -m pytest -ra --cov --cov-report=xml --cov-report=term --durations=20 | ||
- name: Install dependencies | ||
run: | | ||
python -m pip install -U pip | ||
python -m pip install -e .[test] | ||
- name: Upload coverage report | ||
uses: codecov/[email protected] | ||
- name: Correct pymc version | ||
if: matrix.pymc-version != 'latest' | ||
run: | | ||
python -m pip install pymc==${{ matrix.pymc-version }} | ||
- name: Test package | ||
run: >- | ||
python -m pytest -ra --cov --cov-report=xml --cov-report=term --durations=20 . | ||
- name: Upload coverage report | ||
uses: codecov/[email protected] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,10 +2,10 @@ | |
requires = [ | ||
"setuptools>=64", | ||
"setuptools_scm>=8", | ||
"numpy", | ||
"numpy>=2.0", | ||
"scipy", | ||
"cython", | ||
"twobody" | ||
"twobody>=0.9.1", | ||
] | ||
build-backend = 'setuptools.build_meta' | ||
|
||
|
@@ -14,20 +14,20 @@ name = "thejoker" | |
authors = [{name = "Adrian Price-Whelan", email = "[email protected]"}] | ||
description = "A custom Monte Carlo sampler for the two-body problem." | ||
readme = "README.rst" | ||
requires-python = ">=3.9" | ||
requires-python = ">=3.10" | ||
license.file = "LICENSE" | ||
dynamic = ["version"] | ||
dependencies = [ | ||
"astropy", | ||
"numpy", | ||
"twobody>=0.9", | ||
"numpy>=1.24.4", | ||
"twobody>=0.9.1", | ||
"scipy", | ||
"h5py", | ||
"schwimmbad>=0.4", | ||
"pymc>=5", | ||
"pymc>=5.10.0", | ||
"pymc_ext>=1.0.1", | ||
"exoplanet-core[pymc]>=0.3.0", | ||
"tables<3.9.2", # https://github.com/PyTables/PyTables/issues/1093 | ||
"tables", | ||
"dill" | ||
] | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.