Merge branch 'main' into threadstate

This commit is contained in:
Andrew Murray 2024-05-22 08:02:20 +10:00 committed by GitHub
commit fe00d12e0a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 3 deletions

View File

@ -1 +1 @@
cibuildwheel==2.18.0 cibuildwheel==2.18.1

View File

@ -23,8 +23,7 @@ from setuptools.command.build_ext import build_ext
def get_version(): def get_version():
version_file = "src/PIL/_version.py" version_file = "src/PIL/_version.py"
with open(version_file, encoding="utf-8") as f: with open(version_file, encoding="utf-8") as f:
exec(compile(f.read(), version_file, "exec")) return f.read().split('"')[1]
return locals()["__version__"]
configuration = {} configuration = {}