Skip to content

Commit 65b563a

Browse files
Merge pull request #275 from evansd/python3.12-wheels
Build wheels for Python 3.12
2 parents 58df083 + 7182e7d commit 65b563a

File tree

4 files changed

+14
-7
lines changed

4 files changed

+14
-7
lines changed

.github/workflows/build_dist.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ jobs:
2222
uses: actions/setup-python@v4
2323
with:
2424
python-version: 3.x
25+
- name: Install setuptools
26+
run: pip install setuptools
2527
- name: Build sdist
2628
run: python setup.py sdist
2729
- name: Save sdist
@@ -35,7 +37,7 @@ jobs:
3537
strategy:
3638
matrix:
3739
os: [ubuntu-latest, macOS-latest, windows-latest]
38-
cibw_build: [cp37-*, cp38-*, cp39-*, cp310-*, cp311-*]
40+
cibw_build: [cp38-*, cp39-*, cp310-*, cp311-*, cp312-*]
3941
steps:
4042
- name: Check out repository
4143
uses: actions/checkout@v3
@@ -51,7 +53,7 @@ jobs:
5153
with:
5254
platforms: all
5355
- name: Build wheels
54-
uses: pypa/cibuildwheel@v2.11.4
56+
uses: pypa/cibuildwheel@v2.16.2
5557
env:
5658
CIBW_ENVIRONMENT: PYLZ4_USE_SYSTEM_LZ4="False"
5759
CIBW_ARCHS_LINUX: "x86_64 i686 aarch64"

docs/conf.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,13 @@
5555
# |version| and |release|, also used in various other places throughout the
5656
# built documents.
5757
#
58-
from pkg_resources import get_distribution
59-
release = get_distribution('lz4').version
58+
try:
59+
import importlib.metadata
60+
except ImportError:
61+
from pkg_resources import get_distribution
62+
release = get_distribution('lz4').version
63+
else:
64+
release = importlib.metadata.version('lz4')
6065
version = release
6166

6267
# The language for content autogenerated by Sphinx. Refer to documentation

docs/install.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ The LZ4 bindings require linking to the LZ4 library, and so if there is not a
2222
pre-compiled wheel available for your platform you will need to have a suitable
2323
C compiler available, as well as the Python development header files. On
2424
Debian/Ubuntu based systems the header files for Python are found in the
25-
distribution package ``pythonX.Y-dev`` e.g. ``python3.7-dev``. On Fedora/Red Hat
25+
distribution package ``pythonX.Y-dev`` e.g. ``python3.8-dev``. On Fedora/Red Hat
2626
based systems, the Python header files are found in the distribution package
2727
``python-devel``.
2828

setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ def pkgconfig_installed_check(lib, required_version, default):
171171
use_scm_version={
172172
'write_to': "lz4/version.py",
173173
},
174-
python_requires=">=3.7",
174+
python_requires=">=3.8",
175175
setup_requires=[
176176
'setuptools_scm',
177177
'pkgconfig',
@@ -200,10 +200,10 @@ def pkgconfig_installed_check(lib, required_version, default):
200200
'Intended Audience :: Developers',
201201
'Programming Language :: C',
202202
'Programming Language :: Python',
203-
'Programming Language :: Python :: 3.7',
204203
'Programming Language :: Python :: 3.8',
205204
'Programming Language :: Python :: 3.9',
206205
'Programming Language :: Python :: 3.10',
207206
'Programming Language :: Python :: 3.11',
207+
'Programming Language :: Python :: 3.12',
208208
],
209209
)

0 commit comments

Comments
 (0)