-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathsetup.py
executable file
·65 lines (57 loc) · 2 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
64
65
from pathlib import Path
from setuptools import setup, find_packages
from typing import List
from mkdocs_markmap.__meta__ import OWNER, PROJECT_NAME, PROJECT_VERSION, REPOSITORY_URL
def readme() -> str:
"""print long description"""
with open('README.md') as f:
return f.read()
def get_requirements(filename: str, base_dir: str = 'requirements') -> List[str]:
"""Load list of dependencies."""
install_requires = []
with open(Path(base_dir) / filename) as fp:
for line in fp:
stripped_line = line.partition('#')[0].strip()
if stripped_line:
install_requires.append(stripped_line)
return install_requires
setup(
name=PROJECT_NAME,
version=PROJECT_VERSION,
description='MkDocs plugin and extension to creates mindmaps from markdown using markmap',
long_description=readme(),
long_description_content_type='text/markdown',
keywords='mkdocs python markdown markmap mindmap include',
url=REPOSITORY_URL,
author=OWNER,
author_email='',
license='MIT',
python_requires='>=3.7',
install_requires=get_requirements('prod.txt'),
classifiers=[
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
'Intended Audience :: Information Technology',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
],
packages=find_packages(exclude=['*.tests']),
package_dir={
'mkdocs_markmap': 'mkdocs_markmap',
},
package_data={
'mkdocs_markmap': ['static_files/*'],
},
entry_points={
'mkdocs.plugins': [
'markmap = mkdocs_markmap.plugin:MarkmapPlugin',
],
'markdown.extensions': [
'markmap = mkdocs_markmap.extension:MarkmapExtension',
]
},
)