-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathsetup.py
71 lines (61 loc) · 2.59 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
#!/usr/bin/env python3
############################################################################
# Copyright (c) 2018 Noskova Ekaterina
# All Rights Reserved
# See the LICENSE file for details
############################################################################
try:
from setuptools import setup, find_packages
except ImportError:
from ez_setup import use_setuptools
use_setuptools()
from setuptools import setup, find_packages
import os, sys
NAME = 'gadma'
SUPPORTED_PYTHON_VERSIONS = ['3.6', '3.7', '3.8']
# Check python version
if sys.version[0:3] not in SUPPORTED_PYTHON_VERSIONS:
sys.stderr.write("Python version " + sys.version[0:3] + " is not supported!\n" +
"Supported versions are " + ", ".join(SUPPORTED_PYTHON_VERSIONS) + "\n")
sys.stderr.flush()
sys.exit(1)
# Load up the description from README.rst
with open('README.md') as f:
DESCRIPTION = f.read()
requirements = ['numpy', 'scipy', 'matplotlib',
'Pillow', 'Cython', 'mpmath', 'nlopt', 'ruamel.yaml',
'dadi', 'pandas']
setup(
name=NAME,
author='Ekaterina Noskova',
author_email='[email protected]',
url='https://github.com/ctlab/GADMA',
description='Genetic Algorithm for Demographic Inference',
long_description=DESCRIPTION,
long_description_content_type='text/markdown',
classifiers=[
'Intended Audience :: Developers',
'License :: OSI Approved :: GNU General Public License (GPL)',
'Natural Language :: English',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 3',
'Topic :: Software Development',
],
packages=find_packages(exclude=['examples', 'tests']),
include_package_data=True,
package_data={
'gadma.cli': ['*.py', 'params_template', 'extra_params_template', 'test_settings']
},
data_files=[["gadma", ["gadma/test.fs"]], ("", ["LICENSE"])],
install_requires=requirements,
entry_points={
'console_scripts': ['gadma = gadma.core:main',
'gadma-run_ls_on_boot_data = gadma.run_ls_on_boot_data:main',
'gadma-get_confidence_intervals = gadma.get_confidence_intervals:main',
'gadma-get_confidence_intervals_for_ld = gadma.get_confidence_intervals_for_ld:main',
'gadma-precompute_ld_data = gadma.precompute_ld_data:main']
},
setup_requires=["setuptools_scm"],
use_scm_version={"write_to": "gadma/version.py", "local_scheme": "no-local-version"},
)