Skip to content

Commit

Permalink
setuptools scm fix and ver up
Browse files Browse the repository at this point in the history
  • Loading branch information
ruguevara committed Apr 27, 2024
1 parent 7398bfd commit 0679a23
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 4 deletions.
1 change: 1 addition & 0 deletions .github/workflows/cibuildwheel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ jobs:
matrix:
# macos-13 is an intel runner, macos-14 is apple silicon
os: [ubuntu-latest, windows-latest, macos-13, macos-14]
python-version: [3.8, 3.9, 3.10, 3.11, 3.12]

steps:
- uses: actions/checkout@v4
Expand Down
3 changes: 0 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,3 @@ Issues = "https://github.com/ruguevara/pyayay/issues"
[build-system]
requires = ["setuptools>=42", "wheel", "setuptools_scm", "pybind11"]
build-backend = "setuptools.build_meta"

[tool.setuptools_scm]
write_to = "version.txt"
11 changes: 11 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,12 @@
),
]

def no_dev_version(version):
if version.exact and not version.distance:
return ""
else:
return version.format_choice("+{node}", "+{node}.dirty")

setup(
name="pyayay",
author="Ruslan Grohovecki",
Expand All @@ -22,4 +28,9 @@
cmdclass={"build_ext": build_ext},
zip_safe=False,
python_requires=">=3.8",
use_scm_version={
"local_scheme": no_dev_version,
"write_to": "version.txt",
},
setup_requires=["setuptools_scm"],
)
2 changes: 1 addition & 1 deletion version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v0.1.0-alpha.1
0.1.0-alpha.2

0 comments on commit 0679a23

Please sign in to comment.