forked from plone/plone.restapi
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
100 lines (93 loc) · 2.98 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
91
92
93
94
95
96
97
98
99
100
from setuptools import setup, find_packages
import sys
version = '6.8.1.dev0'
def read(filename):
with open(filename) as myfile:
try:
return myfile.read()
except UnicodeDecodeError:
# Happens on one Jenkins node on Python 3.6,
# so maybe it happens for users too.
pass
# Opening and reading as text failed, so retry opening as bytes.
with open(filename, "rb") as myfile:
contents = myfile.read()
return contents.decode("utf-8")
long_description = (
read("README.rst")
+ "\n"
+ "Contributors\n"
+ "============\n"
+ "\n"
+ read("CONTRIBUTORS.rst")
+ "\n"
+ read("CHANGES.rst")
+ "\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",
"plone.tiles",
"mock",
'archetypes.schemaextender ; python_version<"3"',
'Products.Archetypes ; python_version<"3"',
'Products.contentmigration ; python_version<"3"',
'Products.ATContentTypes ; python_version<"3"',
'plone.app.blob ; python_version<"3"',
'plone.app.collection ; python_version<"3"',
]
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",
"Framework :: Plone :: Core",
"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",
"Programming Language :: Python :: 3.8",
"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
""",
)