Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions .github/workflows/build_dist.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ jobs:
uses: actions/setup-python@v4
with:
python-version: 3.x
- name: Install setuptools
run: pip install setuptools
- name: Build sdist
run: python setup.py sdist
- name: Save sdist
Expand All @@ -35,7 +37,7 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest, macOS-latest, windows-latest]
cibw_build: [cp37-*, cp38-*, cp39-*, cp310-*, cp311-*]
cibw_build: [cp38-*, cp39-*, cp310-*, cp311-*, cp312-*]
steps:
- name: Check out repository
uses: actions/checkout@v3
Expand All @@ -51,7 +53,7 @@ jobs:
with:
platforms: all
- name: Build wheels
uses: pypa/cibuildwheel@v2.11.4
uses: pypa/cibuildwheel@v2.16.2
env:
CIBW_ENVIRONMENT: PYLZ4_USE_SYSTEM_LZ4="False"
CIBW_ARCHS_LINUX: "x86_64 i686 aarch64"
Expand Down
9 changes: 7 additions & 2 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,13 @@
# |version| and |release|, also used in various other places throughout the
# built documents.
#
from pkg_resources import get_distribution
release = get_distribution('lz4').version
try:
import importlib.metadata
except ImportError:
from pkg_resources import get_distribution
release = get_distribution('lz4').version
else:
release = importlib.metadata.version('lz4')
version = release

# The language for content autogenerated by Sphinx. Refer to documentation
Expand Down
2 changes: 1 addition & 1 deletion docs/install.rst
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ The LZ4 bindings require linking to the LZ4 library, and so if there is not a
pre-compiled wheel available for your platform you will need to have a suitable
C compiler available, as well as the Python development header files. On
Debian/Ubuntu based systems the header files for Python are found in the
distribution package ``pythonX.Y-dev`` e.g. ``python3.7-dev``. On Fedora/Red Hat
distribution package ``pythonX.Y-dev`` e.g. ``python3.8-dev``. On Fedora/Red Hat
based systems, the Python header files are found in the distribution package
``python-devel``.

Expand Down
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ def pkgconfig_installed_check(lib, required_version, default):
use_scm_version={
'write_to': "lz4/version.py",
},
python_requires=">=3.7",
python_requires=">=3.8",
setup_requires=[
'setuptools_scm',
'pkgconfig',
Expand Down Expand Up @@ -200,10 +200,10 @@ def pkgconfig_installed_check(lib, required_version, default):
'Intended Audience :: Developers',
'Programming Language :: C',
'Programming Language :: Python',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
'Programming Language :: Python :: 3.12',
],
)