Skip to content

Commit

Permalink
Merge pull request #78 from AT0myks/3.12
Browse files Browse the repository at this point in the history
3.12 wheels
  • Loading branch information
jd-boyd authored Jan 9, 2024
2 parents 0eafa0a + ea7b074 commit 9cc2ea9
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ jobs:
with:
platforms: all
- name: Build and test wheels
uses: pypa/cibuildwheel@v2.12.3
uses: pypa/cibuildwheel@v2.16.2
env:
CIBW_BUILD: "*${{ matrix.arch }}"
- name: Upload wheels
Expand Down
8 changes: 6 additions & 2 deletions tests/test_lzo.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,12 @@ def gen_raw(src, level=1):
print("compressed %6d -> %6d" % (len(src), len(c)))

def test_version():
import pkg_resources
pkg_version = pkg_resources.require("python-lzo")[0].version
if sys.version_info >= (3, 10):
from importlib.metadata import version
pkg_version = version("python-lzo")
else:
import pkg_resources
pkg_version = pkg_resources.require("python-lzo")[0].version
mod_version = lzo.__version__.decode('utf-8')
assert pkg_version == mod_version, \
"%r != %r" %(pkg_version, mod_version)
Expand Down
2 changes: 1 addition & 1 deletion tests/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@


import os, sys
from distutils.util import get_platform
from sysconfig import get_platform

#
# prepare sys.path in case we are still in the build directory
Expand Down

0 comments on commit 9cc2ea9

Please sign in to comment.