This repository has been archived by the owner on May 3, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
53 lines (43 loc) · 1.52 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
#!/usr/bin/env python
import os
import os.path
from setuptools import setup, find_namespace_packages
from src.cirrus.plugins.docs.constants import DESC
NAME = "cirrus-docs"
HERE = os.path.abspath(os.path.dirname(__file__))
VERSION = os.environ.get("PLUGIN_VERSION", "0.0.0")
with open(os.path.join(HERE, "README.md"), encoding="utf-8") as f:
readme = f.read()
with open(os.path.join(HERE, "requirements.txt"), encoding="utf-8") as f:
reqs = f.read().split("\n")
install_requires = [x.strip() for x in reqs if "git+" not in x]
dependency_links = [x.strip().replace("git+", "") for x in reqs if "git+" not in x]
setup(
name=NAME,
python_requires=">=3.9",
packages=find_namespace_packages("src"),
package_dir={"": "src"},
version=VERSION,
description=DESC,
long_description=readme,
long_description_content_type="text/markdown",
author="Jarrett Keifer (jkeifer), Element 84",
url="https://github.com/cirrus-geo/cirrus-docs",
install_requires=install_requires,
dependency_links=dependency_links,
classifiers=[
"Intended Audience :: Developers",
"License :: OSI Approved :: Apache Software License",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
],
license="Apache-2.0",
include_package_data=True,
entry_points=f"""
[cirrus.plugins]
{NAME}=cirrus.plugins.docs
[cirrus.commands]
docs=cirrus.plugins.docs.commands:docs
""",
)