File tree 2 files changed +11
-1
lines changed
2 files changed +11
-1
lines changed Original file line number Diff line number Diff line change 1
1
2
+ from __future__ import with_statement
2
3
3
4
# http://docs.python.org/distutils/
4
5
# http://packages.python.org/distribute/
7
8
except :
8
9
from distutils .core import setup
9
10
11
+ import os .path
12
+
13
+ version_py = os .path .join (os .path .dirname (__file__ ), 'usbtmc' , 'version.py' )
14
+ with open (version_py , 'r' ) as f :
15
+ d = dict ()
16
+ exec (f .read (), d )
17
+ version = d ['__version__' ]
18
+
10
19
setup (
11
20
name = 'python-usbtmc' ,
12
21
description = 'Python USBTMC driver for controlling instruments over USB' ,
13
- version = '0.1' ,
22
+ version = version ,
14
23
long_description = '''This Python package supports the USBTMC instrument
15
24
control protocol for controlling instruments over USB.''' ,
16
25
author = 'Alex Forencich' ,
Original file line number Diff line number Diff line change
1
+ __version__ = '0.5'
You can’t perform that action at this time.
0 commit comments