jenkins-bot has submitted this change and it was merged.
Change subject: update version handling from core:
......................................................................
update version handling from core:
- print release from pywikibot __init__ file (1.0b1)
update __init__ file from core
- utf-8 coding
- copyright mark
- release string
- version hash string
Change-Id: I61758b8c8f14417be012311f496dbaa9a278f140
---
M pywikibot/__init__.py
M version.py
2 files changed, 18 insertions(+), 4 deletions(-)
Approvals:
Legoktm: Looks good to me, approved
DrTrigon: Checked; Looks good to me, but someone else must approve
jenkins-bot: Verified
diff --git a/pywikibot/__init__.py b/pywikibot/__init__.py
index 5daf5a2..bf163d9 100644
--- a/pywikibot/__init__.py
+++ b/pywikibot/__init__.py
@@ -1,5 +1,17 @@
-# wikipedia.py will monkey-patch this module to look completely
-# alike wikipedia itself...
+# -*- coding: utf-8 -*-
+"""
+The initialization file for the Pywikibot framework.
+
+wikipedia.py will monkey-patch this module to look completely
+alike wikipedia itself...
+"""
+#
+# (C) Pywikipedia bot team, 2010-2013
+#
+# Distributed under the terms of the MIT license.
+#
+__release__ = '1.0b1'
+__version__ = '$Id$'
try:
import wikipedia
diff --git a/version.py b/version.py
index 338fac5..9832bd4 100644
--- a/version.py
+++ b/version.py
@@ -10,12 +10,14 @@
__version__ = '$Id$'
import sys
+import pywikibot
from pywikibot.version import *
import config
if __name__ == '__main__':
- print 'Pywikipedia %s' % getversion()
- print 'Python %s' % sys.version
+ print 'Pywikibot %s' % getversion()
+ print 'Release version: %s' % pywikibot.__release__
+ print 'Python: %s' % sys.version
print 'config-settings:'
print 'use_api =', config.use_api
print 'use_api_login =', config.use_api_login
--
To view, visit
https://gerrit.wikimedia.org/r/86380
To unsubscribe, visit
https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I61758b8c8f14417be012311f496dbaa9a278f140
Gerrit-PatchSet: 2
Gerrit-Project: pywikibot/compat
Gerrit-Branch: master
Gerrit-Owner: Xqt <info(a)gno.de>
Gerrit-Reviewer: DrTrigon <dr.trigon(a)surfeu.ch>
Gerrit-Reviewer: Ladsgroup <ladsgroup(a)gmail.com>
Gerrit-Reviewer: Legoktm <legoktm.wikipedia(a)gmail.com>
Gerrit-Reviewer: jenkins-bot