-
Notifications
You must be signed in to change notification settings - Fork 4
/
setup.py
68 lines (56 loc) · 1.69 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
#!/usr/bin/env python
"""Package build and install script."""
import os
import sys
import Cython.Build
import numpy as np
from setuptools import Extension, find_packages, setup
import versioneer
# Publish the library to PyPI.
if "publish" in sys.argv[-1]:
os.system("python setup.py sdist upload")
sys.exit()
def get_readme():
"""Load README for display on PyPI."""
with open("README.md") as f:
return f.read()
CMDCLASS = versioneer.get_cmdclass()
CMDCLASS.update({"build_ext": Cython.Build.build_ext})
setup(
name="octant",
version=versioneer.get_version(),
cmdclass=CMDCLASS,
description="Objective Cyclone Tracking ANalysis Tools",
long_description=get_readme(),
author="Denis Sergeev",
author_email="dennis.sergeev@gmail.com",
url="https://github.com/dennissergeev/octant",
package_dir={"octant": "octant"},
packages=find_packages(),
ext_modules=[
Extension(
"octant.utils",
sources=["octant/utils.pyx"],
include_dirs=[np.get_include()],
)
],
zip_safe=False,
setup_requires=["numpy>=1.7", "cython>=0.24.1"],
install_requires=[
"numpy>=1.7",
"pytest>=3.3",
"cython>=0.24.1",
"pandas>=0.20",
"xarray>=0.10.0",
],
classifiers=[
"Intended Audience :: Science/Research",
"Natural Language :: English",
"License :: OSI Approved :: MIT License",
"Operating System :: POSIX :: Linux",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Topic :: Scientific/Engineering :: Atmospheric Science",
],
)