-
Notifications
You must be signed in to change notification settings - Fork 4
/
setup.py
64 lines (58 loc) · 2 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
""" Python packaging for irobotframework
Automagically installs kernelspecs, probably more later...
"""
import re
from pathlib import Path
import setuptools
NAME = "irobotframework"
HERE = Path(__file__).parent.resolve()
SRC = HERE / "src" / NAME
RESOURCES = SRC / "resources"
VERSION_RE = r""".*__version__ = (['"])(\d+\.\d+\.\d+)\1.*"""
setup_args = dict(
name=NAME,
version=re.findall(VERSION_RE, (SRC / "_version.py").read_text(encoding="utf-8"))[
0
][1],
description="Jupyter integration for Robot Framework",
license="BSD-3-Clause",
long_description=(HERE / "README.md").read_text(encoding="utf-8"),
long_description_content_type="text/markdown",
url="https://github.com/gtri/irobotframework",
author="Georgia Tech Research Corporation",
author_email="opensource@gtri.gatech.edu",
data_files=[
(
"share/jupyter/kernels/robotframework",
[str(p.relative_to(HERE)) for p in RESOURCES.glob("*")],
)
],
include_package_data=True,
package_dir={"": "src"},
packages=setuptools.find_packages("src"),
install_requires=[
"importnb>=0.5.2",
"ipykernel>=5.1",
"IPython>=7.2",
"jinja2",
"robotframework>=3.1",
],
tests_require=["jupyter_kernel_test", "robotframework-seleniumlibrary", "pytest"],
keywords=["Interactive", "Interpreter", "Shell", "Testing", "Web"],
classifiers=[
"Framework :: IPython",
"Framework :: Jupyter",
"Framework :: Robot Framework :: Tool",
"Framework :: Robot Framework",
"Intended Audience :: Developers",
"Intended Audience :: Information Technology",
"License :: OSI Approved :: BSD License",
"Programming Language :: Python :: 3",
"Programming Language :: Python",
"Topic :: Software Development :: Quality Assurance",
"Topic :: Software Development :: Testing",
],
zip_safe=False,
)
if __name__ == "__main__":
setuptools.setup(**setup_args)