[pytango] 42/122: PEP8-ify release module
Sandor Bodo-Merle
sbodomerle-guest at moszumanska.debian.org
Thu Sep 28 19:18:16 UTC 2017
This is an automated email from the git hooks/post-receive script.
sbodomerle-guest pushed a commit to tag v9.2.1
in repository pytango.
commit 2ace1a5aaa2a3784ac4de68b7cc1cb53eb8d96ba
Author: Vincent Michel <vincent.michel at maxlab.lu.se>
Date: Fri Sep 30 14:41:09 2016 +0200
PEP8-ify release module
---
tango/release.py | 51 +++++++++++++++++++++++++++------------------------
1 file changed, 27 insertions(+), 24 deletions(-)
diff --git a/tango/release.py b/tango/release.py
index 3a23581..85efa3f 100644
--- a/tango/release.py
+++ b/tango/release.py
@@ -13,44 +13,47 @@
This is an internal PyTango module.
"""
-__all__ = [ "Release" ]
+__all__ = ["Release"]
__docformat__ = "restructuredtext"
+
class Release:
+ """Summarize release information as class attributes.
+
+ Release information:
+ - name: (str) package name
+ - version_info: (tuple<int,int,int,str,int>) The five components
+ of the version number: major, minor, micro, releaselevel, and
+ serial.
+ - version: (str) package version in format <major>.<minor>.<micro>
+ - version_long: (str) package version in format
+ <major>.<minor>.<micro><releaselevel><serial>
+ - version_description: (str) short description for the current
+ version
+ - version_number: (int) <major>*100 + <minor>*10 + <micro>
+ - description : (str) package description
+ - long_description: (str) longer package description
+ - authors: (dict<str(last name), tuple<str(full name),str(email)>>)
+ package authors
+ - url: (str) package url
+ - download_url: (str) package download url
+ - platform: (seq<str>) list of available platforms
+ - keywords: (seq<str>) list of keywords
+ - license: (str) the license
"""
- Release information:
- - name : (str) package name
- - version_info : (tuple<int,int,int,str,int>) The five components
- of the version number: major, minor, micro, releaselevel, and
- serial.
- - version : (str) package version in format <major>.<minor>.<micro>
- - version_long : (str) package version in format
- <major>.<minor>.<micro><releaselevel><serial>
- - version_description : (str) short description for the current
- version
- - version_number : (int) <major>*100 + <minor>*10 + <micro>
- - description : (str) package description
- - long_description : (str) longer package description
- - authors : (dict<str(last name), tuple<str(full name),str(email)>>)
- package authors
- - url : (str) package url
- - download_url : (str) package download url
- - platform : (seq<str>) list of available platforms
- - keywords : (seq<str>) list of keywords
- - license : (str) the license"""
name = 'PyTango'
version_info = (9, 2, 0)
version = '.'.join(map(str, version_info[:3]))
version_long = version + ''.join(map(str, version_info[3:]))
version_description = 'This version implements the C++ Tango 9.2 API.'
- version_number = int(version.replace('.',''))
+ version_number = int(version.replace('.', ''))
description = 'A python binding for the Tango control system'
long_description = 'This module implements the Python Tango Device API ' \
'mapping.'
license = 'LGPL'
- authors = { 'Coutinho' : ('Tiago Coutinho' , 'coutinho at esrf.fr') }
- author_lines = "\n".join([ "%s <%s>" % x for x in authors.values()])
+ authors = {'Coutinho': ('Tiago Coutinho', 'coutinho at esrf.fr')}
+ author_lines = "\n".join(["%s <%s>" % x for x in authors.values()])
url = 'http://github.com/tango-cs/pytango'
download_url = 'http://pypi.python.org/pypi/pytango'
platform = ['Linux', 'Windows XP/Vista/7/8']
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/pytango.git
More information about the debian-science-commits
mailing list