Skip to content

Commit 0ee6d8d

Browse files
committed
fix local versions not allowed in PYPI upload
1 parent e5cdd0c commit 0ee6d8d

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

pyproject.toml

+5-1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ requires = [
55
"ninja",
66
"cmake>=3.12",
77
"repairwheel",
8+
"setuptools-scm>=8"
89
]
910
build-backend = "setuptools.build_meta"
1011

@@ -47,4 +48,7 @@ extend-select = [
4748
extend-ignore = [
4849
"E501", # Line too long
4950
]
50-
target-version = "py39"
51+
target-version = "py39"
52+
53+
[tool.setuptools_scm]
54+
version_file = "_version.py"

setup.py

-1
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,6 @@ def get_version() -> str:
231231
# logic and declaration, and simpler if you include description/version in a file.
232232
setup(
233233
name="pywhispercpp",
234-
version=get_version(),
235234
author="abdeladim-s",
236235
description="Python bindings for whisper.cpp",
237236
long_description=long_description,

version.txt

-1
This file was deleted.

0 commit comments

Comments
 (0)