From 7cd04f87effa158f241e8483efbe1f7e31dbdd30 Mon Sep 17 00:00:00 2001 From: Noah Fahlgren Date: Tue, 16 Apr 2024 15:40:23 -0500 Subject: [PATCH 1/3] Remove unused codecov config --- codecov.yml | 24 ------------------------ 1 file changed, 24 deletions(-) delete mode 100644 codecov.yml diff --git a/codecov.yml b/codecov.yml deleted file mode 100644 index b011cf3..0000000 --- a/codecov.yml +++ /dev/null @@ -1,24 +0,0 @@ -codecov: - require_ci_to_pass: yes - -coverage: - precision: 2 - round: down - range: "70...100" - status: - project: - default: - threshold: 0.1% - -parsers: - gcov: - branch_detection: - conditional: yes - loop: yes - method: no - macro: no - -comment: - layout: "reach,diff,flags,tree" - behavior: default - require_changes: no From 1b303c0927ae84b305768044ad9874dfdf19f0d6 Mon Sep 17 00:00:00 2001 From: Noah Fahlgren Date: Tue, 16 Apr 2024 16:01:21 -0500 Subject: [PATCH 2/3] Add automatic versioning --- plantcv/geospatial/__init__.py | 3 +++ pyproject.toml | 10 +++++++++- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/plantcv/geospatial/__init__.py b/plantcv/geospatial/__init__.py index e69de29..0c878c0 100644 --- a/plantcv/geospatial/__init__.py +++ b/plantcv/geospatial/__init__.py @@ -0,0 +1,3 @@ +from importlib.metadata import version +# Auto versioning +__version__ = version("plantcv-geospatial") diff --git a/pyproject.toml b/pyproject.toml index 75bc52f..06d1726 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-geospatial" + +[tool.setuptools_scm] From a4ffb59f05a8bef7eb099e144bd46191451fd158 Mon Sep 17 00:00:00 2001 From: Noah Fahlgren Date: Tue, 16 Apr 2024 16:02:43 -0500 Subject: [PATCH 3/3] Bump tested 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 }}