-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
executable file
·59 lines (50 loc) · 1.95 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
from setuptools import setup, find_packages
__version__ = "1.0.2"
def readme():
with open("README.md") as f:
return f.read()
def import_requirements():
"""Imports requirements from requirements.txt file."""
with open("requirements.txt") as f:
return f.read().splitlines()
def import_dev_requirements():
"""Imports requirements from devdeps.txt file."""
with open("devdeps.txt") as f:
return f.read().splitlines()
# https://pypi.org/project/mkdocs-auto-refresh-build-pages
setup(
name="mkdocs-auto-refresh-build-pages",
version=__version__,
description="MkDocs plugin that automatically refreshes the build pages when the page has been rebuilt.",
long_description=readme(),
long_description_content_type="text/markdown",
keywords="mkdocs plugin, mkdocs, auto refresh, auto refresh build pages",
url="https://github.com/JakubAndrysek/mkdocs-auto-refresh-build-pages",
author="Jakub Andrýsek",
author_email="[email protected]",
license="MIT",
python_requires=">=3.7",
install_requires=import_requirements(),
extras_require={
"dev": import_dev_requirements(),
},
classifiers=[
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Operating System :: OS Independent",
],
packages=find_packages(),
# include file: auto_refresh_build_pages/js/auto_refresh_build_pages.js.jinja
package_data={"auto_refresh_build_pages": ["js/auto_refresh_build_pages.js.jinja"]},
include_package_data=True,
entry_points={
"mkdocs.plugins": [
"auto-refresh-build-pages = auto_refresh_build_pages.plugin:AutoRefreshBuildPages",
]
},
)