Skip to content

Commit

Permalink
Merge pull request #11 from hnez/setuptools-scm
Browse files Browse the repository at this point in the history
pyproject.toml: use setuptools_scm to determine version number
  • Loading branch information
SmithChart authored Apr 25, 2024
2 parents a4192b8 + 37688ac commit 4567662
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
7 changes: 5 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
[build-system]
requires = ["setuptools"]
requires = ["setuptools", "setuptools_scm[toml]"]
build-backend = "setuptools.build_meta"

[project]
name = "usbmuxctl"
description = "Tool to control an USB-Mux from the command line"
version = "0.1.3"
authors = [
{ name = "Chris Fiege", email = "python@pengutronix.de" },
]
Expand All @@ -21,6 +20,7 @@ classifiers = [
"Operating System :: Unix",
"Programming Language :: Python :: 3 :: Only"
]
dynamic = ["version"] # via setuptools_scm

[project.urls]
homepage="https://github.com/linux-automation/usbmuxctl"
Expand All @@ -36,6 +36,9 @@ packages = [
]
include-package-data = true

[tool.setuptools_scm]
local_scheme = "no-local-version"

[tool.ruff]
line-length = 119
exclude = [
Expand Down

0 comments on commit 4567662

Please sign in to comment.