Changeset 13472


Ignore:
Timestamp:
Dec 13, 2013, 9:00:38 PM (10 years ago)
Author:
Ryan J Ollos
Message:

Enforce a minimum Trac version in setup.py. Refs trac:#11388.

The method disable_component in trac.core:ComponentManager, which is utilized by this plugin in estimationtools.utils, is only available since Trac 0.11.3 (see trac:#7748, [trac 7719]). Thanks to Jun Omae for the hint.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • estimationtoolsplugin/trunk/setup.py

    r12062 r13472  
    22# -*- coding: iso-8859-1 -*-
    33
     4
     5import sys
    46from setuptools import setup
     7from pkg_resources import parse_version
     8
     9
     10name = 'EstimationTools'
     11version = '0.4.6'
     12min_trac = '0.11.3'
     13try:
     14    import trac
     15    if parse_version(trac.__version__) < parse_version(min_trac):
     16        print "%s %s requires Trac >= %s" % (name, version, min_trac)
     17        sys.exit(1)
     18except ImportError:
     19    pass
    520
    621setup(
    7     name = 'EstimationTools',
     22    name = name,
    823    author = 'Joachim Hoessler',
    924    author_email = 'hoessler@gmail.com',
    1025    description = 'Trac plugin for visualizing and quick editing of effort estimations',
    11     version = '0.4.6',
     26    version = version,
    1227    license='BSD',
    1328    packages=['estimationtools'],
Note: See TracChangeset for help on using the changeset viewer.