-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathsetup.py
69 lines (57 loc) · 2.08 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
#! /usr/bin/env python
"""
Setup for AegeanTools
"""
import os
from setuptools import setup, find_packages
# Utility function to read the README file.
# Used for the long_description. It's nice, because now 1) we have a top level
# README file and 2) it's easier to type in the README file than to put a raw
# string in below ...
def read(fname):
"""Read a file"""
return open(os.path.join(os.path.dirname(__file__), fname)).read()
def get_version():
"""Get the version number of AegeanTools"""
import AegeanTools
return AegeanTools.__version__
reqs = ['scipy>=0.16',
'tqdm>=4',
'numpy>=1.16',
'astropy>=2.0',
'healpy >=1.10',
'lmfit>=0.9.2',
'scikit-learn>=0.24.2']
data_dir = 'AegeanTools/data'
setup(
name="AegeanTools",
packages=find_packages(exclude='test'),
version=get_version(),
licence='afl-3.0',
description="The Aegean source finding program, and associated tools.",
long_description=read('README.md'),
long_description_content_type='text/markdown',
author="Paul Hancock",
author_email="[email protected]",
url="https://github.com/PaulHancock/Aegean",
install_requires=reqs,
scripts=['scripts/aegean', 'scripts/BANE',
'scripts/SR6', 'scripts/AeRes', 'scripts/MIMAS',
'scripts/AeReg', 'scripts/fix_beam.py'],
data_files=[('AegeanTools', [os.path.join(data_dir, 'MOC.fits')])],
python_requires='>=3.8',
setup_requires=['pytest-runner'],
tests_require=['pytest', 'nose'],
keywords=['image processing', 'radioastronomy'],
classifiers=[
# Chose either "3 - Alpha", "4 - Beta" or "5 - Production/Stable"
# as the current state of your package
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Science/Research',
'Topic :: Scientific/Engineering :: Astronomy',
'License :: OSI Approved :: Academic Free License (AFL)',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
],
)