-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathsetup.py
executable file
·57 lines (50 loc) · 2.15 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
from setuptools import setup
import os.path, re, sys
def get_version(package):
"""
Return package version as listed in `__version__` in `init.py`.
"""
with open(os.path.join(package, '__init__.py'), 'rb') as init_py:
src = init_py.read().decode('utf-8')
return re.search("__version__ = ['\"]([^'\"]+)['\"]", src).group(1)
version = get_version('skippylab')
tests_require = [
'pytest>=3.0.5',
'pytest-cov',
'pytest-runner',
]
needs_pytest = set(('pytest', 'test', 'ptr')).intersection(sys.argv)
setup_requires = ['pytest-runner'] if needs_pytest else []
setup(name='skippylab',
version=version,
description='Readout instuments communication via vxi11 and SCPI like the TektronixDPO4104B oscilloscope',
long_description='Use the oscilloscope for readout of waveforms bascially as a daq. Provides an easy to extend API to inlcude more functionality',
author='Achim Stoessl',
author_email="achim.stoessl@gmail.com",
url='https://github.com/achim1/skippylab',
#download_url="pip install skippylab",
install_requires=['numpy>=1.11.0',
'matplotlib>=1.5.0',
'appdirs>=1.4.0',
'pyprind>=2.9.6',
'six>=1.1.0',
"python-vxi11>=0.9.0"],
setup_requires=setup_requires,
tests_require=tests_require,
license="GPL",
platforms=["Ubuntu 14.04","Ubuntu 16.04"],
classifiers=[
"License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)",
"Development Status :: 3 - Alpha",
"Intended Audience :: Science/Research",
"Intended Audience :: Developers",
"Programming Language :: Python :: 3.5",
"Topic :: Scientific/Engineering :: Physics"
],
keywords=["oscilloscope", "daq",\
"TektronixDPO4104B", "Tektronix",\
"readout", "physics", "engineering", "SCPI", "VISA", "vxi11"],
packages=['skippylab', 'skippylab.instruments', 'skippylab.scpi'],
#scripts=[],
#package_data={'skippylab': ['pyoscidefault.mplstyle','pyoscipresent.mplstyle']}
)