forked from piccolo-orm/piccolo_theme
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
63 lines (53 loc) · 1.77 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
61
62
63
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
import typing as t
from setuptools import find_packages, setup
from piccolo_theme import __VERSION__ as VERSION
directory = os.path.abspath(os.path.dirname(__file__))
with open(os.path.join(directory, "README.md")) as f:
LONG_DESCRIPTION = f.read()
def parse_requirement(req_path: str) -> t.List[str]:
with open(os.path.join(directory, "requirements", req_path)) as f:
contents = f.read()
return [i.strip() for i in contents.strip().split("\n")]
setup(
name="piccolo_theme",
version=VERSION,
description="A modern Sphinx theme.",
long_description=LONG_DESCRIPTION,
long_description_content_type="text/markdown",
author="Daniel Townsend",
author_email="[email protected]",
python_requires=">=3.6.0",
url="https://github.com/piccolo-orm/piccolo_theme",
packages=find_packages(),
package_data={
"piccolo_theme": [
"*.html",
"**/*.html",
"theme.conf",
"static/*",
"static/**/*"
],
},
install_requires=parse_requirement("requirements.txt"),
license="MIT",
classifiers=[
"License :: OSI Approved :: MIT License",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: Implementation :: CPython",
"Framework :: Sphinx :: Theme"
],
entry_points={
"sphinx.html_themes": [
"piccolo_theme = piccolo_theme",
]
},
)