Skip to content

Commit 0215519

Browse files
committed
Move to setuptools-scm
1 parent d08488b commit 0215519

File tree

4 files changed

+59
-51
lines changed

4 files changed

+59
-51
lines changed

MANIFEST.in

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ graft src/isal/isa-l
22
include src/isal/*.h
33
prune tests
44
prune docs
5+
prune .github
6+
exclude .git*
57
prune benchmark_scripts
68
exclude requirements-docs.txt
79
exclude codecov.yml

pyproject.toml

Lines changed: 56 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,60 @@
11
[build-system]
2-
requires = ["setuptools>=64", "versioningit>=1.1.0"]
2+
requires = ["setuptools>=77", "setuptools-scm>=8"]
33
build-backend = "setuptools.build_meta"
44

5-
[tool.versioningit.vcs]
6-
method="git"
7-
default-tag = "v0.0.0"
5+
[project]
6+
name = "isal"
7+
dynamic = ["version"]
8+
description = """
9+
Faster zlib and gzip compatible compression and decompression by providing \
10+
python bindings for the ISA-L ibrary."""
11+
license="PSF-2.0"
12+
keywords=["isal", "isa-l", "compression", "deflate", "gzip", "igzip"]
13+
authors = [{name = "Leiden University Medical Center"},
14+
{email = "[email protected]"}]
15+
readme = "README.rst"
16+
requires-python = ">=3.8" # BadGzipFile imported
17+
classifiers = [
18+
"Programming Language :: Python :: 3 :: Only",
19+
"Programming Language :: Python :: 3",
20+
"Programming Language :: Python :: 3.7",
21+
"Programming Language :: Python :: 3.8",
22+
"Programming Language :: Python :: 3.9",
23+
"Programming Language :: Python :: 3.10",
24+
"Programming Language :: Python :: Implementation :: CPython",
25+
"Programming Language :: Python :: Implementation :: PyPy",
26+
"Programming Language :: C",
27+
"Development Status :: 5 - Production/Stable",
28+
"Topic :: System :: Archiving :: Compression",
29+
"Operating System :: POSIX :: Linux",
30+
"Operating System :: MacOS",
31+
"Operating System :: Microsoft :: Windows",
32+
]
33+
urls.homepage = "https://github.com/pycompression/python-isal"
34+
urls.documentation = "python-isal.readthedocs.io"
835

9-
[tool.versioningit.write]
10-
file = "src/isal/_version.py"
36+
[tool.setuptools_scm]
37+
version_file = "src/isal/_version.py"
38+
39+
[tool.setuptools.packages.find]
40+
where = ["src"]
41+
include = ["isal"]
42+
43+
[tool.setuptools.package-data]
44+
isal = ['*.pyi', 'py.typed', 'isa-l/LICENSE', 'isa-l/README.md', 'isa-l/Release_notes.txt']
45+
[tool.setuptools.exclude-package-data]
46+
isal = [
47+
"*.c",
48+
"*.h",
49+
"isa-l/*/*",
50+
"isa-l/Mak*",
51+
"isa-l/.*",
52+
"isa-l/autogen.sh",
53+
"isa-l/Doxyfile",
54+
"isa-l/CONTRIBUTING.md",
55+
"isa-l/SECURITY.md",
56+
"isa-l/configure.ac",
57+
"isa-l/isa-l.*",
58+
"isa-l/libisal.pc.in",
59+
"isa-l/make.inc",
60+
]

setup.cfg

Lines changed: 0 additions & 2 deletions
This file was deleted.

setup.py

Lines changed: 1 addition & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,9 @@
1515
import tempfile
1616
from pathlib import Path
1717

18-
from setuptools import Extension, find_packages, setup
18+
from setuptools import Extension, setup
1919
from setuptools.command.build_ext import build_ext
2020

21-
import versioningit
22-
2321
ISA_L_SOURCE = os.path.join("src", "isal", "isa-l")
2422

2523
SYSTEM_IS_BSD = (sys.platform.startswith("freebsd") or
@@ -138,46 +136,6 @@ def build_isa_l():
138136

139137

140138
setup(
141-
name="isal",
142-
version=versioningit.get_version(),
143-
description="Faster zlib and gzip compatible compression and "
144-
"decompression by providing python bindings for the ISA-L "
145-
"library.",
146-
author="Leiden University Medical Center",
147-
author_email="[email protected]", # A placeholder for now
148-
long_description=Path("README.rst").read_text(),
149-
long_description_content_type="text/x-rst",
150139
cmdclass={"build_ext": BuildIsalExt},
151-
license="PSF-2.0",
152-
keywords="isal isa-l compression deflate gzip igzip threads",
153-
zip_safe=False,
154-
packages=find_packages('src'),
155-
package_dir={'': 'src'},
156-
package_data={'isal': ['*.pyi', 'py.typed',
157-
# Include isa-l LICENSE and other relevant files
158-
# with the binary distribution.
159-
'isa-l/LICENSE', 'isa-l/README.md',
160-
'isa-l/Release_notes.txt']},
161-
url="https://github.com/pycompression/python-isal",
162-
classifiers=[
163-
"Programming Language :: Python :: 3 :: Only",
164-
"Programming Language :: Python :: 3",
165-
"Programming Language :: Python :: 3.8",
166-
"Programming Language :: Python :: 3.9",
167-
"Programming Language :: Python :: 3.10",
168-
"Programming Language :: Python :: 3.11",
169-
"Programming Language :: Python :: 3.12",
170-
"Programming Language :: Python :: 3.13",
171-
"Programming Language :: Python :: Implementation :: CPython",
172-
"Programming Language :: Python :: Implementation :: PyPy",
173-
"Programming Language :: C",
174-
"Development Status :: 5 - Production/Stable",
175-
"Topic :: System :: Archiving :: Compression",
176-
"License :: OSI Approved :: Python Software Foundation License",
177-
"Operating System :: POSIX :: Linux",
178-
"Operating System :: MacOS",
179-
"Operating System :: Microsoft :: Windows",
180-
],
181-
python_requires=">=3.8", # BadGzipFile imported
182140
ext_modules=EXTENSIONS
183141
)

0 commit comments

Comments
 (0)