-
Notifications
You must be signed in to change notification settings - Fork 2
/
setup.py
103 lines (85 loc) · 2.72 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
93
94
95
96
97
98
99
100
101
102
103
# This file is part of the
# Solarwindpy Project(https://github.com/adelarja/space_weather).
# Copyright (c) 2021, Adriana Gulisano, Adel Arja, Ricardo Pafundigit,
# Violeta Bazzano.
# All rights reserved.
# License: BSD 3-Clause License
# Full Text: https://github.com/adelarja/space_weather/blob/main/LICENSE
# =====================================================================
# DOCS
# =====================================================================
"""This file is for distribute and install swindpy."""
# ======================================================================
# IMPORTS
# ======================================================================
import os
import pathlib
from setuptools import setup # noqa
# =============================================================================
# CONSTANTS
# =============================================================================
PATH = pathlib.Path(os.path.abspath(os.path.dirname(__file__)))
REQUIREMENTS = [
"numpy",
"pandas",
"scipy",
"attrs",
"matplotlib",
"heliopy==0.15.4",
"requests",
"sunpy",
"h5netcdf",
"cdflib",
"typer",
"xarray",
]
with open(PATH / "swindpy" / "__init__.py") as fp:
for line in fp.readlines():
if line.startswith("__version__ = "):
VERSION = line.split("=", 1)[-1].replace('"', "").strip()
break
with open("README.md") as fp:
LONG_DESCRIPTION = fp.read()
# =============================================================================
# FUNCTIONS
# =============================================================================
setup(
name="swindpy",
version=VERSION,
description="Package to analyze magnetic storm phenomena.",
long_description=LONG_DESCRIPTION,
long_description_content_type="text/markdown",
author="",
author_email="",
url="https://github.com/adelarja/space_weather",
py_modules=[],
packages=[
"swindpy",
],
license="BSD 3-Clause License",
install_requires=REQUIREMENTS,
keywords=[
"solar",
"wind",
"space weather",
"swindpy",
"magnetic cloud",
],
classifiers=[
"Development Status :: 1 - Planning",
"Intended Audience :: Education",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: BSD License",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: Implementation :: CPython",
"Topic :: Scientific/Engineering",
],
include_package_data=True,
entry_points={
"console_scripts": [
"swindpy=swindpy.cli:main",
],
},
)