diff --git a/MANIFEST.in b/MANIFEST.in index c12f2b2992d..dd4852fab75 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -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 @@ -24,6 +22,7 @@ exclude .coveragerc exclude .editorconfig exclude .readthedocs.yml exclude codecov.yml +global-exclude .DS_Store global-exclude .git* global-exclude *.pyc global-exclude *.so diff --git a/setup.py b/setup.py index 6d352170de2..31c760c91b4 100755 --- a/setup.py +++ b/setup.py @@ -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" diff --git a/src/PIL/_version.py b/src/PIL/_version.py index 6bb7fca0ca6..36b01c883c6 100644 --- a/src/PIL/_version.py +++ b/src/PIL/_version.py @@ -1,2 +1,2 @@ # Master version for Pillow -__version__ = "8.3.2.post0" +__version__ = "8.3.2.post1"