Skip to content

Commit

Permalink
Drop support for Python 3.9 (HinodeXRT#281)
Browse files Browse the repository at this point in the history
* Drop Python 3.9

* Drop Python 3.9

* pre-commit run --all-files

* remove python 3.9 CI runs

* Update .github/workflows/testing.yml

Co-authored-by: Nabil Freij <[email protected]>

---------

Co-authored-by: Nabil Freij <[email protected]>
  • Loading branch information
namurphy and nabobalis authored Sep 4, 2024
1 parent e1a30a7 commit 5cd98bf
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 12 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,14 +41,14 @@ jobs:
noxenv: tests-3.10
python: '3.10'

- name: Tests, Python 3.9, Windows
os: windows-latest
python: 3.9
noxenv: tests-3.9
- name: Tests, Python 3.10, Linux
os: ubuntu-latest
noxenv: tests-3.10
python: '3.10'

- name: Import XRTpy, Python 3.9, Windows
os: windows-latest
python: 3.9
- name: Import XRTpy, Python 3.10, Linux
os: ubuntu-latest
python: '3.10'
noxenv: import_package

steps:
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,7 @@ dmypy.json
version.py
.idea
.vscode
.history
.\#*

#ignore mac files
Expand Down
2 changes: 1 addition & 1 deletion noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

nox.options.sessions = ["tests", "linters"]

python_versions = ("3.9", "3.10", "3.11", "3.12")
python_versions = ("3.10", "3.11", "3.12")

sphinx_paths = ["docs", "docs/_build/html"]
sphinx_fail_on_warnings = ["-W", "--keep-going"]
Expand Down
5 changes: 2 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ classifiers = [
"License :: OSI Approved :: BSD License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
Expand All @@ -28,7 +27,7 @@ classifiers = [
]
# SPEC 0 recommends that packages in the scientific pythoniverse support
# versions of Python that have been released in the last ≤36 months
requires-python = ">=3.9"
requires-python = ">=3.10"
dynamic = ["version"]
authors = [
{name = "Joy Velasquez", email = "[email protected]"},
Expand Down Expand Up @@ -94,7 +93,7 @@ Issues = "https://github.com/HinodeXRT/xrtpy/issues"
Changelog = "https://xrtpy.readthedocs.io/en/stable/changelog/index.html"

[tool.ruff]
target-version = "py39"
target-version = "py310"
show-fixes = true
extend-exclude = [
".jupyter",
Expand Down
2 changes: 1 addition & 1 deletion xrtpy/image_correction/tests/test_remove_lightleak.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def get_composite_data_files():
composite_filenames = get_composite_data_files()

# Using zip as an iterator to pair the data files together. Trouble-free method to use in pytest-parametrize
data_files = list(zip(IDL_filenames, composite_filenames))
data_files = list(zip(IDL_filenames, composite_filenames, strict=False))


@pytest.mark.parametrize(("idlfile", "compfile"), data_files)
Expand Down

0 comments on commit 5cd98bf

Please sign in to comment.