Versioning - pyqt/python-qt5 GitHub Wiki
Versioning have been added to this distribution.
>>> import PyQt5
>>> PyQt5.pyqt_version # Version of PyQt source
5.3.2
>>> PyQt5.qt_version # Version used to compile PyQt
5.3.1
>>> PyQt5.version # Version of this distribution
1.0.9
Implementation
These commands have been added to __init__.py
in order to include information about versions used in the compilation and distribution of this package.
version_info = (0, 1, 9) # Version of this release
version = "%s.%s.%s" % version_info
__version__ = version
pyqt_version_info = (5, 3, 2)
pyqt_version = "%s.%s.%s" % pyqt_version_info
__pyqt_version__ = pyqt_version
qt_version_info = (5, 3, 1)
qt_version = "%s.%s.%s" % qt_version_info
__qt_version__ = qt_version
Updating the distribution
Whenever an update is made to this repository and it's respective PyPI package, these version number must be incremented, following the Semantic Versioning 2.0 scheme