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 244fb6f commit 3cfccb3
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 @@ -10,12 +10,10 @@ include *.yaml
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 @@ -24,6 +22,7 @@ exclude .editorconfig
exclude .readthedocs.yml
exclude azure-pipelines.yml
exclude codecov.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.1.2.post1"
__version__ = "7.1.2.post2"

0 comments on commit 3cfccb3

Please sign in to comment.