Skip to content

Commit 9e30322

Browse files
committed
Remove setuptools_scm
1 parent c4580fd commit 9e30322

4 files changed

Lines changed: 3 additions & 21 deletions

File tree

.github/workflows/build.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ jobs:
4242
CIBW_ARCHS: "${{ matrix.archs }}"
4343
CIBW_BUILD: "${{ matrix.build && '*-' || ''}}${{ matrix.build }}*"
4444
CIBW_PRERELEASE_PYTHONS: "${{ !startsWith(github.ref, 'refs/tags/v') }}"
45-
CIBW_BEFORE_BUILD: python -m pip install setuptools_scm && python setup.py --version
4645

4746
- uses: actions/upload-artifact@v3
4847
with:

pyproject.toml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,2 @@
11
[build-system]
22
requires = ["setuptools>=45", "wheel"]
3-
4-
[tool.setuptools_scm]
5-
write_to = "xxhash/version.py"
6-
local_scheme = "no-local-version"
7-
write_to_template = "VERSION = \"{version}\"\nVERSION_TUPLE = {version_tuple}\n"

setup.py

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -35,20 +35,9 @@ def readfile(filename):
3535
exec(Path(__file__).parent.joinpath("xxhash", "version.py").read_text(), {}, version_dict)
3636
version = version_dict["VERSION"]
3737

38-
setup_kwargs = {}
39-
if os.getenv("CI"):
40-
# for compatibility, see https://pypi.org/project/setuptools-scm/7.1.0/#setup-py-usage-deprecated
41-
setup_kwargs["use_scm_version"] = {
42-
"write_to": "xxhash/version.py",
43-
"local_scheme": "no-local-version",
44-
"write_to_template": "VERSION = \"{version}\"\nVERSION_TUPLE = {version_tuple}\n",
45-
}
46-
setup_kwargs["setup_requires"] = ["setuptools_scm"]
47-
else:
48-
setup_kwargs["version"] = version
49-
5038
setup(
5139
name='xxhash',
40+
version=version,
5241
description="Python binding for xxHash",
5342
long_description=long_description,
5443
long_description_content_type="text/x-rst",
@@ -75,5 +64,4 @@ def readfile(filename):
7564
python_requires=">=3.7",
7665
ext_modules=ext_modules,
7766
package_data={"xxhash": ["py.typed", "**.pyi"]},
78-
**setup_kwargs,
7967
)

xxhash/version.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
VERSION = "3.4.0"
2-
VERSION_TUPLE = (3, 4, 0)
1+
VERSION = "3.4.1"
2+
VERSION_TUPLE = (3, 4, 1)

0 commit comments

Comments
 (0)