-
Notifications
You must be signed in to change notification settings - Fork 2
/
setup.py
executable file
·70 lines (60 loc) · 1.87 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
#!/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
with open('README.rst') as readme_file:
readme = readme_file.read()
with open('HISTORY.rst') as history_file:
history = history_file.read()
# 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())
setup_requirements = [
'numpy',
'setuptools_scm'
]
with open("requirements.txt") as requires_file:
requirements = requires_file.read().split("\n")
test_requirements = [
"py",
"pytest",
"coverage"
]
setup(
name='minke',
#version='1.0.1',
use_scm_version=True,
description="Minke is a Python package to produce Mock Data Challenge data sets for LIGO interferometers.",
long_description=readme + '\n\n' + history,
author="Daniel Williams",
author_email='[email protected]',
url='https://github.com/transientlunatic/minke',
packages=[
'minke',
],
package_dir={'minke':
'minke'},
include_package_data=True,
setup_requires = setup_requirements,
install_requires=requirements,
license="ISCL",
zip_safe=False,
keywords='minke',
classifiers=[
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Science/Research',
'License :: OSI Approved :: ISC License (ISCL)',
'Natural Language :: English',
'Programming Language :: Python :: 2.7',
],
test_suite='tests',
tests_require=test_requirements
)