Skip to content

Commit 80ea299

Browse files
checkout repo in build correctly
1 parent 5237000 commit 80ea299

File tree

3 files changed

+6
-1
lines changed

3 files changed

+6
-1
lines changed

.github/workflows/_build.yaml

+2
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ jobs:
2626
steps:
2727
- name: Checkout repository
2828
uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4
29+
with:
30+
fetch-depth: 0 # IMPORTANT: otherwise the current tag does not get fetched and the build version gets worse
2931

3032
- name: Set up Python ${{ inputs.python-version }}
3133
uses: actions/setup-python@82c7e631bb3cdc910f68e0081d67478d79c6982d # v5.1.0

.github/workflows/_pypi_publish.yaml

+3
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,14 @@ jobs:
2020
publish-to-pypi:
2121
name: Publish Python distribution to PyPI
2222
runs-on: ubuntu-latest
23+
2324
permissions:
2425
id-token: write # IMPORTANT: this permission is mandatory for OIDC publishing
26+
2527
environment:
2628
name: pypi
2729
url: https://pypi.org/p/python-cmethods
30+
2831
steps:
2932
- name: Download all the distributions
3033
uses: actions/download-artifact@v4

pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ include-package-data = false
5454

5555
[tool.setuptools.packages.find]
5656
include = ["cmethods*"]
57-
exclude = ["doc*", "tests*", "examples*", ".env"]
57+
exclude = ["doc*", "tests*", "examples*", ".env", "venv"]
5858

5959
[tool.setuptools_scm]
6060
write_to = "cmethods/_version.py"

0 commit comments

Comments
 (0)