forked from dcdanko/ModuleUltra
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
82 lines (60 loc) · 2.08 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
80
81
82
"""ModuleUltra -- biological data pipeline creation."""
import os
import sys
from setuptools import setup, find_packages
from setuptools.command.install import install
version = {}
VERSION_PATH = os.path.dirname(os.path.realpath(__file__))
with open('{0}/moduleultra/version.py'.format(VERSION_PATH)) as fp:
exec(fp.read(), version)
with open('README.rst') as readme_file:
readme = readme_file.read()
requirements = [
'click~=6.7',
'snakemake~=4.1.0',
'PyYAML~=3.12.0',
'blessings~=1.7.0',
'yaml-backed-structs~=0.9.0',
'datasuper~=0.10.0',
'gimme_input==1.0.0',
'PackageMega==0.1.0',
]
dependency_links = [
'git+https://github.com/dcdanko/gimme_input.git@master#egg=gimme_input-1.0.0',
'git+https://github.com/dcdanko/PackageMega.git@master#egg=PackageMega-0.1.0',
]
class VerifyVersionCommand(install):
"""Custom command to verify that the git tag matches our version."""
description = 'Verify that the git tag matches our version.'
def run(self):
tag = os.getenv('CIRCLE_TAG')
if tag != 'v{0}'.format(version['__version__']):
info = 'Git tag: {0} does not match the version of this app: {1}'
info = info.format(tag, version['__version__'])
sys.exit(info)
setup(
name='ModuleUltra',
version=version['__version__'],
url='https://github.com/dcdanko/ModuleUltra',
author=version['__author__'],
author_email=version['__email__'],
description=('Tools to make pipelines easier to run and distribute for '
'large biological datasets'),
long_description=readme,
packages=find_packages(include=['moduleultra']),
install_requires=requirements,
dependency_links=dependency_links,
entry_points={
'console_scripts': [
'moduleultra=moduleultra.cli:main',
],
},
classifiers=[
# As from http://pypi.python.org/pypi?%3Aaction=list_classifiers
'Development Status :: 2 - Pre-Alpha',
'Programming Language :: Python :: 3.6',
],
cmdclass={
'verify': VerifyVersionCommand,
},
)