Skip to content

Commit

Permalink
Fix packaging version (#101)
Browse files Browse the repository at this point in the history
  • Loading branch information
ssbarnea committed Jan 23, 2024
1 parent 7848892 commit 4cf9164
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 17 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
13 changes: 0 additions & 13 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,6 @@ name: release
workflow_dispatch:

jobs:
# https://github.com/marketplace/actions/actions-tagger
actions-tagger:
needs: pypi # do not move the mobile tag until we publish
runs-on: windows-latest
permissions:
# Give the default GITHUB_TOKEN write permission.
# https://github.blog/changelog/2023-02-02-github-actions-updating-the-default-github_token-permissions-to-read-only/
contents: write
steps:
- uses: Actions-R-Us/actions-tagger@latest
with:
token: "${{ github.token }}"
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",
"--tags",
"--match",
"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 4cf9164

Please sign in to comment.