forked from rambo/python-holviapi
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
31 lines (28 loc) · 1003 Bytes
/
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
# -*- coding: utf-8 -*-
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
import subprocess
import six
git_version = 'UNKNOWN'
try:
if six.PY2:
git_version = str(subprocess.check_output(['git', 'rev-parse', '--verify', '--short', 'HEAD'])).strip()
if six.PY3:
git_version = subprocess.check_output(['git', 'rev-parse', '--verify', '--short', 'HEAD']).strip().decode('ascii')
except subprocess.CalledProcessError:
pass
setup(
name='holviapi',
version='0.4.1dev-%s' % git_version,
# version='0.3.20171118',
author='Eero "rambo" af Heurlin',
author_email='[email protected]',
packages=['holviapi', 'holviapi.errors', ],
license='MIT',
long_description=open('README.md').read(),
description='Implement Pythonic wrappers for Holvi JSON-REST API',
install_requires=list(filter(bool, (x.strip() for x in open('requirements.txt').readlines()))),
url='https://github.com/rambo/python-holviapi',
)