Repository navigation
Expand file tree
/
Copy pathsetup.py
More file actions
89 lines (68 loc) · 2.47 KB
/
Copy pathsetup.py
File metadata and controls
89 lines (68 loc) · 2.47 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
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# This file is part of the
# NIRDust Project (https://github.com/Gaiana/nirdust)
# Copyright (c) 2020, Gaia Gaspar, Jose Alacoria
# License: MIT
# Full Text: https://github.com/Gaiana/nirdust/LICENSE
# =============================================================================
# DOCS
# =============================================================================
"""This file distributes and installs NIRDust."""
# =============================================================================
# IMPORTS
# =============================================================================
import os
import pathlib
from setuptools import setup
# =============================================================================
# CONSTANTS
# =============================================================================
REQUIREMENTS = [
"numpy",
"scipy",
"astropy",
"specutils",
"matplotlib",
"attrs",
]
PATH = pathlib.Path(os.path.abspath(os.path.dirname(__file__)))
with open(PATH / "README.md") as fp:
LONG_DESCRIPTION = fp.read()
with open(PATH / "nirdust" / "__init__.py") as fp:
for line in fp.readlines():
if line.startswith("__version__ = "):
VERSION = line.split("=", 1)[-1].replace('"', "").strip()
break
DESCRIPTION = "Measure temperature of hot dust in type 2 AGN"
# =============================================================================
# FUNCTIONS
# =============================================================================
def do_setup():
setup(
name="nirdust",
version=VERSION,
description=DESCRIPTION,
long_description=open("README.md").read(),
long_description_content_type="text/markdown",
author=["Gaia Gaspar", "Jose Alacoria"],
author_email="gaiagaspar@gmail.com",
url="https://github.com/Gaiana/nirdust",
py_modules=["ez_setup"],
packages=[
"nirdust",
],
license="MIT",
keywords=["nirdust", "dust", "AGN", "NIR", "temperatures"],
classifiers=[
"Intended Audience :: Education",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3.8",
],
install_requires=REQUIREMENTS,
)
if __name__ == "__main__":
do_setup()