Make __version__ work
The package/distribution is 'packitos',
while __name__ is 'packit'.
from pkg_resources import get_distribution, DistributionNotFound
try:
- __version__ = get_distribution(__name__).version
+ __version__ = get_distribution("packitos").version
except DistributionNotFound:
# package is not installed
pass
