Make version fetching a bit more robust (use pbr).

This commit is contained in:
Tobias Gruetzmacher 2015-11-06 22:08:14 +01:00
parent 64f7e313d5
commit a41574e31a
3 changed files with 6 additions and 4 deletions

2
.gitignore vendored
View file

@ -1,7 +1,7 @@
*.orig
*.pyc
*.pyo
/*.egg
/.eggs
/Comics
/build
/dist

View file

@ -1,6 +1,7 @@
# -*- coding: iso-8859-1 -*-
# Copyright (C) 2004-2005 Tristan Seligmann and Jonathan Jacobs
# Copyright (C) 2012-2014 Bastian Kleineidam
# Copyright (C) 2015 Tobias Gruetzmacher
"""
Automated comic downloader. Dosage traverses comic websites in
order to download each strip of the comic. The intended use is for
@ -13,8 +14,8 @@ The primary interface is the 'dosage' commandline script.
Comic modules for each comic are located in L{dosagelib.plugins}.
"""
from pkg_resources import get_distribution
from pbr.version import VersionInfo
AppName = u'dosage'
dist = get_distribution(AppName)
__version__ = dist.version # PEP 396
version_info = VersionInfo(AppName)
__version__ = version_info.version_string() # PEP 396

View file

@ -1 +1,2 @@
requests>=2.0
pbr