1 | # -*- coding: utf-8 -*- |
---|
2 | """ |
---|
3 | This module contains the tool of $project |
---|
4 | """ |
---|
5 | import os |
---|
6 | from setuptools import setup, find_packages |
---|
7 | |
---|
8 | def read(*rnames): |
---|
9 | return open(os.path.join(os.path.dirname(__file__), *rnames)).read() |
---|
10 | |
---|
11 | version = ${repr($version) or "0.0.0"} |
---|
12 | |
---|
13 | tests_require=['zope.testing'] |
---|
14 | |
---|
15 | setup(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 | tests_require=tests_require, |
---|
40 | extras_require=dict(tests=tests_require), |
---|
41 | test_suite = '$namespace_package.$namespace_package2.${package}.tests', |
---|
42 | install_requires=[ |
---|
43 | 'setuptools', |
---|
44 | # -*- Extra requirements: -*- |
---|
45 | ], |
---|
46 | entry_points=""" |
---|
47 | # -*- Entry points: -*- |
---|
48 | |
---|
49 | [z3c.autoinclude.plugin] |
---|
50 | target = plone |
---|
51 | """, |
---|
52 | setup_requires=["PasteScript"], |
---|
53 | paster_plugins=["ZopeSkel"], |
---|
54 | ) |
---|