Skip to content

Commit

Permalink
Fix versioning for dev commits to test.pypi.org
Browse files Browse the repository at this point in the history
  • Loading branch information
twomagpi committed Aug 5, 2024
1 parent 3d5a7f6 commit d7148d5
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 3 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/distribute_package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,14 @@ jobs:
python -m pip install --upgrade pip
pip install -r requirements.txt
# setuptools_scm workaround for https://github.com/pypa/setuptools_scm/issues/455
- name: Disable local version identifier on develop CI
if: github.ref == 'refs/heads/dev'
run: |
echo 'local_scheme = "no-local-version"' >> pyproject.toml
git diff --color=always
git update-index --assume-unchanged pyproject.toml
# Used to host cibuildwheel
- uses: actions/setup-python@v5
with:
Expand Down
10 changes: 7 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,6 @@ classifiers = [
"Operating System :: OS Independent",
]

[tool.setuptools_scm]
#version_file = "pygom/_version.py"

[tool.setuptools.packages.find]
where = ["src"]

Expand All @@ -63,3 +60,10 @@ Issues = "https://github.com/ukhsa-collaboration/pygom/issues"
[tool.cibuildwheel]
# Normal options, etc.
manylinux-x86_64-image = "manylinux2014"

# '[tool.setuptools.scm]' needs to be the last line because
# we do an append operation in the deploy.yaml GitHub Actions workflow
# so that we are able to push to test.pypi.org with a proper version
# number
[tool.setuptools_scm]
#version_file = "pygom/_version.py"

0 comments on commit d7148d5

Please sign in to comment.