Skip to content

Commit

Permalink
ci: remove tests for python 3.9
Browse files Browse the repository at this point in the history
  • Loading branch information
ketozhang committed Nov 20, 2024
1 parent c7f6289 commit e5ac7b3
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 33 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
python-version: ["3.10", "3.11", "3.12", "3.13"]

steps:
- uses: actions/checkout@v4
Expand Down
48 changes: 16 additions & 32 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,9 @@ name = "asdf-pydantic"
description = 'Create ASDF tags with pydantic models'
readme = "README.md"
requires-python = ">=3.10"
license-files = {paths = ["LICENSE"]}
license-files = { paths = ["LICENSE"] }
keywords = []
authors = [
{ name = "Keto D. Zhang", email = "[email protected]" },
]
authors = [{ name = "Keto D. Zhang", email = "[email protected]" }]
classifiers = [
"Development Status :: 4 - Beta",
"Programming Language :: Python",
Expand All @@ -22,11 +20,7 @@ classifiers = [
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
]
dependencies = [
"asdf>=3",
"pydantic>=2",
"numpy>=1.25",
]
dependencies = ["asdf>=3", "pydantic>=2", "numpy>=1.25"]
dynamic = ["version"]

[project.urls]
Expand All @@ -46,7 +40,7 @@ dependencies = [
"pytest-cov",
"ipython",
"astropy",
"asdf-astropy"
"asdf-astropy",
]

[tool.hatch.envs.default.scripts]
Expand All @@ -60,30 +54,26 @@ matrix-name-format = "{variable}={value}"
[tool.hatch.envs.test.scripts]
test = "pytest {args}"

[[tool.hatch.envs.test.matrix]]
# Only test with numpy v1 on Python 3.9
python = ["3.9"]
numpy-version = ["1"]

[[tool.hatch.envs.test.matrix]]
python = ["3.10", "3.11", "3.12", "3.13"]
numpy-version = ["1", "2"]


[tool.hatch.envs.test.overrides]
matrix.numpy-version.dependencies = [
{ value = "numpy>=1,<2", if = ["1"] },
{ value = "numpy>=2,<3", if = ["2"] },
{ value = "astropy>=6.1", if = ["2"] },
{ value = "numpy>=1,<2", if = [
"1",
] },
{ value = "numpy>=2,<3", if = [
"2",
] },
{ value = "astropy>=6.1", if = [
"2",
] },
]

[tool.hatch.envs.docs]
dependencies = [
"sphinx",
"sphinx-autoapi",
"sphinx-book-theme",
"myst-parser"
]
dependencies = ["sphinx", "sphinx-autoapi", "sphinx-book-theme", "myst-parser"]

[tool.hatch.envs.docs.scripts]
build = "sphinx-build -b html docs docs/_build/html {args}"
Expand All @@ -92,16 +82,10 @@ build = "sphinx-build -b html docs docs/_build/html {args}"
[tool.coverage.run]
branch = true
parallel = true
omit = [
"asdf_pydantic/__version__.py",
]
omit = ["asdf_pydantic/__version__.py"]

[tool.coverage.report]
exclude_lines = [
"no cov",
"if __name__ == .__main__.:",
"if TYPE_CHECKING:",
]
exclude_lines = ["no cov", "if __name__ == .__main__.:", "if TYPE_CHECKING:"]

[tool.ruff.pydocstyle]
convention = "google"

0 comments on commit e5ac7b3

Please sign in to comment.