-
Notifications
You must be signed in to change notification settings - Fork 10
/
setup.py
49 lines (42 loc) · 1.47 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
from setuptools import setup, find_packages
from pathlib import Path
import re
def get_version():
"""Get version number from __init__.py"""
version_file = Path(__file__).resolve().parent / "yleaf" / "__init__.py"
version_match = re.search(
r"^__version__ = ['\"]([^'\"]*)['\"]", version_file.read_text(), re.M
)
if version_match:
return version_match.group(1)
raise RuntimeError("Failed to find version string")
with open('requirements.txt') as f:
required = f.read().splitlines()
setup(
name='Yleaf',
version=get_version(),
packages=find_packages(),
url='https://github.com/genid/Yleaf.git',
license='MIT',
author='Bram van Wersch and Diego Montiel Gonzalez',
author_email='[email protected]',
description='Tool for human Y-chromosomal phylogenetic analysis and haplogroup inference.',
classifiers=[
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.6",
"License :: OSI Approved :: GNU License",
"Operating System :: Linux",
"Intended Audience :: Science/Research",
"Topic :: Scientific/Engineering :: Bio-Informatics",
],
install_requires=required,
python_requires=">=3.6",
entry_points={
'console_scripts': [
'Yleaf=yleaf.Yleaf:main',
'predict_haplogroup=yleaf.predict_haplogroup:main',
],
},
include_package_data=True,
package_data={"yleaf": ["data/*", "config.txt"]}
)