~justin-fathomdb/nova/justinsb-openstack-api-volumes

« back to all changes in this revision

Viewing changes to vendor/python-daemon/daemon/version/__init__.py

  • Committer: Jesse Andrews
  • Date: 2010-05-28 06:05:26 UTC
  • Revision ID: git-v1:bf6e6e718cdc7488e2da87b21e258ccc065fe499
initial commit

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# -*- coding: utf-8 -*-
 
2
 
 
3
# daemon/version/__init__.py
 
4
# Part of python-daemon, an implementation of PEP 3143.
 
5
#
 
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.
 
11
 
 
12
""" Version information for the python-daemon distribution. """
 
13
 
 
14
from version_info import version_info
 
15
 
 
16
version_info['version_string'] = u"1.5.5"
 
17
 
 
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
 
21
 
 
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()
 
25
 
 
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()
 
32
 
 
33
copyright = (
 
34
    u"Copyright © %(copyright_year_range)s %(author)s and others"
 
35
    ) % vars()
 
36
license = u"PSF-2+"