diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index 6cd4f79..0c20cef 100644 --- a/.github/workflows/publish.yaml +++ b/.github/workflows/publish.yaml @@ -10,6 +10,7 @@ jobs: steps: - uses: actions/checkout@v4 with: + fetch-depth: 0 # Fetch all history for setuptools_scm to determine version persist-credentials: false - name: Set up Python uses: actions/setup-python@v5 @@ -117,4 +118,5 @@ jobs: uses: pypa/gh-action-pypi-publish@release/v1 with: repository-url: https://test.pypi.org/legacy/ + skip-existing: true verbose: true diff --git a/pyproject.toml b/pyproject.toml index 6e69ad3..208e796 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,10 +1,10 @@ [build-system] -requires = ["setuptools>=61.0"] +requires = ["setuptools>=61.0", "setuptools-scm>=8"] build-backend = "setuptools.build_meta" [project] name = "roboreg" -version = "0.4.6" +dynamic = ["version"] authors = [ {name="mhubii", email="m.huber_1994@hotmail.de"}, {name="haydnspass", email="lucasraphael.mueller@gmail.com"}, @@ -55,3 +55,7 @@ rr-stereo-dr = "cli.rr_stereo_dr:main" where = ["."] include = ["roboreg*", "cli*"] exclude = ["test*"] + +[tool.setuptools_scm] +version_scheme = "guess-next-dev" +local_scheme = "no-local-version"