Skip to content

Commit

Permalink
Python 3.13 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
homm committed Aug 23, 2024
1 parent bf7595a commit eda1033
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
3 changes: 1 addition & 2 deletions MANIFEST.in
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,10 @@ include *.txt
include LICENSE
include Makefile
include tox.ini
graft Tests
graft src
graft depends
graft winbuild
graft docs
prune Tests

# build/src control detritus
exclude .appveyor.yml
Expand All @@ -23,6 +21,7 @@ exclude .codecov.yml
exclude .editorconfig
exclude .readthedocs.yml
exclude azure-pipelines.yml
global-exclude .DS_Store
global-exclude .git*
global-exclude *.pyc
global-exclude *.so
Expand Down
7 changes: 4 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,10 @@

def get_version():
version_file = "src/PIL/_version.py"
with open(version_file, "r") as f:
exec(compile(f.read(), version_file, "exec"))
return locals()["__version__"]
l = {}
with open(version_file, encoding="utf-8") as f:
exec(f.read(), {}, l)
return l["__version__"]


NAME = "Pillow-SIMD"
Expand Down
2 changes: 1 addition & 1 deletion src/PIL/_version.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
# Master version for Pillow
__version__ = "7.0.0.post4"
__version__ = "7.0.0.post5"

0 comments on commit eda1033

Please sign in to comment.