-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
setup.py
92 lines (82 loc) · 2.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
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
#! /usr/bin/env python
# Copyright 2019-2023 the .NET Foundation
# Distributed under the MIT license
from setuptools import setup
def get_long_desc():
in_preamble = True
lines = []
with open("README.md", "rt", encoding="utf8") as f:
for line in f:
if in_preamble:
if line.startswith("<!--pypi-begin-->"):
in_preamble = False
else:
if line.startswith("<!--pypi-end-->"):
break
else:
lines.append(line)
lines.append(
"""
For more information, including installation instructions, please visit [the
project homepage].
[the project homepage]: https://wwt-api-client.readthedocs.io/
"""
)
return "".join(lines)
setup_args = dict(
name="wwt_api_client", # cranko project-name
version="0.dev0", # cranko project-version
description="An API client for WorldWide Telescope web services",
long_description=get_long_desc(),
long_description_content_type="text/markdown",
author="WorldWide Telescope Team",
author_email="[email protected]",
url="https://github.com/WorldWideTelescope/wwt_api_client",
packages=[
"wwt_api_client",
"wwt_api_client.constellations",
"wwt_api_client.tests",
],
license="MIT",
platforms="Linux, Mac OS X, Windows",
keywords=["Science"],
classifiers=[
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: MIT License",
"Topic :: Multimedia :: Graphics",
"Programming Language :: Python",
"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",
],
include_package_data=True,
install_requires=[
"dataclasses-json >=0.5",
"html-sanitizer >=2.4",
"license-expression >=21.6",
"openidc_client >=0.6",
"requests >=2.10",
"wwt_data_formats >=0.16",
],
extras_require={
"test": [
"httpretty",
"mock",
"pytest",
"pytest-cov",
"pytest-mock",
],
"docs": [
"astropy-sphinx-theme",
"numpydoc",
"sphinx",
"sphinx-automodapi",
],
},
entry_points={},
)
if __name__ == "__main__":
setup(**setup_args)