-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathsetup.py
executable file
·57 lines (50 loc) · 1.62 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
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()
class VerifyVersionCommand(install):
description = 'Verify that the git tag matches the VERSION file.'
def run(self):
tag = os.getenv('CIRCLE_TAG')
if tag != VERSION:
sys.exit(f'Git tag {tag} does not match the version of this app {VERSION}')
setup(
name='ontoma',
version=VERSION,
description='Ontology mapping for Open Targets',
long_description=readme,
long_description_content_type='text/markdown',
author='Open Targets data team',
author_email='[email protected]',
url='https://github.com/opentargets/OnToma',
license='Apache License, Version 2.0',
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.8",
"Programming Language :: Python :: 3 :: Only",
],
keywords='opentargets ontology efo mapper',
install_requires=[
'click==8.1.7',
'pandas==1.5.3',
'pronto==2.5.3',
'requests==2.32.0',
'retry2==0.9.5',
],
entry_points='''
[console_scripts]
ontoma=ontoma.cli:ontoma
''',
python_requires='>=3.8',
cmdclass={
'verify': VerifyVersionCommand,
}
)