forked from opentargets/OnToma
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
executable file
·64 lines (55 loc) · 1.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
# -*- coding: utf-8 -*-
import os
import sys
from setuptools import setup, find_packages
from setuptools.command.install import install
with open('VERSION') as version_file:
VERSION = version_file.read().strip()
with open('README.md') as f:
readme = f.read()
with open('LICENSE') as f:
license = f.read()
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 != VERSION:
info = "Git tag: {0} does not match the version of this app: {1}".format(
tag, VERSION
)
sys.exit(info)
setup(
name='ontoma',
version=VERSION,
description='Ontology mapping for Open Targets',
long_description=readme,
long_description_content_type='text/markdown',
author='Open Targets dev team',
author_email='[email protected]',
url='https://github.com/opentargets/OnToma',
license=license,
packages=find_packages(exclude=('tests', 'docs')),
classifiers=[
"Intended Audience :: Developers",
"Operating System :: OS Independent",
"Topic :: Software Development :: Libraries :: Python Modules",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3 :: Only",
],
keywords='opentargets ontology efo mapper',
install_requires=[
'requests',
'obonet',
'click'
],
entry_points='''
[console_scripts]
ontoma=ontoma.cli:ontoma
''',
python_requires='>=3.2',
cmdclass={
'verify': VerifyVersionCommand,
}
)