From dab3f6d440a5b5b6b136c0a0b01506cd7cee25f0 Mon Sep 17 00:00:00 2001 From: Armin Date: Mon, 17 Jul 2023 21:11:24 +0200 Subject: [PATCH] Remove local versioning for PEP440 compat --- .github/workflows/release-dev.yml | 2 +- .github/workflows/release.yml | 4 +++- pyproject.toml | 3 +++ 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release-dev.yml b/.github/workflows/release-dev.yml index a581377..400f845 100644 --- a/.github/workflows/release-dev.yml +++ b/.github/workflows/release-dev.yml @@ -1,4 +1,4 @@ -name: Release +name: Release Dev on: push: diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 81cdfa3..402452c 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -10,10 +10,12 @@ jobs: name: Release runs-on: ubuntu-latest steps: - - name: Check out the repository and set tag env + - name: Check out the repository uses: actions/checkout@v3 with: fetch-depth: 0 + + - name: Set Tag env run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV - name: Set up Python diff --git a/pyproject.toml b/pyproject.toml index 9cad2a6..d5571b8 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -20,6 +20,9 @@ dependencies = [] [tool.hatch.version] source = "vcs" +[tool.hatch.version.raw-options] +local_scheme = "no-local-version" + [project.urls] homepage = "https://github.com/staticdev/human-readable" repository = "https://github.com/staticdev/human-readable"