-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
executable file
·76 lines (65 loc) · 2.09 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
76
#!/usr/bin/env python
# -*- coding: utf-8 -*-
from setuptools.command.build_ext import build_ext as _build_ext
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
# see https://stackoverflow.com/a/21621689/1862861 for why this is here
class build_ext(_build_ext):
def finalize_options(self):
_build_ext.finalize_options(self)
# Prevent numpy from thinking it is still in its setup process:
__builtins__.__NUMPY_SETUP__ = False
import numpy
self.include_dirs.append(numpy.get_include())
with open('README.rst') as readme_file:
readme = readme_file.read()
with open('HISTORY.rst') as history_file:
history = history_file.read()
with open("requirements.txt") as requires_file:
requirements = requires_file.read().split("\n")
test_requirements = [
"py",
"pytest",
"coverage"
]
setup_requirements = [
'numpy',
'setuptools_scm'
]
setup(
name='gravpy',
use_scm_version=True,
description="A sandbox for gravitational wave astronomy.",
long_description=readme + '\n\n' + history,
author="Daniel Williams",
author_email='daniel.williams@glasgow.ac.uk',
url='https://github.com/transientlunatic/grasshopper',
packages=[
'gravpy',
],
package_dir={'gravpy':
'gravpy'},
include_package_data=True,
setup_requires = setup_requirements,
install_requires=requirements,
license="ISCL",
zip_safe=False,
keywords='gravpy',
classifiers=[
'Development Status :: 2 - Pre-Alpha',
'Intended Audience :: Developers',
'License :: OSI Approved :: ISC License (ISCL)',
'Natural Language :: English',
"Programming Language :: Python :: 2",
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
],
test_suite='tests',
tests_require=test_requirements
)