~ubuntu-branches/ubuntu/vivid/mako/vivid-proposed

« back to all changes in this revision

Viewing changes to setup.py

  • Committer: Package Import Robot
  • Author(s): Piotr Ożarowski
  • Date: 2014-06-10 20:38:26 UTC
  • mfrom: (1.4.7)
  • Revision ID: package-import@ubuntu.com-20140610203826-5gtppywd9v3gf14a
Tags: 1.0.0-1
* New upstream release
* Add python-changelog and python-sphinx-paramlinks to Build-Depends
  (needed while rebuilding documentation)
* Enable Python 3.X tests during build (add necessary packages to
  Build-Depends)
* Update links to upstream changelog (now points to changelog.rst)
* Add lintian override for source-is-missing doc/searchindex.js
  (this file is generated by sphinx-build, all sources are in the tarball)

Show diffs side-by-side

added added

removed removed

Lines of Context:
9
9
 
10
10
readme = open(os.path.join(os.path.dirname(__file__), 'README.rst')).read()
11
11
 
 
12
if sys.version_info < (2, 6):
 
13
    raise Exception("Mako requires Python 2.6 or higher.")
 
14
 
12
15
markupsafe_installs = (
13
16
            sys.version_info >= (2, 6) and sys.version_info < (3, 0)
14
17
        ) or sys.version_info >= (3, 3)
15
18
 
 
19
install_requires = []
 
20
 
16
21
if markupsafe_installs:
17
 
    install_requires = ['MarkupSafe>=0.9.2']
18
 
else:
19
 
    install_requires = []
 
22
    install_requires.append('MarkupSafe>=0.9.2')
 
23
 
 
24
try:
 
25
    import argparse
 
26
except ImportError:
 
27
    install_requires.append('argparse')
20
28
 
21
29
setup(name='Mako',
22
30
      version=VERSION,
39
47
      url='http://www.makotemplates.org/',
40
48
      license='MIT',
41
49
      packages=find_packages('.', exclude=['examples*', 'test*']),
42
 
      scripts=['scripts/mako-render'],
43
 
      tests_require=['nose >= 0.11'],
 
50
      tests_require=['nose >= 0.11', 'mock'],
44
51
      test_suite="nose.collector",
45
52
      zip_safe=False,
46
53
      install_requires=install_requires,
47
 
      extras_require={'beaker': ['Beaker>=1.1']},
 
54
      extras_require={},
48
55
      entry_points="""
49
56
      [python.templating.engines]
50
57
      mako = mako.ext.turbogears:TGPlugin
58
65
 
59
66
      [babel.extractors]
60
67
      mako = mako.ext.babelplugin:extract
 
68
 
 
69
      [console_scripts]
 
70
      mako-render = mako.cmd:cmdline
61
71
      """
62
72
)