Skip to content

Commit

Permalink
add toml
Browse files Browse the repository at this point in the history
  • Loading branch information
HokageM committed Mar 28, 2024
1 parent 511a481 commit 327a609
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
9 changes: 1 addition & 8 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,8 @@ jobs:
run: |
python setup.py sdist bdist_wheel
- name: Extract version number from tag
id: extract_version
run: |
TAG=$(echo "${GITHUB_REF##*/}")
VERSION=$(echo $TAG | sed 's/^v//')
echo "::set-output name=version::$VERSION"
- name: Publish to PyPI
env:
TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }}
run: |
python -m twine upload --repository pypi dist/* --version ${{ steps.extract_version.outputs.version }}
python -m twine upload --repository pypi dist/*
9 changes: 9 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
[build-system]
# AVOID CHANGING REQUIRES: IT WILL BE UPDATED BY PYSCAFFOLD!
requires = ["setuptools>=46.1.0", "setuptools_scm[toml]>=5"]
build-backend = "setuptools.build_meta"

[tool.setuptools_scm]
# For smarter version schemes and other configuration options,
# check out https://github.com/pypa/setuptools_scm
version_scheme = "no-guess-dev"

0 comments on commit 327a609

Please sign in to comment.