setup   A
last analyzed

Complexity

Total Complexity 0

Size/Duplication

Total Lines 87
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 0
eloc 65
dl 0
loc 87
rs 10
c 0
b 0
f 0
1
"""
2
setup - ensures proper package setup
3
4
This file is ensuring proper package setup is performed to ensure all prerequisites are satisfied 
5
and correct execution is possible
6
"""
7
# package to handle files/folders and related metadata/operations
8
import os.path
9
# package to facilitate multiple operation system operations
10
import platform
11
# facilitate dependencies management
12
from setuptools import setup, find_packages
13
14
with open(os.path.join(os.path.dirname(__file__), 'README.md'), 'r') as fh:
15
    long_description_readme = fh.read()
16
17
this_package_website = 'https://github.com/danielgp/tableau-hyper-management'
18
tableau_hyper_website_download = 'https://downloads.tableau.com/tssoftware/tableauhyperapi-'
19
tableau_hyper_api__current_known_version = '0.0.10309'  # released on 2020-03-25
20
url__tableau_hyper_api = tableau_hyper_website_download + tableau_hyper_api__current_known_version
21
22
if platform.system() == 'Windows':
23
    url__tableau_hyper_api += '-py3-none-win_amd64.whl'
24
elif platform.system() == 'Darwin':
25
    url__tableau_hyper_api += '-py3-none-macosx_10_11_x86_64.whl'
26
elif platform.system() == 'Linux':
27
    url__tableau_hyper_api += '-py3-none-manylinux2014_x86_64.whl'
28
else:
29
    url__tableau_hyper_api += '-py3-none-manylinux2014_x86_64.whl'
30
31
setup(
32
    author='Daniel Popiniuc',
33
    author_email='[email protected]',
34
    classifiers=[
35
        'Development Status :: 5 - Production/Stable',
36
        'Environment :: Console',
37
        'Intended Audience :: Developers',
38
        'Intended Audience :: Information Technology',
39
        'Intended Audience :: System Administrators',
40
        'License :: OSI Approved :: GNU Lesser General Public License v3 (LGPLv3)',
41
        'Natural Language :: English',
42
        'Programming Language :: Python :: 3.6',
43
        'Programming Language :: Python :: 3.7',
44
        'Programming Language :: Python :: 3.8',
45
        'Topic :: Scientific/Engineering :: Information Analysis'
46
    ],
47
    dependency_links=[
48
        url__tableau_hyper_api
49
    ],
50
    description='Wrapper to ease data management into Tableau Hyper format from CSV files',
51
    include_package_data=True,
52
    install_requires=[
53
        'cffi>=1.13.2,<2',
54
        'codetiming>=1.1,<=1.2',
55
        'numpy>=1.17.4,<=1.18.2',
56
        'pandas>=0.25.3,<=1.0.3',
57
        'tableauhyperapi==0.0.10309',
58
        'tableauserverclient==0.10'
59
    ],
60
    keywords=[
61
        'tableau',
62
        'hyper',
63
        'csv'
64
    ],
65
    license='LGPL3',
66
    long_description=long_description_readme,
67
    long_description_content_type='text/markdown',
68
    name='tableau-hyper-management',
69
    packages=find_packages('tableau_hyper_management'),
70
    package_data={
71
        'samples': [
72
            '*.json'
73
        ],
74
        'tableau_hyper_management': [
75
            '*.json'
76
        ]
77
    },
78
    project_urls={
79
        'Documentation': this_package_website + '/blob/master/README.md',
80
        'Issue Tracker': this_package_website +
81
                         '/issues?q=is%3Aissue+is%3Aopen+sort%3Aupdated-desc',
82
        'Source Code': this_package_website
83
    },
84
    python_requires='>=3.6',
85
    url=this_package_website + '/releases',  # project home page, if any
86
    version='1.3.5',
87
)
88