From e5ac7b374e4a08f8e2e061624de7775d21131414 Mon Sep 17 00:00:00 2001 From: "Keto D. Zhang" Date: Tue, 19 Nov 2024 19:46:53 -0800 Subject: [PATCH] ci: remove tests for python 3.9 --- .github/workflows/pr.yml | 2 +- pyproject.toml | 48 ++++++++++++++-------------------------- 2 files changed, 17 insertions(+), 33 deletions(-) diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index e7204c3..2cf9599 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -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 diff --git a/pyproject.toml b/pyproject.toml index d71650b..a95b406 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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 = "keto.zhang@gmail.com" }, -] +authors = [{ name = "Keto D. Zhang", email = "keto.zhang@gmail.com" }] classifiers = [ "Development Status :: 4 - Beta", "Programming Language :: Python", @@ -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] @@ -46,7 +40,7 @@ dependencies = [ "pytest-cov", "ipython", "astropy", - "asdf-astropy" + "asdf-astropy", ] [tool.hatch.envs.default.scripts] @@ -60,11 +54,6 @@ 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"] @@ -72,18 +61,19 @@ 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}" @@ -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"