diff --git a/.github/workflows/pypi_publish.yml b/.github/workflows/pypi_publish.yml index 03e339e12..51084e9cf 100644 --- a/.github/workflows/pypi_publish.yml +++ b/.github/workflows/pypi_publish.yml @@ -51,7 +51,7 @@ jobs: - name: Detect Prerelease Version using Dunamai uses: mtkennerly/dunamai-action@v1 with: - args: --style pep440 + args: --format "{base}.post{distance}.dev${{ github.run_id }}" env-var: DETECTED_VERSION - name: Detect Release Tag Version from git ref ('${{ github.ref_name }}') @@ -80,8 +80,8 @@ jobs: INPUT_VERSION="${INPUT_VERSION#v}" # Fail if detected version is non-empty and different from the input version if [ -n "${DETECTED_VERSION:-}" ] && [ -n "${INPUT_VERSION:-}" ] && [ "${DETECTED_VERSION}" != "${INPUT_VERSION}" ]; then - echo "Error: Version input '${INPUT_VERSION}' does not match detected version '${DETECTED_VERSION}'." - exit 1 + echo "Warning: Version input '${INPUT_VERSION}' does not match detected version '${DETECTED_VERSION}'." + echo "Using input version '${INPUT_VERSION}' instead." fi # Set the version to the input version if non-empty, otherwise the detected version VERSION="${INPUT_VERSION:-$DETECTED_VERSION}" diff --git a/pyproject.toml b/pyproject.toml index 292f3db9d..d236c0b9d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -27,7 +27,6 @@ version = "0.0.0" # Version will be calculated dynamically. [tool.poetry-dynamic-versioning] enable = true -style = "pep440" # Ensures compatibility with PyPI [tool.poetry.dependencies] python = ">=3.10,<3.13"