-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
34 lines (26 loc) · 954 Bytes
/
setup.py
File metadata and controls
34 lines (26 loc) · 954 Bytes
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
import importlib.util
from setuptools import setup, find_packages
from pathlib import Path
root = Path(__file__).absolute().parent
with root.joinpath("README.md").open() as fh:
long_description = fh.read()
spec = importlib.util.spec_from_file_location("curricula_grade", str(root.joinpath("curricula_grade", "version.py")))
module = importlib.util.module_from_spec(spec)
spec.loader.exec_module(module)
setup(
name="curricula-grade",
version=module.version,
description="A grading toolkit for evaluating student code.",
url="https://github.com/curriculagg/curricula",
author="Noah Kim",
author_email="noahbkim@gmail.com",
# Extra
long_description=long_description,
long_description_content_type="text/markdown",
# Python
python_requires=">=3.9",
# Packaging
packages=find_packages(),
include_package_data=True,
install_requires=[f"curricula~={module.version}"],
zip_safe=False)