mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-12-26 18:06:18 +03:00
Merge pull request #3083 from uploadcare/versions-cleanup
Rename PIL.version to PIL._version and remove it from module
This commit is contained in:
commit
096a81b7fd
|
@ -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.:
|
||||
```
|
||||
|
|
2
setup.py
2
setup.py
|
@ -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__']
|
||||
|
|
|
@ -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',
|
||||
|
|
|
@ -1,2 +1,2 @@
|
|||
# Master version for Pillow
|
||||
__version__ = '5.1.0'
|
||||
__version__ = '5.2.0.dev0'
|
Loading…
Reference in New Issue
Block a user