forked from fralau/mkdocs-macros-plugin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
71 lines (61 loc) · 1.9 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
66
67
68
69
70
71
# --------------------------------------------
# Setup file for the package
#
# Laurent Franceschetti (c) 2018-2020
# --------------------------------------------
import os
from setuptools import setup, find_packages
# --------------------
# Initialization
# --------------------
VERSION_NUMBER = '1.1.1'
# required if you want to run document/test
# pip install 'mkdocs-macros-plugin[test]'
TEST_REQUIRE = ['mkdocs-macros-test', 'mkdocs-material>=6.2',
'mkdocs-include-markdown-plugin']
# --------------------
# Setup
# --------------------
def read_file(fname):
"Read a local file"
return open(os.path.join(os.path.dirname(__file__), fname)).read()
setup(
name='mkdocs-macros-plugin',
version=VERSION_NUMBER,
description="Unleash the power of MkDocs with macros and variables",
long_description=read_file('README.md'),
long_description_content_type='text/markdown',
keywords='mkdocs python markdown macros',
url='https://github.com/fralau/mkdocs_macros_plugin',
author='Laurent Franceschbetti',
author_email='[email protected]',
license='MIT',
python_requires='>=3.8',
install_requires=[
'mkdocs>=0.17',
'jinja2',
'termcolor',
'pyyaml',
'python-dateutil',
'packaging'
],
extras_require={
'test': TEST_REQUIRE,
},
classifiers=[
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
'Intended Audience :: Information Technology',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python',
'Programming Language :: Python :: 3 :: Only',
'Programming Language :: Python :: 3.5',
],
include_package_data=True,
packages=find_packages(exclude=['*.tests']),
entry_points={
'mkdocs.plugins': [
'macros = mkdocs_macros.plugin:MacrosPlugin'
]
}
)