forked from rambo/python-scpi
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
24 lines (21 loc) · 678 Bytes
/
setup.py
File metadata and controls
24 lines (21 loc) · 678 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
from distutils.core import setup
import subprocess
git_version = 'UNKNOWN'
try:
git_version = str(subprocess.check_output(['git', 'rev-parse', '--verify', '--short', 'HEAD'])).strip()
except subprocess.CalledProcessError,e:
print "Got error when trying to read git version: %s" % e
setup(
name='scpi',
version='0.6.1dev-%s' % git_version,
author='Eero "rambo" af Heurlin',
author_email='rambo@iki.fi',
packages=['scpi',],
license='GNU LGPL',
long_description=open('README.md').read(),
description='Implement SCPI in pure Python',
install_requires=[
'pyserial>=2.7',
],
url='https://github.com/rambo/python-scpi',
)