-
Notifications
You must be signed in to change notification settings - Fork 0
/
__about__.py
37 lines (31 loc) · 1.22 KB
/
__about__.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
from collections import namedtuple
def __parse_version(v): # pragma: nocover
ver, rel = v, "final"
for c in ("a", "b", "c"):
parsed = v.split(c)
if len(parsed) == 2:
ver, rel = (parsed[0], c + parsed[1])
v = tuple((int(v) for v in ver.split(".")))
ver_info = namedtuple("Version", "major, minor, maint, release")(
*(v + (tuple((0,)) * (3 - len(v))) + tuple((rel,))))
return ver, rel, ver_info
__version__ = "0.1.2"
__release_name__ = "Possessed"
__years__ = "2014-2017"
_, __release__, __version_info__ = __parse_version(__version__)
__project_name__ = "vexmpp"
__project_slug__ = "vexmpp"
__pypi_name__ = "vexmpp"
__author__ = "Travis Shirk"
__author_email__ = "travis@pobox.com"
__url__ = "https://github.com/nicfit/vexmpp"
__description__ = "XMPP library for Python3 asyncio."
__long_description__ = ""
__license__ = "GNU GPL v3.0"
__github_url__ = "https://github.com/nicfit/vexmpp",
__version_txt__ = """
%(__name__)s %(__version__)s (C) Copyright %(__years__)s %(__author__)s
This program comes with ABSOLUTELY NO WARRANTY! See LICENSE for details.
Run with --help/-h for usage information or read the docs at
%(__url__)s
""" % (locals())