diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 02df019..a585d9a 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -8,6 +8,9 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 + with: + # include tags and full history for setuptools_scm + fetch-depth: 0 - run: make build - uses: actions/upload-artifact@v4 with: diff --git a/pyproject.toml b/pyproject.toml index 6909d48..2c9f4a7 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,11 +1,10 @@ [build-system] -requires = ["setuptools"] +requires = ["setuptools", "setuptools_scm[toml]"] build-backend = "setuptools.build_meta" [project] name = "lxa-iobus" description = "Linux Automation IOBus Server" -version = "0.5.1" authors = [ { name = "Linux Automation GmbH", email = "info@linux-automation.com" }, ] @@ -17,6 +16,7 @@ dependencies = [ "python-can", "janus", ] +dynamic = ["version"] # via setuptools_scm [project.scripts] optick = "lxa_iobus.cli.optick:main" @@ -36,6 +36,9 @@ packages = [ ] include-package-data = true +[tool.setuptools_scm] +local_scheme = "no-local-version" + [tool.ruff] line-length = 119