-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathsetup.py
61 lines (55 loc) · 1.54 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
"""
Setup harness
"""
import subprocess
from setuptools import setup, find_packages
def _read_long_description():
with open("README.md") as readme:
return readme.read()
GIT_VERSION = (
subprocess.check_output("git describe --always".split())
.strip()
.decode("ascii")
.replace("v", "", 1)
)
DEV_REQUIRE = [
"pytest-socket",
"tox",
"python-semantic-release",
"black",
"mypy",
"pylint",
"safety",
"wheel",
"twine",
"xenon",
]
NAME = "pytest_rts"
NAME_DASHED = NAME.replace("_", "-")
setup(
name=NAME_DASHED,
description="Coverage-based regression test selection (RTS) plugin for pytest",
long_description=_read_long_description(),
long_description_content_type="text/markdown",
author="Eero Kauhanen, Matvey Pashkovskiy, Alexey Vyskubov",
url=f"https://github.com/F-Secure/{NAME_DASHED}",
license="Apache License 2.0",
platforms="any",
version=GIT_VERSION,
packages=find_packages(exclude=[f"{NAME}.tests", f"{NAME}.tests.*"]),
entry_points={
"pytest11": [
f"{NAME_DASHED}={NAME}.plugin",
],
},
install_requires=["coverage", "pytest", "pytest-cov", "pydriller>=2.0"],
extras_require={"dev": DEV_REQUIRE},
classifiers=[
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
],
)