Title: distutils2.version doesn't str() "1.0.post1" correctly
Type: behavior Stage: resolved
Components: Distutils2 Versions: 3rd party
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 2012-10-27 17:20 by python-dev. This issue is now closed.

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'))

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).
msg173933 - (view) Author: Éric Araujo (eric.araujo) * (Python committer) Date: 2012-10-27 16:20

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
Date User Action Args
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