1
# -*- coding: utf-8 -*-
3
# daemon/version/__init__.py
4
# Part of python-daemon, an implementation of PEP 3143.
6
# Copyright © 2008–2010 Ben Finney <ben+python@benfinney.id.au>
7
# This is free software: you may copy, modify, and/or distribute this work
8
# under the terms of the Python Software Foundation License, version 2 or
9
# later as published by the Python Software Foundation.
10
# No warranty expressed or implied. See the file LICENSE.PSF-2 for details.
12
""" Version information for the python-daemon distribution. """
14
from version_info import version_info
16
version_info['version_string'] = u"1.5.5"
18
version_short = u"%(version_string)s" % version_info
19
version_full = u"%(version_string)s.r%(revno)s" % version_info
20
version = version_short
22
author_name = u"Ben Finney"
23
author_email = u"ben+python@benfinney.id.au"
24
author = u"%(author_name)s <%(author_email)s>" % vars()
26
copyright_year_begin = u"2001"
27
date = version_info['date'].split(' ', 1)[0]
28
copyright_year = date.split('-')[0]
29
copyright_year_range = copyright_year_begin
30
if copyright_year > copyright_year_begin:
31
copyright_year_range += u"–%(copyright_year)s" % vars()
34
u"Copyright © %(copyright_year_range)s %(author)s and others"