Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
8 changes: 6 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -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"]
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@copilot where does it get it from?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The version comes from git tags and commit history via setuptools_scm (configured in lines 59-61). When building:

  • On a tagged commit (e.g., git tag 0.4.6): version = 0.4.6
  • 2 commits after tag 0.4.6: version = 0.4.7.dev2

setuptools_scm reads the git repository at build time to automatically determine the version number.

authors = [
{name="mhubii", email="m.huber_1994@hotmail.de"},
{name="haydnspass", email="lucasraphael.mueller@gmail.com"},
Expand Down Expand Up @@ -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"
Loading