diff --git a/MANIFEST.in b/MANIFEST.in index 3cc75354ae8..9dabec5fe2a 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -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 @@ -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 diff --git a/setup.py b/setup.py index 9b178c9a4de..b2a079d112f 100755 --- a/setup.py +++ b/setup.py @@ -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" diff --git a/src/PIL/_version.py b/src/PIL/_version.py index 56884d0a5cd..dd3eb9afb4a 100644 --- a/src/PIL/_version.py +++ b/src/PIL/_version.py @@ -1,2 +1,2 @@ # Master version for Pillow -__version__ = "7.0.0.post4" +__version__ = "7.0.0.post5"