From 4325a7f899e751e9e59021af6e090399d43f2a3f Mon Sep 17 00:00:00 2001 From: Will Riley Date: Sun, 15 Jun 2025 01:56:36 +0200 Subject: [PATCH 1/2] Prevented Python 3.13 or higher. Some errors are happening for 3.13. --- .github/workflows/review-cff-authors-pr.yml | 2 +- README.md | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/review-cff-authors-pr.yml b/.github/workflows/review-cff-authors-pr.yml index e66e892..2f021f2 100644 --- a/.github/workflows/review-cff-authors-pr.yml +++ b/.github/workflows/review-cff-authors-pr.yml @@ -24,7 +24,7 @@ jobs: - name: Install Python uses: actions/setup-python@v5 with: - python-version: ">=3.13.3" # required for cff-author-updater + python-version: ">=3.10, <3.13" # required for cff-author-updater cache: 'pip' # optional for cff-author-updater - name: Run cff-author-updater diff --git a/README.md b/README.md index 2863342..ba95bbe 100644 --- a/README.md +++ b/README.md @@ -256,7 +256,7 @@ jobs: - name: Install Python uses: actions/setup-python@v5 with: - python-version: ">=3.10" + python-version: ">=3.10, <3.13" # not tested for 3.13 or higher - name: Run same-version uses: willynilly/same-version@v7.0.0 @@ -306,7 +306,7 @@ jobs: - name: Install Python uses: actions/setup-python@v5 with: - python-version: ">=3.10" + python-version: ">=3.10, <3.13" # not tested for 3.13 or higher - name: Run same-version uses: willynilly/same-version@v7.0.0 From 1fb2f10667e63022305207f2c78e3f3cec807fb5 Mon Sep 17 00:00:00 2001 From: Will Riley Date: Sun, 15 Jun 2025 02:11:10 +0200 Subject: [PATCH 2/2] Changed the hatch build configs to avoid python 3.13 problems. --- .github/workflows/check-same-version.yml | 2 +- .github/workflows/review-cff-authors-pr.yml | 2 +- CITATION.cff | 2 +- README.md | 10 +++++----- example.pre-commit-config.yaml | 2 +- pyproject.toml | 7 +++---- 6 files changed, 12 insertions(+), 13 deletions(-) diff --git a/.github/workflows/check-same-version.yml b/.github/workflows/check-same-version.yml index 09016cd..9262003 100644 --- a/.github/workflows/check-same-version.yml +++ b/.github/workflows/check-same-version.yml @@ -26,7 +26,7 @@ jobs: cache: 'pip' # optional and only works for Python projects - name: Run same-version - uses: willynilly/same-version@v7.0.0 + uses: willynilly/same-version@v7.1.0 with: fail_for_missing_file: false check_github_event: true diff --git a/.github/workflows/review-cff-authors-pr.yml b/.github/workflows/review-cff-authors-pr.yml index 2f021f2..db550ce 100644 --- a/.github/workflows/review-cff-authors-pr.yml +++ b/.github/workflows/review-cff-authors-pr.yml @@ -24,7 +24,7 @@ jobs: - name: Install Python uses: actions/setup-python@v5 with: - python-version: ">=3.10, <3.13" # required for cff-author-updater + python-version: ">=3.10" # required for cff-author-updater cache: 'pip' # optional for cff-author-updater - name: Run cff-author-updater diff --git a/CITATION.cff b/CITATION.cff index 6db32d6..e7daa47 100644 --- a/CITATION.cff +++ b/CITATION.cff @@ -34,7 +34,7 @@ keywords: - metadata - harmonization license: Apache-2.0 -version: "7.0.0" +version: "7.1.0" date-released: "2025-06-10" references: - title: Citation File Format diff --git a/README.md b/README.md index ba95bbe..7fc411c 100644 --- a/README.md +++ b/README.md @@ -256,10 +256,10 @@ jobs: - name: Install Python uses: actions/setup-python@v5 with: - python-version: ">=3.10, <3.13" # not tested for 3.13 or higher + python-version: ">=3.10" - name: Run same-version - uses: willynilly/same-version@v7.0.0 + uses: willynilly/same-version@v7.1.0 with: fail_for_missing_file: false check_github_event: true @@ -306,10 +306,10 @@ jobs: - name: Install Python uses: actions/setup-python@v5 with: - python-version: ">=3.10, <3.13" # not tested for 3.13 or higher + python-version: ">=3.10" - name: Run same-version - uses: willynilly/same-version@v7.0.0 + uses: willynilly/same-version@v7.1.0 with: fail_for_missing_file: false check_github_event: true @@ -347,7 +347,7 @@ Add to your `.pre-commit-config.yaml`: ```yaml repos: - repo: https://github.com/willynilly/same-version - rev: v7.0.0 # Use latest tag + rev: v7.1.0 # Use latest tag hooks: - id: same-version stages: [pre-commit, pre-push] diff --git a/example.pre-commit-config.yaml b/example.pre-commit-config.yaml index 9fca2ec..bdbd6f2 100644 --- a/example.pre-commit-config.yaml +++ b/example.pre-commit-config.yaml @@ -1,6 +1,6 @@ repos: - repo: https://github.com/willynilly/same-version - rev: v7.0.0 # Use latest tag + rev: v7.1.0 # Use latest tag hooks: - id: same-version stages: [pre-commit, pre-push] diff --git a/pyproject.toml b/pyproject.toml index 5ba04fd..f0869ef 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "hatchling.build" [project] name = "same-version" -version = "7.0.0" +version = "7.1.0" description = "Automatically ensures your software version metadata is consistent across key project files." readme = "README.md" requires-python = ">=3.10" @@ -56,11 +56,10 @@ pythonpath = [ [tool.hatch.build] include = ["src/same_version/**", "CITATION.cff"] license-files = ["LICEN[CS]E*"] -sources = ["src"] [tool.hatch.build.targets.wheel] -packages = ["same_version"] -sources = ["src"] +packages = ["src/same_version"] + [project.scripts] same-version = "same_version.main:main"