source: products/quintagroup.themetemplate/trunk/quintagroup/themetemplate/templates/qplone3_theme/setup.py_tmpl @ 1005

Last change on this file since 1005 was 1005, checked in by mylan, 15 years ago

Import package: Copied http://svn.quintagroup.com/products/qtheme.template/trunk@2041 + modifications concerning changed package name, namespace

File size: 2.4 KB
Line 
1# -*- coding: utf-8 -*-
2"""
3This module contains the tool of $project
4"""
5import os
6from setuptools import setup, find_packages
7
8def read(*rnames):
9    return open(os.path.join(os.path.dirname(__file__), *rnames)).read()
10
11version = ${repr($version) or "0.0.0"}
12
13tests_require=['zope.testing']
14
15setup(name=${repr($project)},
16      version=version,
17      description="${description or None}",
18      long_description=open("README.txt").read() + "\n" +
19                       open(os.path.join("docs", "HISTORY.txt")).read(),
20      # Get more strings from http://www.python.org/pypi?%3Aaction=list_classifiers
21      classifiers=[
22        'Framework :: Plone',
23        'Intended Audience :: Developers',
24        'Topic :: Software Development :: Libraries :: Python Modules',
25        #from zopeskel.base import LICENSE_CATEGORIES
26        #if $license_name.strip() in $LICENSE_CATEGORIES
27        $repr($LICENSE_CATEGORIES[$license_name.strip()]),
28        #end if
29        ],
30      keywords=${repr($keywords) or $empty},
31      author=${repr($author) or $empty},
32      author_email=${repr($author_email) or $empty},
33      url=${repr($url) or $empty},
34      license=${repr($license_name) or $empty},
35      packages=find_packages(exclude=['ez_setup']),
36      namespace_packages=['$namespace_package', '$namespace_package.$namespace_package2',],
37      include_package_data=True,
38      zip_safe=${repr(bool($zip_safe)) or False},
39      install_requires=['setuptools',
40                        # -*- Extra requirements: -*-
41                        ],
42      tests_require=tests_require,
43      extras_require=dict(tests=tests_require),
44      test_suite = '$namespace_package.$namespace_package2.${package}.tests',
45      entry_points="""
46      # -*- entry_points -*- #
47
48      [distutils.setup_keywords]
49      paster_plugins = setuptools.dist:assert_string_list
50      theme_vars = distwriters:assert_dict
51
52      [egg_info.writers]
53      paster_plugins.txt = setuptools.command.egg_info:write_arg
54      theme_vars.txt = distwriters:write_map
55
56      """,
57      paster_plugins = ["ZopeSkel",],
58      setup_requires = ["setuptools",],
59      theme_vars = {'skinname': '$skinname',
60          'skinbase'          : '$skinbase',
61          'namespace_package' : '$namespace_package',
62          'namespace_package2': '$namespace_package2',
63          'package'           : '$package',
64          'used_subtemplates' : '',
65      },
66      )
Note: See TracBrowser for help on using the repository browser.