-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
33 lines (29 loc) · 1.02 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
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_reviewothers/__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 = ["pytest", "coverage"]
required = ["repobee>=3.0.0"]
setup(
name="repobee-reviewothers",
version=__version__,
description="A plugin to allow some students to review others, such as for peer grading",
long_description=readme,
long_description_content_type="text/markdown",
author="Dave Musicant",
author_email="[email protected]",
license="MIT",
packages=find_packages(exclude=("tests", "docs")),
tests_require=test_requirements,
install_requires=required,
extras_require=dict(TEST=test_requirements),
)