How do I specify a __version__ of a Python package?
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
PBR |
New
|
Undecided
|
Unassigned |
Bug Description
It's not clear from the documentation how a package maintainer should specify the version string, so that PBR automatically detects it for setuptools.
My habit is to put a code like this into the `<package_
"""
Package description (i.e. __doc__ is parsed in setup.py)
"""
__author__ = 'Author Name'
__email__ = '<email address hidden>'
__license__ = 'GPLv3'
__url__ = 'https:/
__version__ = '0.1.2.dev1'
While it may be debatable whether to include author, email, url and license information I guess it's widespread to include `__version__` in <package>
Parsing <package_