This repository has been archived by the owner on Dec 18, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
/
setup.py
61 lines (48 loc) · 1.79 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
import setuptools
import os
import re
VERSIONFILE=os.path.join('transmart', '__init__.py')
verstrline = open(VERSIONFILE, "rt").read()
VSRE = r"^__version__ = ['\"]([^'\"]*)['\"]"
mo = re.search(VSRE, verstrline, re.M)
if mo:
version_string = mo.group(1)
else:
raise RuntimeError("Unable to find version string in {}.".format(VERSIONFILE,))
with open("requirements.txt", 'r') as f:
required_packages = f.read().splitlines()
if os.environ.get('READTHEDOCS') == 'True':
for dependency in ['pandas']:
for package in required_packages:
if package.startswith(dependency):
required_packages.remove(package)
minimal = ["requests", "click", "pyjwt"]
backend = ["pandas", "arrow"]
setuptools.setup(
name="transmart",
version=version_string,
url="https://github.com/thehyve/transmart-api-client-py",
author="The Hyve",
description="An python client for communicating with the transmart rest api.",
packages=setuptools.find_packages(exclude=['tests', 'tests.*']),
include_package_data=True,
keywords=['transmart', 'rest', 'api', 'data', 'science'],
download_url='https://github.com/thehyve/transmart-api-client-py/tarball/{}/'.format(version_string),
install_requires=minimal,
extras_require={
"backend": backend,
"full": required_packages},
entry_points={
'console_scripts': [
'transmart-keycloak = transmart.api.utils.keycloak_role_manager:_role_manager_entry_point'
]
},
classifiers=[
'Programming Language :: Python',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10'
],
)