-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
90 lines (83 loc) · 2.63 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
# encoding: utf-8
from setuptools import setup, find_packages
import os.path
# Package data
# ------------
_name = 'jpl.mcl.site.knowledge'
_version = '0.0.9'
_description = 'Knowledge representation for the MCL site'
_url = 'https://github.com/MCLConsortium/' + _name
_downloadURL = 'https://github.com/MCLConsortium/' + _name + '/archive/' + _version + '.zip'
_author = 'Sean Kelly'
_authorEmail = '[email protected]'
_maintainer = 'Sean Kelly'
_maintainerEmail = '[email protected]'
_license = 'Proprietary'
_namespaces = ['jpl', 'jpl.mcl', 'jpl.mcl.site']
_zipSafe = False
_keywords = 'plone zope knowledge mcl'
_testSuite = 'jpl.mcl.site.knowledge.tests.test_suite'
_extras = {
'test': ['plone.app.testing'],
}
_entryPoints = {
'z3c.autoinclude.plugin': ['target=plone'],
}
_requirements = [
'setuptools',
'plone.api',
'plone.app.dexterity [grok, relations]',
'plone.app.imaging',
'plone.app.registry',
'plone.app.relationfield',
'plone.behavior',
'plone.formwidget.contenttree',
'Products.CMFPlacefulWorkflow',
'Products.CMFPlone',
'rdflib',
'z3c.relationfield',
]
_classifiers = [
'Development Status :: 2 - Pre-Alpha',
'Environment :: Web Environment',
'Framework :: Plone',
'License :: Other/Proprietary License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Topic :: Internet :: WWW/HTTP',
'Topic :: Software Development :: Libraries :: Python Modules',
]
# Setup Metadata
# --------------
#
# Nothing below here should require updating.
def _read(*rnames):
return open(os.path.join(os.path.dirname(__file__), *rnames)).read()
_header = '*' * len(_name) + '\n' + _name + '\n' + '*' * len(_name)
_longDescription = _header + '\n\n' + _read('README.rst') + '\n\n' + _read('docs', 'INSTALL.txt') + '\n\n' \
+ _read('docs', 'HISTORY.txt')
open('doc.txt', 'w').write(_longDescription)
setup(
author=_author,
author_email=_authorEmail,
classifiers=_classifiers,
description=_description,
download_url=_downloadURL,
entry_points=_entryPoints,
extras_require=_extras,
include_package_data=True,
install_requires=_requirements,
keywords=_keywords,
license=_license,
long_description=_longDescription,
maintainer=_maintainer,
maintainer_email=_maintainerEmail,
name=_name,
namespace_packages=_namespaces,
packages=find_packages('src', exclude=['ez_setup', 'bootstrap']),
package_dir={'': 'src'},
test_suite=_testSuite,
url=_url,
version=_version,
zip_safe=_zipSafe,
)