forked from plone/plone.restapi
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
87 lines (79 loc) · 2.52 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
from setuptools import setup, find_packages
import sys
version = '3.5.3-dev.0'
long_description = (
open('README.rst').read() + '\n' +
'Contributors\n'
'============\n' + '\n' +
open('CONTRIBUTORS.rst').read() + '\n' +
open('CHANGES.rst').read() + '\n'
)
TEST_REQUIRES = [
'collective.MockMailHost',
'plone.app.contenttypes',
'plone.app.robotframework',
'plone.app.testing [robot] >= 4.2.2', # ROBOT_TEST_LEVEL added
'plone.api',
'requests',
'freezegun',
'plone.tiles',
'mock',
]
PY2_ONLY = [
'archetypes.schemaextender',
'Products.Archetypes',
'Products.contentmigration',
'Products.ATContentTypes',
'plone.app.blob',
'plone.app.collection',
]
if sys.version_info[0] == 2:
TEST_REQUIRES += PY2_ONLY
setup(name='plone.restapi',
version=version,
description="plone.restapi is a RESTful hypermedia API for Plone.",
long_description=long_description,
# Get more strings from
# https://pypi.org/classifiers/
classifiers=[
"Development Status :: 5 - Production/Stable",
"Environment :: Web Environment",
"Framework :: Plone",
"Framework :: Plone :: 4.3",
"Framework :: Plone :: 5.0",
"Framework :: Plone :: 5.1",
"Framework :: Plone :: 5.2",
"Intended Audience :: Developers",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Topic :: Software Development :: Libraries :: Python Modules",
],
keywords='plone rest restful hypermedia api json',
author='Timo Stollenwerk (kitconcept GmbH)',
author_email='tisto@plone.org',
url='https://github.com/plone/plone.restapi/',
license='gpl',
packages=find_packages('src'),
package_dir={'': 'src'},
namespace_packages=['plone', ],
include_package_data=True,
zip_safe=False,
install_requires=[
'setuptools',
'python-dateutil',
'plone.behavior>=1.1', # adds name to behavior directive
'plone.rest >= 1.0a6', # json renderer moved to plone.restapi
'plone.schema >= 1.2.0', # new json field
'PyJWT',
'pytz',
],
extras_require={'test': TEST_REQUIRES},
entry_points="""
# -*- Entry points: -*-
[z3c.autoinclude.plugin]
target = plone
""",
)