forked from PyFstat/PyFstat
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
70 lines (65 loc) · 2.13 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
from setuptools import setup, find_packages
from os import path
import sys
import versioneer
# check python version
min_python_version = (3, 6, 0) # (major,minor,micro)
python_version = sys.version_info
print("Running Python version %s.%s.%s" % python_version[:3])
if python_version < min_python_version:
sys.exit(
"Python < %s.%s.%s is not supported, aborting setup" % min_python_version[:3]
)
else:
print("Confirmed Python version %s.%s.%s or above" % min_python_version[:3])
here = path.abspath(path.dirname(__file__))
# Get the long description from the README file
with open(path.join(here, "README.md"), encoding="utf-8") as f:
long_description = f.read()
setup(
name="PyFstat",
version=versioneer.get_version(),
cmdclass=versioneer.get_cmdclass(),
author="Gregory Ashton, David Keitel, Reinhard Prix, Rodrigo Tenorio",
author_email="[email protected]",
maintainer="David Keitel",
maintainer_email="[email protected]",
license="MIT",
description="a python package for gravitational wave analysis with the F-statistic",
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/PyFstat/PyFstat",
packages=find_packages(),
package_data={
"pyfstat": [
"pyCUDAkernels/cudaTransientFstatExpWindow.cu",
"pyCUDAkernels/cudaTransientFstatRectWindow.cu",
]
},
platforms="POSIX",
classifiers=[
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
"Operating System :: POSIX",
"Natural Language :: English",
"Intended Audience :: Science/Research",
"Topic :: Scientific/Engineering :: Astronomy",
"Topic :: Scientific/Engineering :: Physics",
],
python_requires=">=%s.%s.%s" % min_python_version[:3],
install_requires=[
"numpy<1.20",
"matplotlib>=2.1",
"scipy",
"ptemcee",
"corner",
"dill",
"tqdm",
"bashplotlib",
"peakutils",
"pathos",
"lalsuite>=6.80",
"versioneer",
],
)