-
-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy pathsetup.py
159 lines (138 loc) · 4.03 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
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
from setuptools import find_packages
from setuptools import setup
version = "2.1.6.dev0"
def indented(filename):
return "".join([indent(line) for line in open(filename)])
def indent(line):
return " " + line
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"
)
console_scripts = [
"robot-server = plone.app.robotframework.server:server",
"robot = plone.app.robotframework.robotentrypoints:robot",
"robot-debug = plone.app.robotframework.robotentrypoints:robot_debug",
"pybot = plone.app.robotframework.robotentrypoints:pybot",
"ride = plone.app.robotframework.robotentrypoints:ride",
"libdoc = plone.app.robotframework.robotentrypoints:libdoc",
"pybabel = plone.app.robotframework.robotentrypoints:pybabel",
]
entry_points = dict(console_scripts=console_scripts)
install_requires = [
"Pillow",
"Products.CMFPlone",
"Products.PlonePAS >= 5.0.1",
"Products.PluggableAuthService",
"Zope",
"babel",
"docutils",
"plone.app.testing",
"plone.app.textfield",
"plone.base",
"plone.dexterity",
"plone.i18n",
"plone.namedfile",
"plone.protect",
"plone.registry",
"plone.testing",
"plone.uuid",
"robotframework",
"robotframework-selenium2library",
"robotframework-seleniumtestability",
"robotframework-browser",
"robotsuite", # not a direct dependency, but required for convenience
"selenium",
"setuptools",
"z3c.form",
"z3c.relationfield",
"zope.component",
"zope.i18n",
"zope.intid",
"zope.schema",
"zope.testrunner",
]
test_requires = [
"Products.MailHost",
"plone.app.textfield",
"plone.dexterity",
"robotsuite",
"webtest",
"z3c.form",
"zope.configuration",
]
debug_requires = [
# REPL-debugger for Robot Framework:
"robotframework-debuglibrary",
]
ride_requires = [
# Robot Framework IDE:
"robotframework-ride"
]
speak_requires = [
# Enable talking screen casts:
"collective.js.speakjs"
]
reload_requires = [
# Watch for filesystem changes:
"watchdog"
]
docs_requires = [
# Include robot-files outside docs:
"sphinxcontrib-robotdoc"
]
setup(
name="plone.app.robotframework",
version=version,
description="Robot Framework testing resources for Plone",
long_description=long_description,
classifiers=[
"Development Status :: 5 - Production/Stable",
"Framework :: Plone",
"Framework :: Plone :: 6.0",
"Framework :: Plone :: 6.1",
"License :: OSI Approved :: GNU General Public License (GPL)",
"Programming Language :: Python",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
],
keywords="robot automatic browser testing Plone",
author="Asko Soukka",
author_email="[email protected]",
url="https://github.com/plone/plone.app.robotframework/",
license="GPL",
packages=find_packages("src"),
package_dir={"": "src"},
namespace_packages=["plone", "plone.app"],
include_package_data=True,
zip_safe=False,
python_requires=">=3.8",
install_requires=install_requires,
extras_require={
"ride": ride_requires,
"speak": speak_requires,
"test": test_requires,
"reload": reload_requires,
"docs": docs_requires,
"debug": debug_requires,
},
entry_points=entry_points,
)