https://bugzilla.wikimedia.org/show_bug.cgi?id=55126
Web browser: --- Bug ID: 55126 Summary: Version.py output differs if pywikibot is installed Product: Pywikibot Version: unspecified Hardware: All OS: All Status: NEW Severity: normal Priority: Unprioritized Component: General Assignee: Pywikipedia-bugs@lists.wikimedia.org Reporter: legoktm.wikipedia@gmail.com Classification: Unclassified Mobile Platform: ---
Originally from: http://sourceforge.net/p/pywikipediabot/bugs/1661/ Reported by: mineoo Created on: 2013-08-29 10:06:12.502000 Subject: Version.py output differs if pywikibot is installed Original description: (bot-venv)mineo@rika:~/pywikipediabot$ pip uninstall Pywikipediabot Uninstalling Pywikipediabot:
/home/mineo/bot-venv/lib/python2.6/site-packages/Pywikipediabot-2.0b1-py2.6.egg Proceed (y/n)? y Successfully uninstalled Pywikipediabot (bot-venv)mineo@rika:~/pywikipediabot$ PYTHONPATH=. python scripts/version.py Pywikibot: [https] git/pywikibot/core (r1995, fa7a248, 2013/08/28, 22:33:44, ok) Release version: 2.0b1 Python: 2.6.5 (r265:79063, Oct 1 2012, 22:04:36) [GCC 4.4.3] unicode test: ok (bot-venv)mineo@rika:~/pywikipediabot$ python setup.py install [ snip ] (bot-venv)mineo@rika:~/pywikipediabot$ PYTHONPATH=. python scripts/version.py Pywikibot: pywikibot/__init__.py (r-1 (unknown), 414550d, 2013/08/29, 10:00:14, OUTDATED) Release version: 2.0b1 Python: 2.6.5 (r265:79063, Oct 1 2012, 22:04:36) [GCC 4.4.3] unicode test: ok (bot-venv)mineo@rika:~/pywikipediabot$ cd scripts/ (bot-venv)mineo@rika:~/pywikipediabot/scripts$ python version.py Pywikibot: pywikibot/__init__.py (r-1 (unknown), 414550d, 2013/08/29, 10:00:14, OUTDATED) Release version: 2.0b1 Python: 2.6.5 (r265:79063, Oct 1 2012, 22:04:36) [GCC 4.4.3] unicode test: ok (bot-venv)mineo@rika:~/pywikipediabot/scripts$ cd ~/bot-venv/lib/python2.6/site-packages/Pywikipediabot-2.0b1-py2.6.egg/scripts/
(bot-venv)mineo@rika:~/bot-venv/lib/python2.6/site-packages/Pywikipediabot-2.0b1-py2.6.egg/scripts$ python version.py Pywikibot: pywikibot/__init__.py (r-1 (unknown), 414550d, 2013/08/29, 10:00:14, OUTDATED) Release version: 2.0b1 Python: 2.6.5 (r265:79063, Oct 1 2012, 22:04:36) [GCC 4.4.3] unicode test: ok
(bot-venv)mineo@rika:~/bot-venv/lib/python2.6/site-packages/Pywikipediabot-2.0b1-py2.6.egg/scripts$ cd ..
(bot-venv)mineo@rika:~/bot-venv/lib/python2.6/site-packages/Pywikipediabot-2.0b1-py2.6.egg$ PYTHONPATH=. python scripts/version.py Pywikibot: pywikibot/__init__.py (r-1 (unknown), 414550d, 2013/08/29, 10:00:14, OUTDATED) Release version: 2.0b1 Python: 2.6.5 (r265:79063, Oct 1 2012, 22:04:36) [GCC 4.4.3] unicode test: ok
It seems like you either get a commit identifier (fa7a248) or the hash of a git object (414550d) as the version number.
https://bugzilla.wikimedia.org/show_bug.cgi?id=55126
--- Comment #1 from Kunal Mehta (Legoktm) legoktm.wikipedia@gmail.com --- - **Group**: confirmed --> rewrite
https://bugzilla.wikimedia.org/show_bug.cgi?id=55126
Kunal Mehta (Legoktm) legoktm.wikipedia@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- See Also| |https://sourceforge.net/p/p | |ywikipediabot/bugs/1661
https://bugzilla.wikimedia.org/show_bug.cgi?id=55126
xqt info@gno.de changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |UNCONFIRMED CC| |info@gno.de Version|unspecified |core (2.0) Ever confirmed|1 |0
--- Comment #2 from xqt info@gno.de --- Should has been fixed with https://gerrit.wikimedia.org/r/#/c/86375/
could someone confirm whether this bug still exists?
https://bugzilla.wikimedia.org/show_bug.cgi?id=55126
xqt info@gno.de changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution|--- |WORKSFORME
--- Comment #3 from xqt info@gno.de --- unconfirmed after the alst changes of version.py
pywikipedia-bugs@lists.wikimedia.org