-
-
Notifications
You must be signed in to change notification settings - Fork 4
/
setup.py
executable file
·58 lines (50 loc) · 1.76 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
from setuptools import setup, find_packages
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-open-in-new-tab/
setup(
name="mkdocs-open-in-new-tab",
version="1.0.8",
description="MkDocs plugin to open outgoing links and PDFs in new tab.",
long_description=readme(),
long_description_content_type="text/markdown",
keywords="mkdocs plugin, open in new tab, mkdocs, plugin, relative links, links",
url="https://github.com/JakubAndrysek/mkdocs-open-in-new-tab",
author="Jakub Andrýsek",
author_email="email@kubaandrysek.cz",
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_package_data=True,
package_data={
'open_in_new_tab': ['css/*.css', 'js/*.js'],
},
entry_points={
"mkdocs.plugins": [
"open-in-new-tab = open_in_new_tab.plugin:OpenInNewTabPlugin",
]
},
)