forked from richteague/bettermoments
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
46 lines (40 loc) · 1.34 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
#! /usr/bin/env python
# -*- coding: utf-8 -*-
import os
import sys
from distutils.core import setup
if sys.version < '3.3':
raise RuntimeError("bettermoments needs Python 3.3 or newer.")
if sys.argv[-1] == "publish":
os.system("python setup.py sdist upload")
sys.exit()
this_directory = os.path.abspath(os.path.dirname(__file__))
with open(os.path.join(this_directory, "README.md")) as f:
long_description = f.read()
setup(
name="bettermoments",
version="1.1.0",
author="Richard Teague & Daniel Foreman-Mackey",
author_email='rteague@umich.edu',
packages=['bettermoments', 'bettermoments.tests'],
url="https://github.com/richteague/bettermoments",
license="LICENSE.md",
description=("Robust moment map making."),
long_description=long_description,
long_description_content_type="text/markdown",
install_requires=["numpy", "astropy", "argparse"],
classifiers=[
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python",
],
zip_safe=True,
entry_points={
'console_scripts': [
'bettermoments = bettermoments.collapse_cube:main',
],
}
)