Skip to content

Commit

Permalink
Merge pull request #61 from PatrickOHara/fix-version-build
Browse files Browse the repository at this point in the history
Fetch git history when building
  • Loading branch information
PatrickOHara authored Mar 29, 2024
2 parents f549a13 + 7214f4d commit 1ae05b4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,15 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Fetch all history for all tags and branches
run: git fetch --prune --unshallow
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.12"

- name: Install pypa/build
run: python3 -m pip install build --user
- name: Check git works
run: git status
- name: Build a binary wheel and a source tarball
run: python3 -m build
- name: Store the distribution packages
Expand Down
3 changes: 0 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,5 @@ dynamic = ["version"]
[tool.setuptools]
packages = ["tspwplib"]

[tool.setuptools_scm]
version_file = "tspwplib/_version.py"

[tool.black]
exclude = "_version.py"

0 comments on commit 1ae05b4

Please sign in to comment.