This repository has been archived by the owner on Mar 29, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
75 lines (66 loc) · 2.2 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
import os
import sys
from setuptools import find_packages, setup
# Always reference code-origin
# https://github.com/django/django/blob/master/setup.py#L7
CURRENT_PYTHON = sys.version_info[:2]
REQUIRED_PYTHON = (3, 6)
if CURRENT_PYTHON < REQUIRED_PYTHON:
sys.stderr.write("""
==========================
Unsupported Python version
==========================
This version of cloud-fits requires Python {}.{}, but you're trying to
install it on Python {}.{}.
This may be because you are using a version of pip that doesn't
understand the python_requires classifier. Make sure you
have pip >= 9.0 and setuptools >= 24.2, then try again:
$ python -m pip install --upgrade pip setuptools
$ python -m pip install cloud-fits
This will install the latest version of cloud-fits which works on your
version of Python
""".format(*(REQUIRED_PYTHON + CURRENT_PYTHON)))
sys.exit(1)
EXCLUDE_FROM_PACKAGES = ['docs']
with open('VERSION', 'r') as stream:
version = stream.read()
description = 'Cloud Optimized Fits'
def read(fname):
with open(os.path.join(os.path.dirname(__file__), fname)) as f:
return f.read()
setup(
name='cloud-fits',
version=version,
python_requires='>={}.{}'.format(*REQUIRED_PYTHON),
url='https://github.com/jbcurtin/cloud-fits',
author="Joe Curtin <[email protected]",
author_email='[email protected]',
description=description,
long_description=read('README.md'),
long_description_content_type='text/markdown',
license='MIT',
packages=find_packages(exclude=EXCLUDE_FROM_PACKAGES),
include_package_data=True,
install_requires=[
'requests==2.23.0',
'PyYAML==5.1.2',
'numpy==1.18.2',
'astropy==4.0.1.post1',
],
entry_points={
'console_scripts': [
'cloud-fits-index = cloud_fits.fits_index.factory:run_from_cli',
]
},
zip_safe=False,
classifiers=[
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3 :: Only',
],
project_urls={}
)