-
Notifications
You must be signed in to change notification settings - Fork 9
/
setup.py
executable file
·42 lines (34 loc) · 1.47 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
"""
Setup module for GaiaXPy.
Francesca De Angeli, Zuzanna Kostrzewa-Rutkowska, Paolo Montegriffo, Lovro Palaversa, Daniela Ruz-Mieres - 2024
Based on:
https://packaging.python.org/tutorials/packaging-projects
"""
import re
from os.path import abspath, dirname, join
from setuptools import setup, find_packages
AUTHORS = 'Francesca De Angeli, Zuzanna Kostrzewa-Rutkowska, Paolo Montegriffo, Lovro Palaversa, Daniela Ruz-Mieres'
CLASSIFIERS = ['Programming Language :: Python :: 3',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent']
def get_property(prop):
version_file_path = join(dirname(abspath(__file__)), 'src/gaiaxpy/core/version.py')
result = re.search(r'{}\s*=\s*[\'"]([^\'"]*)[\'"]'.format(prop), open(version_file_path).read())
return result.group(1)
setup(
name='GaiaXPy',
version=get_property('__version__'),
author=AUTHORS,
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=open('README.md', 'r').read(),
long_description_content_type='text/markdown',
url='https://gaia-dpci.github.io/GaiaXPy-website/',
python_requires='>=3.8',
packages=find_packages('src'),
extras_require={'tests': ['pytest', 'pytest-mock']},
include_package_data=True,
classifiers=CLASSIFIERS
)