setup_example/mypackage/__version__.py
Floris Lambrechts aa60dc88c2 Make __version__ a module-level attribute
By moving __version__ to __init__.py, it becomes an attribute of the
module.  This is recommended in PEP 396 and a common practice in many
contemporary packages.

This enables the following:

>>> import mypackage
>>> print(mypackage.__version__)
'5.2.0'
2018-07-26 14:58:28 +02:00

7 lines
309 B
Python

# 8b d8 Yb dP 88""Yb db dP""b8 88 dP db dP""b8 888888
# 88b d88 YbdP 88__dP dPYb dP `" 88odP dPYb dP `" 88__
# 88YbdP88 8P 88""" dP__Yb Yb 88"Yb dP__Yb Yb "88 88""
# 88 YY 88 dP 88 dP""""Yb YboodP 88 Yb dP""""Yb YboodP 888888
VERSION = (5, 2, 0)