-
Notifications
You must be signed in to change notification settings - Fork 6
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 #548 from idaholab/kill_38
Remove Python 3.8 support, and add python 3.13 and numpy 2.0 support
- Loading branch information
Showing
3 changed files
with
28 additions
and
17 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,7 +10,7 @@ jobs: | |
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"] | ||
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"] | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
@@ -36,15 +36,13 @@ jobs: | |
- run: pip install --user dist/*.tar.gz | ||
- run: pip install --user . montepy[test] | ||
- run: pip install --user . montepy[doc] | ||
if: ${{ matrix.python-version != '3.8'}} | ||
- run: pip install --user . montepy[format] | ||
- run: pip install --user . montepy[build] | ||
- run: pip install --user . montepy[develop] | ||
if: ${{ matrix.python-version != '3.8'}} | ||
- run: pip freeze | ||
- name: Upload build artifacts | ||
uses: actions/[email protected] | ||
if: ${{ matrix.python-version == '3.9' }} | ||
if: ${{ matrix.python-version == '3.12' && matrix.numpy-version == '2.0' }} | ||
with: | ||
name: build | ||
path: dist/* | ||
|
@@ -54,35 +52,42 @@ jobs: | |
permissions: write-all | ||
strategy: | ||
matrix: | ||
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"] | ||
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"] | ||
numpy-version: ["1.0", "2.0"] | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: set up python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- run: pip install numpy~=${{ matrix.numpy-version }} | ||
name: install specific numpy version | ||
- run: pip install --user . montepy[test] | ||
- run: pip install --user . montepy[build] | ||
- run: pip uninstall -y pytest-profiling | ||
name: Uninstall incompatible library | ||
if: ${{ matrix.python-version == '3.13' }} | ||
- run: pip freeze | ||
- run: coverage run -m pytest --junitxml=test_report.xml | ||
- run: coverage report | ||
if: ${{ success() || failure() }} | ||
- run: coverage xml | ||
if: ${{ success() || failure() }} | ||
- name: Upload test report | ||
if: ${{ matrix.python-version == '3.9' && (success() || failure() )}} | ||
if: ${{ matrix.python-version == '3.12' && matrix.numpy-version == '2.0' && (success() || failure() )}} | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: test | ||
path: test_report.xml | ||
- name: Upload coverage report | ||
if: ${{ matrix.python-version == '3.9' && (success() || failure() )}} | ||
if: ${{ matrix.python-version == '3.12' && matrix.numpy-version == '2.0' && (success() || failure() )}} | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: coverage | ||
path: coverage.xml | ||
- name: Coveralls GitHub Action | ||
if: ${{ matrix.python-version == '3.9' && (success() || failure() )}} | ||
if: ${{ matrix.python-version == '3.12' && matrix.numpy-version == '2.0' && (success() || failure() )}} | ||
uses: coverallsapp/github-action@v2 | ||
with: | ||
file: coverage.xml | ||
|
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 |
---|---|---|
|
@@ -5,7 +5,7 @@ description = "A library for reading, editing, and writing MCNP input files" | |
|
||
# gitlab limits the readme to 4,000 chars. | ||
readme = "README.md" | ||
requires-python = ">=3.8" | ||
requires-python = ">=3.9" | ||
maintainers = [ | ||
{name = "Micah Gale", email = "[email protected]"} | ||
] | ||
|
@@ -18,7 +18,6 @@ keywords = ["MCNP", "neutronics", "imcnp", "input file", "monte carlo", "radiati | |
license = {file="LICENSE"} | ||
classifiers = [ | ||
"Development Status :: 4 - Beta", | ||
"Programming Language :: Python :: 3 :: Only", | ||
"Intended Audience :: Science/Research", | ||
"Intended Audience :: Developers", | ||
"License :: OSI Approved :: MIT License", | ||
|
@@ -27,7 +26,12 @@ classifiers = [ | |
"Topic :: Scientific/Engineering :: Physics", | ||
"Topic :: Scientific/Engineering", | ||
"Topic :: Scientific/Engineering :: Human Machine Interfaces", | ||
|
||
"Programming Language :: Python :: 3 :: Only", | ||
"Programming Language :: Python :: 3.9", | ||
"Programming Language :: Python :: 3.10", | ||
"Programming Language :: Python :: 3.11", | ||
"Programming Language :: Python :: 3.12", | ||
"Programming Language :: Python :: 3.13" | ||
] | ||
dependencies = [ | ||
"numpy>=1.18", | ||
|
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