-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
53 lines (44 loc) · 1.54 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
import os
import re
from collections import defaultdict
from setuptools import find_packages, setup
def resolve(filename):
return os.path.join(os.path.dirname(__file__), filename)
with open(resolve("README.md"), encoding="utf-8") as f:
long_description = f.read()
with open(resolve("requirements/base.txt")) as f:
install_requires = list(map(str.strip, f.readlines()))
with open(resolve("requirements/extra.txt")) as f:
extra_pattern = re.compile(r"^(.+?)\s*#\s*extra\s*=\s*(.+?)$")
extra_requires = defaultdict(list)
for line in f:
match = re.match(extra_pattern, line)
if match is not None:
for extra in match.group(2).split(","):
extra_requires[extra].append(match.group(1))
setup(
name="mkdocs-yaarg-plugin",
version="0.0.1a5",
url="https://github.com/g6123/mkdocs-yaarg-plugin",
license="MIT",
description="Yet Another API Reference Generator plugin for MKDocs.",
long_description=long_description,
long_description_content_type="text/markdown",
author="g6123",
author_email="[email protected]",
packages=find_packages(exclude=("tests",)),
install_requires=install_requires,
extras_require=extra_requires,
python_requires=">=3.6",
classifiers=[
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
],
entry_points={
"mkdocs.plugins": [
"yaarg = yaarg:YaargPlugin",
]
},
)