-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
29 lines (25 loc) · 845 Bytes
/
setup.py
File metadata and controls
29 lines (25 loc) · 845 Bytes
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
import os, sys, glob, re
from setuptools import setup, find_packages
def _get_version():
line = open('desipoint/_version.py').readline().strip()
m = re.match("__version__\s*=\s*'(.*)'", line)
if m is None:
print('ERROR: Unable to parse version from: {}'.format(line))
version = 'unknown'
else:
version = m.groups()[0]
return version
setup_keywords = dict(
name='desipoint',
version=_get_version(),
description='Package for working with DESI all-sky images',
url='https://github.com/dylanagreen/desipoint',
author='Dylan Green',
author_email='dylanag@uci.edu',
license='BSD 3-Clause',
packages=find_packages(),
install_requires=['numpy', 'astropy', 'requests', 'matplotlib', 'Pillow'],
zip_safe=False,
include_package_data=True,
)
setup(**setup_keywords)