-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsetup.py
More file actions
70 lines (65 loc) · 2.29 KB
/
Copy pathsetup.py
File metadata and controls
70 lines (65 loc) · 2.29 KB
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
from setuptools import setup, find_packages
import os
name = 'wsapi4plone.core'
version_txt = os.path.join('wsapi4plone', 'core', 'version.txt')
version = open(version_txt).read().strip()
DEV_STATES = [
"Development Status :: 3 - Alpha",
"Development Status :: 4 - Beta",
"Development Status :: 5 - Production/Stable",
]
if version.find('a') >= 0:
state = 0
elif version.find('b') >= 0:
state = 1
else:
state = 2
development_status = DEV_STATES[state]
def read(*path):
return open(os.path.join(*path)).read()
setup(
name=name,
version=version,
author='WebLion Group, Penn State University',
author_email='support@weblion.psu.edu',
description="A Web Services API for Plone (>=3.x).",
long_description='\n\n'.join([read('README.txt'),
read('doc','changes.rst'),
]),
classifiers=[
"Framework :: Plone",
"Framework :: Zope2",
"Programming Language :: Python",
"Topic :: Software Development :: Libraries :: Python Modules",
"Intended Audience :: Developers",
development_status,
],
keywords='wsapi api xmlrpc weblion',
url='http://packages.python.org/wsapi4plone.core/',
license='GPL',
packages=find_packages(),
namespace_packages=['wsapi4plone'],
extras_require = dict(test=['zope.app.testing',
'zope.testing',
'zope.traversing',
],
blob=['plone.app.blob'],
plone33=['collective.autopermission==1.0b2',
'plone.app.blob==1.5',
'ZODB3==3.8.3',
],
),
install_requires=['setuptools',
'collective.autopermission',
##'Plone',
# We have support for plone.app.blob, but only use it
# when it's already available (e.g Plone >= 4).
##'plone.app.blob',
],
entry_points="""
# -*- Entry points: -*-
[z3c.autoinclude.plugin]
target = plone""",
include_package_data=True,
zip_safe=False,
)