Skip to content

Commit

Permalink
Drop Python 3.9, 3.10. Add Python 3.13.
Browse files Browse the repository at this point in the history
  • Loading branch information
cmeyer committed Oct 8, 2024
1 parent 6b45445 commit 1a4ca9b
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 9 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
python-version: ["3.9", "3.10", "3.11", "3.12"]
python-version: ["3.11", "3.12", "3.13"]

steps:
- uses: actions/checkout@v4
Expand Down Expand Up @@ -46,25 +46,25 @@ jobs:
python -m unittest discover -s nionswift_plugin/usim/test/ -p "*_test.py"
- name: Upload Artifacts
uses: actions/upload-artifact@v4
if: matrix.os == 'ubuntu-latest' && matrix.python-version == '3.9'
if: matrix.os == 'ubuntu-latest' && matrix.python-version == '3.11'
with:
name: distribution
path: dist
- name: Publish package to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags') && matrix.os == 'ubuntu-latest' && matrix.python-version == '3.9'
if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags') && matrix.os == 'ubuntu-latest' && matrix.python-version == '3.11'
with:
skip-existing: true
user: __token__
password: ${{ secrets.pypi_password }}
- name: Set up Miniconda for conda-build
if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags') && matrix.os == 'ubuntu-latest' && matrix.python-version == '3.9'
if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags') && matrix.os == 'ubuntu-latest' && matrix.python-version == '3.11'
uses: conda-incubator/setup-miniconda@v3
with:
auto-update-conda: true
python-version: '3.10'
- name: Build/publish anaconda package
if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags') && matrix.os == 'ubuntu-latest' && matrix.python-version == '3.9'
if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags') && matrix.os == 'ubuntu-latest' && matrix.python-version == '3.11'
shell: bash -l {0}
run: |
# make a directory to avoid name conflicts with the channel. argh.
Expand Down
2 changes: 1 addition & 1 deletion meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ requirements:
- pip
- setuptools
run:
- python >=3.9,!=3.9.7
- python >=3.11
- nionswift >=16.9.0,<17.0.0
- nionswift-instrumentation >=22.0.0,<24.0.0

Expand Down
5 changes: 2 additions & 3 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,13 @@ license = GPL-3.0-only
classifiers =
Development Status :: 5 - Production/Stable
License :: OSI Approved :: GNU General Public License v3 (GPLv3)
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

[options]
packages = find_namespace:
python_requires = >=3.9,!=3.9.7
python_requires = >=3.11
install_requires =
nionswift-instrumentation >=22.0.0,<24.0.0

Expand Down

0 comments on commit 1a4ca9b

Please sign in to comment.