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 bafbbb2 commit 1ba75d9
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,19 +10,18 @@ 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
exclude .coveragerc
exclude .editorconfig
exclude .readthedocs.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 @@ -21,9 +21,10 @@

def get_version():
version_file = "src/PIL/_version.py"
with open(version_file) 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__ = "8.0.1.post0"
__version__ = "8.0.1.post1"

0 comments on commit 1ba75d9

Please sign in to comment.