Skip to content

Commit

Permalink
Fix version generation (#35)
Browse files Browse the repository at this point in the history
  • Loading branch information
facutuesca authored Oct 4, 2024
1 parent e9ae09a commit 33d3dad
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 9 deletions.
9 changes: 1 addition & 8 deletions {{cookiecutter.project_slug}}/.github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,6 @@ permissions:
# Used to publish to PyPI with Trusted Publishing.
id-token: write

# Used to attach signing artifacts to the published release.
contents: write

jobs:
pypi:
name: upload release to PyPI
Expand All @@ -33,9 +30,5 @@ jobs:

- name: publish
uses: pypa/gh-action-pypi-publish@release/v1

- name: sign
uses: sigstore/gh-action-sigstore-python@v2.1.1
with:
inputs: ./dist/*.tar.gz ./dist/*.whl
release-signing-artifacts: true
attestations: true
5 changes: 4 additions & 1 deletion {{cookiecutter.project_slug}}/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ classifiers = [
dependencies = []
requires-python = ">=3.9"

[tool.setuptools.dynamic]
version = { attr = "{{ cookiecutter.__project_import }}.__version__" }

[project.optional-dependencies]
doc = [
{%- if cookiecutter.documentation == "pdoc" -%}
Expand Down Expand Up @@ -104,4 +107,4 @@ ignore = ["D203", "D213", "COM812", "ISC001"]
exclude = ["env", "test", "{{ cookiecutter.__project_src_path }}/_cli.py"]
ignore-semiprivate = true
fail-under = 100
{%- endif %}
{%- endif %}

0 comments on commit 33d3dad

Please sign in to comment.