-
Notifications
You must be signed in to change notification settings - Fork 2
/
setup.py
79 lines (65 loc) · 2.73 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
72
73
74
75
76
77
78
79
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# How to build source distribution
# python setup.py sdist --format bztar
# python setup.py sdist --format gztar
# python setup.py sdist --format zip
import os
from setuptools import setup, find_packages
MAJOR = 0
MINOR = 9
MICRO = 2
VERSION = "{}.{}.{}".format(MAJOR, MINOR, MICRO)
def write_version_file(fn=None):
if fn is None:
fn = os.path.join(
os.path.dirname(os.path.abspath(__file__)),
os.path.join("gepyto", "version.py")
)
content = ("# THIS FILE WAS GENERATED FROM GEPYTO SETUP.PY\n"
"gepyto_version = \"{version}\"\n")
a = open(fn, "w")
try:
a.write(content.format(version=VERSION))
finally:
a.close()
def setup_package():
# Saving the version into a file
write_version_file()
setup(
name="gepyto",
version=VERSION,
description=("Utilities and tools to interface with genomic databases "
"and to facilitate common bioinformatics tasks."),
long_description=("This package provides abstractions and utilities "
"for common genomics tasks. It includes objects to "
"easily fetch and organize genetic variants, query "
"important public databases and do some basic "
"consistency and quality checks. It is a package "
"aimed at developers specialized in bioinformatics. "
""),
author=u"Marc-André Legault",
author_email="legaultmarc@gmail.com",
url="https://github.com/legaultmarc/gepyto",
license="CC BY-NC 4.0",
packages=find_packages(exclude=["docs", "demos", "tests"]),
package_data={"gepyto.db": ["data/*", ], },
classifiers=["Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"Operating System :: Unix",
"Operating System :: MacOS :: MacOS X",
"Operating System :: POSIX :: Linux",
"Programming Language :: Python",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3.4",
"Topic :: Scientific/Engineering :: Bio-Informatics"],
test_suite="gepyto.tests.test_suite",
keywords="bioinformatics genomics impute2 genetics variant",
install_requires=["numpy >= 1.8.1", "requests >= 2.4.3",
"pandas >= 0.15", "pyfaidx >= 0.3.4",
"PyMySQL >= 0.6.6"],
)
return
if __name__ == "__main__":
setup_package()