From bec4218b64c19f1bff2732c57b09f13ae9d3dd88 Mon Sep 17 00:00:00 2001 From: YooSunyoung Date: Fri, 19 Apr 2024 15:15:28 +0200 Subject: [PATCH 1/2] Update minimum python version. --- .copier-answers.yml | 4 ++-- .github/workflows/python-version-ci | 2 +- pyproject.toml | 6 +----- requirements/dev.in | 3 --- tox.ini | 2 +- 5 files changed, 5 insertions(+), 12 deletions(-) diff --git a/.copier-answers.yml b/.copier-answers.yml index 431e78b..a2d9e9f 100644 --- a/.copier-answers.yml +++ b/.copier-answers.yml @@ -1,10 +1,10 @@ # Changes here will be overwritten by Copier; NEVER EDIT MANUALLY -_commit: ec8da94 +_commit: d91bf92 _src_path: gh:scipp/copier_template description: A daemon that creates a raw dataset using scicat interface whenever a new file is written by a file-writer. max_python: '3.12' -min_python: '3.9' +min_python: '3.12' namespace_package: '' nightly_deps: '' orgname: ScicatProject diff --git a/.github/workflows/python-version-ci b/.github/workflows/python-version-ci index bd28b9c..e4fba21 100644 --- a/.github/workflows/python-version-ci +++ b/.github/workflows/python-version-ci @@ -1 +1 @@ -3.9 +3.12 diff --git a/pyproject.toml b/pyproject.toml index 39063d4..9478972 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -18,14 +18,11 @@ classifiers = [ "Operating System :: OS Independent", "Programming Language :: Python :: 3", "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", "Topic :: Scientific/Engineering", "Typing :: Typed", ] -requires-python = ">=3.9" +requires-python = ">=3.12" # IMPORTANT: # Run 'tox -e deps' after making changes here. This will update requirement files. @@ -82,5 +79,4 @@ enable_error_code = [ "redundant-expr", "truthy-bool", ] -show_error_codes = true warn_unreachable = true diff --git a/requirements/dev.in b/requirements/dev.in index 8e2cb06..9efd9d0 100644 --- a/requirements/dev.in +++ b/requirements/dev.in @@ -6,6 +6,3 @@ copier pip-compile-multi pre-commit - -# See https://github.com/copier-org/copier/issues/1568 -pyyaml-include<2 diff --git a/tox.ini b/tox.ini index 6f5eab7..731c297 100644 --- a/tox.ini +++ b/tox.ini @@ -1,5 +1,5 @@ [tox] -envlist = py39 +envlist = py312 isolated_build = true [testenv] From 0c1b24b3d96e5340abe9e6b1deb7782d7be81b0e Mon Sep 17 00:00:00 2001 From: YooSunyoung Date: Fri, 19 Apr 2024 15:22:44 +0200 Subject: [PATCH 2/2] Add minimum test. --- tests/minimum_test.py | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 tests/minimum_test.py diff --git a/tests/minimum_test.py b/tests/minimum_test.py new file mode 100644 index 0000000..790739b --- /dev/null +++ b/tests/minimum_test.py @@ -0,0 +1,2 @@ +def test_package() -> None: + import scicat_filewriter_ingest # noqa: F401