Ticket #9963 (closed enhancement: fixed)

Opened 1 year ago

Last modified 8 months ago

Add minimum required Python version (2.5)

Reported by: rjollos Assigned to: Blackhex
Priority: normal Component: DiscussionPlugin
Severity: normal Keywords: version
Cc: Trac Release: 0.11

Description

Follow-up to this mailing list post and #9146.

#9800 demonstrates a way to implement it. I'd be happy to push the change to your repository if you'd like.

Attachments

Change History

04/13/12 21:06:41 changed by rjollos

  • keywords set to version.

Well, #9800 doesn't give the exact recipe, but it is contained in the setup.py for Trac:

min_python = (2, 5)
if sys.version_info < min_python:
    print "Trac requires Python %d.%d or later" % min_python
    sys.exit(1)
if sys.version_info >= (3,):
    print "Trac doesn't support Python 3 (yet)"
    sys.exit(1)

So you could just copy that into your setup.py and change the printed message.

09/26/12 03:51:35 changed by rjollos

  • status changed from new to closed.
  • resolution set to fixed.

(In [12057]) Fixes #9963, Refs #9800, #8276, #8803, #9146: Added check in setup.py for minimum required Python version. Python 2.5 is currently required. Later, we'll aim to restore full Python 2.4 compatibility.


Add/Change #9963 (Add minimum required Python version (2.5))




Change Properties
Action