This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: distutils2.version doesn't str() "1.0.post1" correctly
Type: behavior Stage: resolved
Components: Distutils2 Versions: 3rd party
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: eric.araujo Nosy List: alexis, eric.araujo, python-dev, richard, tarek, vinay.sajip
Priority: normal Keywords: patch

Created on 2012-10-02 00:33 by richard, last changed 2022-04-11 14:57 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
post-fix.patch richard, 2012-10-02 00:32 Patch to test and fix the problem
Messages (5)
msg171765 - (view) Author: Richard Jones (richard) * (Python committer) Date: 2012-10-02 00:32
The attached simple patch demonstrates the problem:

>>> str(NormalizedVersion('1.0.post1'))
'1.0.post1.z'

and includes a fix.
msg171810 - (view) Author: Éric Araujo (eric.araujo) * (Python committer) Date: 2012-10-02 15:13
Thanks, will apply.
msg173932 - (view) Author: Roundup Robot (python-dev) (Python triager) Date: 2012-10-27 16:18
New changeset 6e98237abde9 by Éric Araujo in branch 'default':
Fix stringification of final versions (#16107).
http://hg.python.org/distutils2/rev/6e98237abde9
msg173933 - (view) Author: Éric Araujo (eric.araujo) * (Python committer) Date: 2012-10-27 16:20
Fixed.

Vinay, you probably want to apply this to your forked version module too.
msg173945 - (view) Author: Roundup Robot (python-dev) (Python triager) Date: 2012-10-27 17:20
New changeset d328dcd07449 by Éric Araujo in branch 'python3':
Merge fixes for #16107 and #15957 from default
http://hg.python.org/distutils2/rev/d328dcd07449
History
Date User Action Args
2022-04-11 14:57:36adminsetgithub: 60311
2012-10-27 17:20:44python-devsetmessages: + msg173945
2012-10-27 16:20:52eric.araujosetstatus: open -> closed

nosy: + vinay.sajip
messages: + msg173933

resolution: fixed
stage: patch review -> resolved
2012-10-27 16:18:46python-devsetnosy: + python-dev
messages: + msg173932
2012-10-02 15:13:51eric.araujosetmessages: + msg171810
versions: + 3rd party
2012-10-02 00:33:01richardcreate