forked from Guts/mkdocs-rss-plugin
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
94 lines (82 loc) · 2.89 KB
/
setup.py
File metadata and controls
94 lines (82 loc) · 2.89 KB
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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
#! python3 # noqa: E265
# ############################################################################
# ########## Libraries #############
# ##################################
# standard library
import pathlib
# 3rd party
from setuptools import find_packages, setup
# package (to get version)
from mkdocs_rss_plugin import __about__
# ############################################################################
# ########## Globals #############
# ################################
HERE = pathlib.Path(__file__).parent
README = (HERE / "README.md").read_text()
with open(HERE / "requirements/base.txt") as f:
requirements = [
line
for line in f.read().splitlines()
if not line.startswith(("#", "-")) and len(line)
]
with open(HERE / "requirements/development.txt") as f:
requirements_dev = [
line
for line in f.read().splitlines()
if not line.startswith(("#", "-")) and len(line)
]
with open(HERE / "requirements/documentation.txt") as f:
requirements_docs = [
line
for line in f.read().splitlines()
if not line.startswith(("#", "-")) and len(line)
]
# ############################################################################
# ########## Setup #############
# ##############################
setup(
name="mkdocs-rss-plugin",
version=__about__.__version__,
author=__about__.__author__,
author_email=__about__.__email__,
description=__about__.__summary__,
license=__about__.__license__,
long_description=README,
long_description_content_type="text/markdown",
project_urls={
"Docs": "https://guts.github.io/mkdocs-rss-plugin/",
"Bug Reports": f"{__about__.__uri__}issues/",
"Source": __about__.__uri__,
},
# packaging
packages=find_packages(
exclude=["contrib", "docs", "*.tests", "*.tests.*", "tests.*", "tests"]
),
include_package_data=True,
# run
entry_points={"mkdocs.plugins": ["rss = mkdocs_rss_plugin.plugin:GitRssPlugin"]},
# dependencies
python_requires=">=3.8, <4",
extras_require={
"dev": requirements_dev,
"doc": requirements_docs,
},
install_requires=requirements,
# metadata
keywords="mkdocs rss git plugin",
classifiers=[
"Intended Audience :: Developers",
"Intended Audience :: Information Technology",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: Implementation :: CPython",
"Development Status :: 5 - Production/Stable",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Topic :: Documentation",
"Topic :: Text Processing :: Markup :: Markdown",
],
)