forked from thehyve/transmart-api-client-py
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
51 lines (38 loc) · 1.5 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
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)
setuptools.setup(
name="transmart",
version=version_string,
url="https://www.github.com/thehyve/transmart-api-client-py/",
maintainer="[email protected]",
maintainer_email="[email protected]",
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=required_packages,
classifiers=[
'Programming Language :: Python',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
],
)