From 52ce0fdd7065b83d614efd94c0a6c774319e2ed9 Mon Sep 17 00:00:00 2001 From: Noah Fahlgren Date: Tue, 16 Apr 2024 11:58:33 -0500 Subject: [PATCH 1/3] Bump python versions --- .github/workflows/continuous-integration.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/continuous-integration.yml b/.github/workflows/continuous-integration.yml index 1e6bc6d..e0904dc 100644 --- a/.github/workflows/continuous-integration.yml +++ b/.github/workflows/continuous-integration.yml @@ -16,7 +16,7 @@ jobs: runs-on: ${{ matrix.os }} strategy: matrix: - python-version: ['3.8', '3.9', '3.10'] + python-version: ['3.9', '3.10', '3.11'] os: [ubuntu-latest] env: OS: ${{ matrix.os }} From 102ff91ad4106e74289b9da209542e43c9f63898 Mon Sep 17 00:00:00 2001 From: Noah Fahlgren Date: Tue, 16 Apr 2024 11:58:45 -0500 Subject: [PATCH 2/3] Set up automatic versioning --- plantcv/annotate/__init__.py | 3 +++ pyproject.toml | 10 +++++++++- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/plantcv/annotate/__init__.py b/plantcv/annotate/__init__.py index e69de29..9013604 100644 --- a/plantcv/annotate/__init__.py +++ b/plantcv/annotate/__init__.py @@ -0,0 +1,3 @@ +from importlib.metadata import version +# Auto versioning +__version__ = version("annotate") diff --git a/pyproject.toml b/pyproject.toml index f6f6afe..f0e393e 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,5 +1,5 @@ [build-system] -requires = ["setuptools >= 61.0"] +requires = ["setuptools >= 64.0", "setuptools_scm>=8"] build-backend = "setuptools.build_meta" [tool.setuptools.packages.find] @@ -26,7 +26,15 @@ classifiers = [ "Intended Audience :: Science/Research", ] +[project.optional-dependencies] +test = [ + "pytest", + "pytest-cov", +] + [project.urls] Homepage = "https://plantcv.org" Documentation = "https://plantcv.readthedocs.io" Repository = "https://github.com/danforthcenter/plantcv-annotate" + +[tool.setuptools_scm] From da46c43a702efbe088309fbf51435122d541d66a Mon Sep 17 00:00:00 2001 From: Noah Fahlgren Date: Tue, 16 Apr 2024 13:56:53 -0500 Subject: [PATCH 3/3] Fix package name --- plantcv/annotate/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plantcv/annotate/__init__.py b/plantcv/annotate/__init__.py index 9013604..219e92a 100644 --- a/plantcv/annotate/__init__.py +++ b/plantcv/annotate/__init__.py @@ -1,3 +1,3 @@ from importlib.metadata import version # Auto versioning -__version__ = version("annotate") +__version__ = version("plantcv-annotate")