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 b6317b2 commit ff3158d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 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 @@ -25,6 +23,7 @@ exclude .editorconfig
exclude .readthedocs.yml
exclude codecov.yml
exclude renovate.json
global-exclude .DS_Store
global-exclude .git*
global-exclude *.pyc
global-exclude *.so
Expand Down
5 changes: 3 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,10 @@

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


PILLOW_VERSION = get_version()
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__ = "9.5.0.post0"
__version__ = "9.5.0.post1"

0 comments on commit ff3158d

Please sign in to comment.