-
Notifications
You must be signed in to change notification settings - Fork 3
/
setup.py
60 lines (56 loc) · 1.84 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
import re
from setuptools import setup, find_packages
with open("README.md", mode="r", encoding="utf-8") as f:
readme = f.read()
# parse the version instead of importing it to avoid dependency-related crashes
with open("repobee_junit4/__version.py", mode="r", encoding="utf-8") as f:
line = f.readline()
__version__ = line.split("=")[1].strip(" '\"\n")
assert re.match(r"^\d+(\.\d+){2}(-(alpha|beta|rc)(\.\d+)?)?$", __version__)
test_requirements = [
"appdirs",
"bandit",
"black",
"codecov",
"daiquiri",
"flake8",
"pylint",
"pytest-cov>=2.5.1",
"pytest-mock",
"pytest>=4.0.0",
]
required = ["repobee>=3.4.1", "daiquiri", "colored>=2.0.0"]
setup(
name="repobee-junit4",
version=__version__,
description="JUnit4 runner plugin for RepoBee",
long_description=readme,
long_description_content_type="text/markdown",
author="Simon Larsén",
author_email="[email protected]",
url="https://github.com/repobee/repobee-junit4",
download_url=(
"https://github.com/repobee/repobee-junit4/archive/v{}.tar.gz".format(
__version__
)
),
license="MIT",
packages=find_packages(exclude=("tests", "docs")),
tests_require=test_requirements,
install_requires=required,
extras_require=dict(TEST=test_requirements),
include_package_data=True,
zip_safe=False,
python_requires=">=3.9",
classifiers=[
"Development Status :: 3 - Alpha",
"Intended Audience :: Education",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: Implementation :: CPython",
"License :: OSI Approved :: MIT License",
"Operating System :: POSIX",
],
)