diff options
| -rw-r--r-- | .github/workflows/build.yml | 73 | ||||
| -rw-r--r-- | debian/changelog | 8 | ||||
| -rw-r--r-- | debian/patches/0001-avoid-self-dependency.patch | 20 | ||||
| -rw-r--r-- | debian/patches/series | 1 | ||||
| -rw-r--r-- | debian/watch | 7 | ||||
| -rw-r--r-- | hatch_regex_commit/__about__.py | 2 | ||||
| -rw-r--r-- | pyproject.toml | 6 |
7 files changed, 49 insertions, 68 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 145abd5..30a22ef 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -4,35 +4,26 @@ on: [push, pull_request] jobs: test: - runs-on: ubuntu-latest strategy: matrix: - python_version: [3.7, 3.8, 3.9, '3.10'] + python_version: ["3.9", "3.10", "3.11", "3.12", "3.13"] steps: - - uses: actions/checkout@v1 - - name: Set up Python - uses: actions/setup-python@v1 - with: - python-version: ${{ matrix.python_version }} - - name: Install dependencies - shell: bash - run: | - python -m pip install --upgrade pip - pip install hatch - hatch env create - - name: Lint and typecheck - run: | - hatch run lint-check - # - name: Test with pytest - # run: | - # pytest --cov-report xml --cov=fief_client/ - # - uses: codecov/codecov-action@v2 - # with: - # token: ${{ secrets.CODECOV_TOKEN }} - # fail_ci_if_error: true - # verbose: true + - uses: actions/checkout@v1 + - name: Set up Python + uses: actions/setup-python@v1 + with: + python-version: ${{ matrix.python_version }} + - name: Install dependencies + shell: bash + run: | + python -m pip install --upgrade pip + pip install hatch + hatch env create + - name: Lint and typecheck + run: | + hatch run lint-check release: runs-on: ubuntu-latest @@ -40,20 +31,20 @@ jobs: if: startsWith(github.ref, 'refs/tags/') steps: - - uses: actions/checkout@v1 - - name: Set up Python - uses: actions/setup-python@v1 - with: - python-version: 3.7 - - name: Install dependencies - shell: bash - run: | - python -m pip install --upgrade pip - pip install hatch - - name: Build and publish on PyPI - env: - HATCH_INDEX_USER: ${{ secrets.HATCH_INDEX_USER }} - HATCH_INDEX_AUTH: ${{ secrets.HATCH_INDEX_AUTH }} - run: | - hatch build - hatch publish + - uses: actions/checkout@v1 + - name: Set up Python + uses: actions/setup-python@v1 + with: + python-version: "3.9" + - name: Install dependencies + shell: bash + run: | + python -m pip install --upgrade pip + pip install hatch + - name: Build and publish on PyPI + env: + HATCH_INDEX_USER: ${{ secrets.HATCH_INDEX_USER }} + HATCH_INDEX_AUTH: ${{ secrets.HATCH_INDEX_AUTH }} + run: | + hatch build + hatch publish diff --git a/debian/changelog b/debian/changelog index 9cd3a70..291d780 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,11 @@ +hatch-regex-commit (0.0.4-1) unstable; urgency=medium + + * New upstream release. + * Remove patch, no longer needed. + * Update debian/watch to format version 5. + + -- Edward Betts <edward@4angle.com> Thu, 02 Oct 2025 20:17:43 +0100 + hatch-regex-commit (0.0.3-2) unstable; urgency=medium * Source-only upload to allow package to migrate to testing. diff --git a/debian/patches/0001-avoid-self-dependency.patch b/debian/patches/0001-avoid-self-dependency.patch deleted file mode 100644 index 42ae5c5..0000000 --- a/debian/patches/0001-avoid-self-dependency.patch +++ /dev/null @@ -1,20 +0,0 @@ -From: Edward Betts <edward@4angle.com> -Date: Wed, 12 Mar 2025 09:54:17 +0100 -Subject: avoid self dependency - ---- - pyproject.toml | 1 - - 1 file changed, 1 deletion(-) - -diff --git a/pyproject.toml b/pyproject.toml -index 7401026..b015699 100644 ---- a/pyproject.toml -+++ b/pyproject.toml -@@ -38,7 +38,6 @@ Source = "https://github.com/frankie567/hatch-regex-commit" - regex-commit = "hatch_regex_commit.hooks" - - [tool.hatch.version] --source = "regex_commit" - path = "hatch_regex_commit/__about__.py" - commit_extra_args = ["-e"] - diff --git a/debian/patches/series b/debian/patches/series deleted file mode 100644 index e0a86e3..0000000 --- a/debian/patches/series +++ /dev/null @@ -1 +0,0 @@ -0001-avoid-self-dependency.patch diff --git a/debian/watch b/debian/watch index 0afd916..caa3de8 100644 --- a/debian/watch +++ b/debian/watch @@ -1,2 +1,5 @@ -version=4 -https://github.com/frankie567/hatch-regex-commit/tags .*/v?(\d\S+)\.tar\.gz +Version: 5 + +Template: Github +Owner: frankie567 +Project: hatch-regex-commit diff --git a/hatch_regex_commit/__about__.py b/hatch_regex_commit/__about__.py index 27fdca4..81f0fde 100644 --- a/hatch_regex_commit/__about__.py +++ b/hatch_regex_commit/__about__.py @@ -1 +1 @@ -__version__ = "0.0.3" +__version__ = "0.0.4" diff --git a/pyproject.toml b/pyproject.toml index 7401026..6e714ad 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,5 +1,5 @@ [build-system] -requires = ["hatchling", "hatch-regex-commit"] +requires = ["hatchling"] build-backend = "hatchling.build" [project] @@ -38,7 +38,7 @@ Source = "https://github.com/frankie567/hatch-regex-commit" regex-commit = "hatch_regex_commit.hooks" [tool.hatch.version] -source = "regex_commit" +source = "regex" path = "hatch_regex_commit/__about__.py" commit_extra_args = ["-e"] @@ -67,7 +67,7 @@ lint-check = [ ] [[tool.hatch.envs.test.matrix]] -python = ["37", "38", "39", "310", "311"] +python = ["39", "310", "311", "312", "313"] [tool.coverage.run] branch = true |
