-
Notifications
You must be signed in to change notification settings - Fork 3
/
setup.py
78 lines (67 loc) · 2.4 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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
import subprocess
import os
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
LONG_DESCRIPTION = """
Widgets for quickly visualizing pandas dataframes
It is often necessary to plot data in order to understand it. Plotting
allows to quiclky spot glitches in the data: that person who is 180 meters
tall or this car which can speed thousands of kilometers per hour will
immediately stand out. In this situation, one wants a way to quickly
(rather than beautifully) plot their data. Quickviz provides a set of
widgets to do this in a few clicks.
"""
DESCRIPTION = 'quickviz: interactive widgets for plotting pandas dataframes.'
NAME = 'quickviz'
PACKAGES = ['quickviz']
AUTHOR = 'Christophe-Marie Duquesne'
AUTHOR_EMAIL = '[email protected]'
URL = 'https://github.com/chmduquesne/quickviz'
DOWNLOAD_URL = 'https://github.com/chmduquesne/quickviz'
LICENSE = 'MIT'
INSTALL_REQUIRES = ['matplotlib', 'pandas', 'jupyter', 'ipywidgets',
'seaborn']
def git_tag():
tag = os.getenv('TRAVIS_TAG')
if not tag:
tag = subprocess.check_output(
'git describe --abbrev=0'.split(' ')
).strip().decode('utf-8')
return tag
def pkg_version():
with open('quickviz/__init__.py') as f:
for line in f:
if line.startswith("__version__ = "):
return line[len("__version__ = '"):-2]
if pkg_version() != 'GIT_TAG':
VERSION = pkg_version()
else:
# update __version__ in __init__.py
with open('quickviz/__init__.py') as f:
init_py = f.read()
init_py = init_py.replace('GIT_TAG', git_tag())
with open('quickviz/__init__.py', 'w') as f:
f.write(init_py)
VERSION = pkg_version()
setup(name=NAME,
version=VERSION,
description=DESCRIPTION,
long_description=LONG_DESCRIPTION,
author=AUTHOR,
author_email=AUTHOR_EMAIL,
url=URL,
download_url=DOWNLOAD_URL,
license=LICENSE,
packages=PACKAGES,
# package_data=PACKAGE_DATA,
install_requires=INSTALL_REQUIRES,
classifiers=[
'Development Status :: 4 - Beta',
'Environment :: Console',
'Intended Audience :: Science/Research',
'License :: OSI Approved :: MIT License',
'Natural Language :: English',
'Programming Language :: Python :: 3.5'],
)