Modify

Opened 3 years ago

Closed 2 years ago

#9963 closed enhancement (fixed)

Add minimum required Python version (2.5)

Reported by: rjollos Owned by: 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 (0)

Change History (2)

comment:1 Changed 3 years ago by rjollos

  • Keywords version added

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.

comment:2 Changed 2 years ago by rjollos

  • Resolution set to fixed
  • Status changed from new to closed

(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 Comment

Modify Ticket

Action
as closed The owner will remain Blackhex.
The resolution will be deleted. Next status will be 'reopened'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.