forked from gaia-dpci/GaiaXPy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
executable file
·47 lines (38 loc) · 1.43 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
"""
Setup module for GaiaXPy.
Francesca De Angeli, Paolo Montegriffo, Lovro Palaversa, Daniela Ruz-Mieres - 2022
Based on:
https://packaging.python.org/tutorials/packaging-projects
"""
import re
from os import path
from setuptools import setup, find_packages
current_path = path.abspath(path.dirname(__file__))
def get_property(prop):
result = re.search(r'{}\s*=\s*[\'"]([^\'"]*)[\'"]'.format(prop), open('gaiaxpy' + '/core/version.py').read())
return result.group(1)
with open("requirements.txt") as f:
required_packages = f.readlines()
with open("README.md", "r") as fh:
long_description = fh.read()
setup(
name='GaiaXPy',
version=get_property('__version__'),
author="Francesca De Angeli, Paolo Montegriffo, Lovro Palaversa, Daniela Ruz-Mieres",
author_email="[email protected]",
maintainer="Daniela Ruz-Mieres",
maintainer_email="[email protected]",
description="Utilities to handle BP/RP (XP) Gaia low-resolution spectra as delivered via the archive",
long_description=long_description,
long_description_content_type="text/markdown",
url="https://gaia-dpci.github.io/GaiaXPy-website/",
python_requires='>=3.6',
packages=find_packages(),
install_requires=required_packages,
include_package_data=True,
classifiers=[
'Programming Language :: Python :: 3',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
]
)