-
Notifications
You must be signed in to change notification settings - Fork 24
feat: Migrate to raysect v0.9
#486
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
8b9c741
d059ed8
3ec32a1
10d690f
662eb04
af3d5c2
3d53694
58708e0
db60923
1a63b6d
fde76c4
97a634c
60d76bf
ab0b0fd
3dbad49
503aa22
5182d8b
362a6e3
21d6449
9b20d37
780364f
cae5114
8d48d54
5810951
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -7,12 +7,11 @@ on: | |
| jobs: | ||
| tests: | ||
| name: Run tests | ||
| runs-on: ubuntu-22.04 # Needed for Python 3.7 compatibility | ||
| runs-on: ubuntu-latest | ||
| strategy: | ||
| fail-fast: false | ||
| matrix: | ||
| numpy-version: ["oldest-supported-numpy", "'numpy<2'"] | ||
| python-version: ["3.7", "3.8", "3.9", "3.10"] | ||
| python-version: ["3.9", "3.10", "3.11", "3.12", "3.13", "3.14"] | ||
| steps: | ||
| - name: Checkout code | ||
| uses: actions/checkout@v2 | ||
|
|
@@ -23,9 +22,9 @@ jobs: | |
| with: | ||
| python-version: ${{ matrix.python-version }} | ||
| - name: Install Python dependencies | ||
| run: python -m pip install --prefer-binary cython~=3.0 ${{ matrix.numpy-version }} scipy matplotlib "pyopencl[pocl]>=2022.2.4" | ||
| run: python -m pip install --prefer-binary setuptools cython~=3.1 numpy>=2 scipy matplotlib "pyopencl[pocl]>=2022.2.4" | ||
| - name: Install Raysect from pypi | ||
| run: pip install raysect==0.8.1.* | ||
| run: pip install raysect==0.9.* | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I don't think there's a need any longer to install raysect separate from the rest of the dependencies. A long time ago it had to come from Github sometimes and PyPI other times, so made sense to deal with it differently, but it's about time this was cleaned up. Put it in the "Install Python dependencies" step. Also, should be
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I agree with you. python -m pip install -e ".[opencl]" |
||
| - name: Build cherab | ||
| run: dev/build.sh | ||
| - name: Run tests | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1 +1 @@ | ||
| 1.6.0.dev1 | ||
| 1.6.0.dev2 |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,3 @@ | ||
| [build-system] | ||
| requires = ["setuptools>=62.3", "oldest-supported-numpy", "cython~=3.0", "raysect==0.8.1.*"] | ||
| requires = ["setuptools>=62.3", "numpy", "cython~=3.1", "raysect==0.9.1.*"] | ||
| build-backend="setuptools.build_meta" |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,5 +1,5 @@ | ||
| cython~=3.0 | ||
| numpy>=1.14,<2.0 | ||
| cython~=3.1 | ||
| numpy>=2.0 | ||
| scipy | ||
| matplotlib | ||
| raysect==0.8.1.* | ||
| raysect==0.9.1.* |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we should continue supporting (and therefore testing against) the oldest Numpy available for each Python version. Not all environments (HPC or other experiment analysis clusters for example) may be amenable to upgrading numpy, possibly due to other packages, so Cherab should where possible not require features in very recent Numpy versions. Testing against old versions is to guard against accidentally using new Numpy functions where they're not always required.
oldest-supported-numpywas a convenient way of doing this, but for now the matrix should be updated with the oldest numpy version supported by each Python release. Awkward the first time, but should be quick to modify on each new Python release.