Merge pull request #3083 from uploadcare/versions-cleanup

Rename PIL.version to PIL._version and remove it from module
This commit is contained in:
Alexander Karpinsky 2018-04-11 15:05:27 +03:00 committed by GitHub
commit 096a81b7fd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 7 additions and 7 deletions

View File

@ -8,7 +8,7 @@ Released quarterly on the first day of January, April, July, October.
* [ ] Develop and prepare release in ``master`` branch.
* [ ] Check [Travis CI](https://travis-ci.org/python-pillow/Pillow) and [AppVeyor CI](https://ci.appveyor.com/project/python-pillow/Pillow) to confirm passing tests in ``master`` branch.
* [ ] Check that all of the wheel builds [Pillow Wheel Builder](https://github.com/python-pillow/pillow-wheels) pass the tests in TravisCI.
* [ ] In compliance with https://www.python.org/dev/peps/pep-0440/, update version identifier in `PIL/version.py`
* [ ] In compliance with https://www.python.org/dev/peps/pep-0440/, update version identifier in `src/PIL/_version.py`
* [ ] Update `CHANGES.rst`.
* [ ] Run pre-release check via `make release-test` in a freshly cloned repo.
* [ ] Create branch and tag for release e.g.:
@ -38,7 +38,7 @@ Released as needed for security, installation or critical bug fixes.
```
git checkout -t remotes/origin/2.9.x
```
* [ ] In compliance with https://www.python.org/dev/peps/pep-0440/, update version identifier in `PIL/version.py`
* [ ] In compliance with https://www.python.org/dev/peps/pep-0440/, update version identifier in `src/PIL/_version.py`
* [ ] Run pre-release check via `make release-test`.
* [ ] Create tag for release e.g.:
```

View File

@ -122,7 +122,7 @@ def _read(file):
def get_version():
version_file = 'src/PIL/version.py'
version_file = 'src/PIL/_version.py'
with open(version_file, 'r') as f:
exec(compile(f.read(), version_file, 'exec'))
return locals()['__version__']

View File

@ -11,12 +11,12 @@
# ;-)
from . import version
from . import _version
VERSION = '1.1.7' # PIL Version
PILLOW_VERSION = version.__version__
PILLOW_VERSION = __version__ = _version.__version__
__version__ = PILLOW_VERSION
del _version
_plugins = ['BlpImagePlugin',
'BmpImagePlugin',

View File

@ -1,2 +1,2 @@
# Master version for Pillow
__version__ = '5.1.0'
__version__ = '5.2.0.dev0'