-
Notifications
You must be signed in to change notification settings - Fork 3
/
setup.py
46 lines (42 loc) · 1.54 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
#! /usr/bin/env python
# -*- coding: utf-8 -*-
import os
import sys
import re
from setuptools import setup, find_packages
def _read(path_components, **kwargs):
path = os.path.join(os.path.dirname(__file__), *path_components)
if sys.version_info.major < 3:
return open(path, "rU").read()
else:
with open(path, encoding=kwargs.get("encoding", "utf8")) as src:
s = src.read()
return s
project_init = _read(["src", "delineate", "__init__.py"])
__version__ = re.match(r".*^__version__\s*=\s*['\"](.*?)['\"]\s*$.*", project_init, re.S | re.M).group(1)
__project__ = re.match(r".*^__project__\s*=\s*['\"](.*?)['\"]\s*$.*", project_init, re.S | re.M).group(1)
setup(
name=__project__,
version=__version__,
author="Jeet Sukumaran and Mark T. Holder",
author_email="[email protected] and [email protected]",
packages=find_packages("src"),
package_dir={"": "src"},
scripts=[
"bin/delineate-bppsum",
"bin/delineate-check",
"bin/delineate-estimate",
"bin/delineate-summarize",
],
test_suite = "tests",
url="https://github.com/jeetsukumaran/delineate/",
license="LICENSE.txt",
description="Model-based species delimitation.",
long_description=_read(["README.txt"]),
install_requires=[
"numpy>=1.18.1",
"scipy>=1.4.1",
# "DendroPy @ git+https://[email protected]/jeetsukumaran/DendroPy.git#egg=DendroPy",
"DendroPy @ git+https://[email protected]/jeetsukumaran/DendroPy.git@development-main#egg=DendroPy",
],
)