-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathsetup.py
36 lines (30 loc) · 976 Bytes
/
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
import os
import sys
import site
from setuptools import setup
from pathlib import Path
FULL_PACKAGE_DIR = site.getsitepackages()[0]
RELATIVE_PACKAGE_DIR = str(Path(FULL_PACKAGE_DIR).relative_to(Path(sys.prefix)))
def get_templates():
return [str(path) for path in Path().rglob("*.html")]
setup(
name="dart_data",
version="0.0.1",
author="Ryan C. Schwiebert",
description="Data files for the Database of Ring Theory",
url="https://github.com/rschwiebert/RingApp",
packages=["dart_data",
"dart_data.templates.dart_data",
"dart_data.static.img",
"dart_data.static.img.ring_maps",
],
data_files=[
(
os.path.join(RELATIVE_PACKAGE_DIR, "dart_data/templates/dart_data"),
get_templates(),
)
],
include_package_data=True,
# package_data={"dart_data": ["templates"]},
keywords=['mathematics', 'ring theory', 'education', 'research'],
)