Skip to content

Commit

Permalink
Fix packaging version (#101)
Browse files Browse the repository at this point in the history
  • Loading branch information
ssbarnea authored Jan 23, 2024
1 parent 7848892 commit 522a43d
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 5 deletions.
5 changes: 3 additions & 2 deletions .github/release-drafter.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
# see https://github.com/ansible-community/devtools
_extends: ansible-community/devtools
---
# see https://github.com/ansible/team-devtools
_extends: ansible/team-devtools
3 changes: 2 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ jobs:
- uses: Actions-R-Us/actions-tagger@latest
with:
token: "${{ github.token }}"
publish_latest_tag: true
# Do not activate latest tag because it seems to affect RTD builds
# publish_latest_tag: true
pypi:
name: Publish to PyPI registry
environment: release
Expand Down
14 changes: 12 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[build-system]
build-backend = "setuptools.build_meta"
requires = [
"setuptools >= 63.0.0", # required by pyproject+setuptools_scm integration
"setuptools >= 65.3.0", # required by pyproject+setuptools_scm integration and editable installs
"setuptools_scm[toml] >= 7.0.5" # required for "no-local-version" scheme
]

Expand Down Expand Up @@ -281,9 +281,19 @@ optional-dependencies.docs = {file = [".config/requirements-docs.in"]}
optional-dependencies.test = {file = [".config/requirements-test.in"]}

[tool.setuptools_scm]
# To prevent accidental pick of mobile version tags such 'v6'
git_describe_command = [
"git",
"describe",
"--dirty",
"--long",
"--match",
"--tags",
"v*.*"
]
local_scheme = "no-local-version"
tag_regex = '^(?P<prefix>v)?(?P<version>[^\+]+)(?P<suffix>.*)?$'
write_to = "src/ansible_dev_environment/_version.py"

[tool.tomlsort]
all = true
in_place = true

0 comments on commit 522a43d

Please sign in to comment.