Skip to content

Commit

Permalink
feat: try getting version from tag
Browse files Browse the repository at this point in the history
  • Loading branch information
dhdaines committed Feb 1, 2024
1 parent f677539 commit 6c275ae
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,4 @@ CMakeFiles
CTestTestfile.cmake
DartConfiguration.tcl
cmake_install.cmake
py/soundswallower/_version.py
9 changes: 7 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ build-backend = "scikit_build_core.build"

[project]
name = "soundswallower"
version = "0.6.1"
dynamic = ["version"]
description = "An even smaller speech recognizer"
readme = "README.md"
authors = [
Expand Down Expand Up @@ -41,7 +41,6 @@ soundswallower = "soundswallower.cli:main"
[tool.cibuildwheel]
# Build a reduced selection of binaries as there are tons of them
build = [
"pp310*",
"cp38-*",
"cp310-*",
"cp311-*",
Expand All @@ -53,6 +52,7 @@ skip = [
"cp*-macosx_x86_64",
"cp*-macosx_arm64",
"*_i686",
"*musl*",
"*-win32",
]

Expand All @@ -67,6 +67,11 @@ extend-ignore = "E203"
max-line-length = "88"

[tool.scikit-build]
metadata.version.provider = "scikit_build_core.metadata.setuptools_scm"
sdist.include = ["py/soundswallwer/_version.py"]
cmake.verbose = true
logging.level = "INFO"
wheel.packages = ["py/soundswallower"]

[tool.setuptools_scm]
write_to = "py/soundswallower/_version.py"

0 comments on commit 6c275ae

Please sign in to comment.