-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathsetup.py
71 lines (59 loc) · 1.9 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 python
"""
Cosmid - A genomics resource manager
=====================================
There's a wealth of publicly available genomics resources; assemblies, database dumps, sample data etc. Problem is, they are spread across various FTP servers all over the world. Cosmid can help you find, clone and manage resources, including a quick way to keep up-to-date on the latest releases.
::
# Clone dependencies from './cosmid.yaml'
$ cosmid clone
# Clone a specific resource + target verion (optional)
$ cosmid clone <package>#<version>
# Walk through setting up a new 'cosmid.yaml' file
$ cosmid init
"""
# Bootstrap distribute unless already installed
from cosmid.distribute_setup import use_setuptools
use_setuptools()
import os
import sys
from setuptools import setup, find_packages
import cosmid
# Shortcut for publishing to Pypi
# Source: https://github.com/kennethreitz/tablib/blob/develop/setup.py
if sys.argv[-1] == "publish":
os.system("python setup.py sdist upload")
sys.exit()
setup(
name = "cosmid",
version = cosmid.__version__,
packages = find_packages(exclude=["tests"]),
scripts = ["scripts/cosmid"],
# Project dependencies
install_requires = [
"docopt",
"path.py",
"pyyaml",
"fuzzywuzzy",
"termcolor",
"sh"
],
# Packages required for testing
tests_require = [
"nose"
],
# Metadate for upload to Pypi
author = "Robin Andeer",
author_email = "[email protected]",
description = "A genomics resource manager",
long_description = __doc__,
license = "MIT",
keywords = "bioinformatics resource manager database genomics",
url = "https://github.com/robinandeer/cosmid",
download_url = "https://github.com/robinandeer/cosmid/releases",
classifiers = (
"Development Status :: 3 - Alpha",
"Natural Language :: English",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python"
)
)