-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
36 lines (27 loc) · 1.07 KB
/
setup.py
File metadata and controls
36 lines (27 loc) · 1.07 KB
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
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()
version = importlib.util.spec_from_file_location("version", str(root.joinpath("curricula_format", "version.py")))
module = importlib.util.module_from_spec(version)
version.loader.exec_module(module)
setup(
name="curricula-format",
version=module.version,
description="A markdown formatter for reports generated by curricula_grade",
url="https://github.com/curriculagg/curricula-format",
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(),
package_data={"curricula_format": ["template/**/*.md"]},
include_package_data=True,
zip_safe=False,
install_requires=[f"curricula~={module.version_minor}", f"curricula-grade~={module.version_minor}"])