Mon, 04 Jun 2018 22:28:05 +0200
[plotter] add a --mockup option to the demo main function
93
b459d4bc07cf
[setup] improve setup a bit
David Douard <david.douard@logilab.fr>
parents:
90
diff
changeset
|
1 | # This program is free software; you can redistribute it and/or modify it under |
b459d4bc07cf
[setup] improve setup a bit
David Douard <david.douard@logilab.fr>
parents:
90
diff
changeset
|
2 | # the terms of the GNU General Public License as published by the Free Software |
b459d4bc07cf
[setup] improve setup a bit
David Douard <david.douard@logilab.fr>
parents:
90
diff
changeset
|
3 | # Foundation; either version 2 of the License, or (at your option) any later |
b459d4bc07cf
[setup] improve setup a bit
David Douard <david.douard@logilab.fr>
parents:
90
diff
changeset
|
4 | # version. |
86
96e30b092f70
[py3k] beginning to port to py3k
David Douard <david.douard@logilab.fr>
parents:
diff
changeset
|
5 | # |
93
b459d4bc07cf
[setup] improve setup a bit
David Douard <david.douard@logilab.fr>
parents:
90
diff
changeset
|
6 | # This program is distributed in the hope that it will be useful, but WITHOUT |
b459d4bc07cf
[setup] improve setup a bit
David Douard <david.douard@logilab.fr>
parents:
90
diff
changeset
|
7 | # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS |
b459d4bc07cf
[setup] improve setup a bit
David Douard <david.douard@logilab.fr>
parents:
90
diff
changeset
|
8 | # FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details |
b459d4bc07cf
[setup] improve setup a bit
David Douard <david.douard@logilab.fr>
parents:
90
diff
changeset
|
9 | # |
b459d4bc07cf
[setup] improve setup a bit
David Douard <david.douard@logilab.fr>
parents:
90
diff
changeset
|
10 | # You should have received a copy of the GNU General Public License along with |
b459d4bc07cf
[setup] improve setup a bit
David Douard <david.douard@logilab.fr>
parents:
90
diff
changeset
|
11 | # this program; if not, write to the Free Software Foundation, Inc., |
b459d4bc07cf
[setup] improve setup a bit
David Douard <david.douard@logilab.fr>
parents:
90
diff
changeset
|
12 | # 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
b459d4bc07cf
[setup] improve setup a bit
David Douard <david.douard@logilab.fr>
parents:
90
diff
changeset
|
13 | |
b459d4bc07cf
[setup] improve setup a bit
David Douard <david.douard@logilab.fr>
parents:
90
diff
changeset
|
14 | """ Copyright (c) 2007-2018 David Douard (Paris, FRANCE). |
b459d4bc07cf
[setup] improve setup a bit
David Douard <david.douard@logilab.fr>
parents:
90
diff
changeset
|
15 | https://bitbucket.org/dddouard/pygpibtoolkit -- mailto:david.douard@sdfa3.org |
b459d4bc07cf
[setup] improve setup a bit
David Douard <david.douard@logilab.fr>
parents:
90
diff
changeset
|
16 | """ |
b459d4bc07cf
[setup] improve setup a bit
David Douard <david.douard@logilab.fr>
parents:
90
diff
changeset
|
17 | |
86
96e30b092f70
[py3k] beginning to port to py3k
David Douard <david.douard@logilab.fr>
parents:
diff
changeset
|
18 | from setuptools import setup, find_packages |
96e30b092f70
[py3k] beginning to port to py3k
David Douard <david.douard@logilab.fr>
parents:
diff
changeset
|
19 | |
93
b459d4bc07cf
[setup] improve setup a bit
David Douard <david.douard@logilab.fr>
parents:
90
diff
changeset
|
20 | from codecs import open |
b459d4bc07cf
[setup] improve setup a bit
David Douard <david.douard@logilab.fr>
parents:
90
diff
changeset
|
21 | from os import path |
b459d4bc07cf
[setup] improve setup a bit
David Douard <david.douard@logilab.fr>
parents:
90
diff
changeset
|
22 | |
b459d4bc07cf
[setup] improve setup a bit
David Douard <david.douard@logilab.fr>
parents:
90
diff
changeset
|
23 | here = path.abspath(path.dirname(__file__)) |
b459d4bc07cf
[setup] improve setup a bit
David Douard <david.douard@logilab.fr>
parents:
90
diff
changeset
|
24 | |
b459d4bc07cf
[setup] improve setup a bit
David Douard <david.douard@logilab.fr>
parents:
90
diff
changeset
|
25 | # Get the long description from the README file |
96
6ff321f0d37d
[readme] rename as README.rst
David Douard <david.douard@logilab.fr>
parents:
93
diff
changeset
|
26 | with open(path.join(here, 'README.rst'), encoding='utf-8') as f: |
93
b459d4bc07cf
[setup] improve setup a bit
David Douard <david.douard@logilab.fr>
parents:
90
diff
changeset
|
27 | long_description = f.read() |
b459d4bc07cf
[setup] improve setup a bit
David Douard <david.douard@logilab.fr>
parents:
90
diff
changeset
|
28 | |
b459d4bc07cf
[setup] improve setup a bit
David Douard <david.douard@logilab.fr>
parents:
90
diff
changeset
|
29 | |
86
96e30b092f70
[py3k] beginning to port to py3k
David Douard <david.douard@logilab.fr>
parents:
diff
changeset
|
30 | setup(name="pygpibtoolkit", |
93
b459d4bc07cf
[setup] improve setup a bit
David Douard <david.douard@logilab.fr>
parents:
90
diff
changeset
|
31 | description='A Python 3 toolkit for GPIB', |
b459d4bc07cf
[setup] improve setup a bit
David Douard <david.douard@logilab.fr>
parents:
90
diff
changeset
|
32 | long_description=long_description, |
b459d4bc07cf
[setup] improve setup a bit
David Douard <david.douard@logilab.fr>
parents:
90
diff
changeset
|
33 | long_description_content_type='text/x-rst', |
86
96e30b092f70
[py3k] beginning to port to py3k
David Douard <david.douard@logilab.fr>
parents:
diff
changeset
|
34 | author='David Douard', |
93
b459d4bc07cf
[setup] improve setup a bit
David Douard <david.douard@logilab.fr>
parents:
90
diff
changeset
|
35 | author_email='david.douard@sdfa3.org', |
b459d4bc07cf
[setup] improve setup a bit
David Douard <david.douard@logilab.fr>
parents:
90
diff
changeset
|
36 | classifiers=[ |
b459d4bc07cf
[setup] improve setup a bit
David Douard <david.douard@logilab.fr>
parents:
90
diff
changeset
|
37 | 'Development Status :: 4 - Beta', |
b459d4bc07cf
[setup] improve setup a bit
David Douard <david.douard@logilab.fr>
parents:
90
diff
changeset
|
38 | 'License :: OSI Approved :: GPL', |
b459d4bc07cf
[setup] improve setup a bit
David Douard <david.douard@logilab.fr>
parents:
90
diff
changeset
|
39 | 'Programming Language :: Python :: 3', |
b459d4bc07cf
[setup] improve setup a bit
David Douard <david.douard@logilab.fr>
parents:
90
diff
changeset
|
40 | ], |
b459d4bc07cf
[setup] improve setup a bit
David Douard <david.douard@logilab.fr>
parents:
90
diff
changeset
|
41 | url='http://pygpibtoolkit.readthedocs.io/en/latest/', |
b459d4bc07cf
[setup] improve setup a bit
David Douard <david.douard@logilab.fr>
parents:
90
diff
changeset
|
42 | keywords='gpib hpib ieee-488', |
86
96e30b092f70
[py3k] beginning to port to py3k
David Douard <david.douard@logilab.fr>
parents:
diff
changeset
|
43 | packages=find_packages(), |
96e30b092f70
[py3k] beginning to port to py3k
David Douard <david.douard@logilab.fr>
parents:
diff
changeset
|
44 | version='0.1.0', |
96e30b092f70
[py3k] beginning to port to py3k
David Douard <david.douard@logilab.fr>
parents:
diff
changeset
|
45 | install_requires=[ |
90
869de27dedc7
[HP3562A] replace matplotlib with pytgraph
David Douard <david.douard@logilab.fr>
parents:
89
diff
changeset
|
46 | 'pyserial', 'numpy', 'PyQt5', 'pyqtgraph'], |
101
975576e55563
[prologix] beginning of a proper prologix dongle emulator
David Douard <david.douard@logilab.fr>
parents:
96
diff
changeset
|
47 | extras_require={ |
975576e55563
[prologix] beginning of a proper prologix dongle emulator
David Douard <david.douard@logilab.fr>
parents:
96
diff
changeset
|
48 | 'test': ['pytest'], |
975576e55563
[prologix] beginning of a proper prologix dongle emulator
David Douard <david.douard@logilab.fr>
parents:
96
diff
changeset
|
49 | }, |
93
b459d4bc07cf
[setup] improve setup a bit
David Douard <david.douard@logilab.fr>
parents:
90
diff
changeset
|
50 | entry_points={ |
b459d4bc07cf
[setup] improve setup a bit
David Douard <david.douard@logilab.fr>
parents:
90
diff
changeset
|
51 | 'console_scripts': [ |
b459d4bc07cf
[setup] improve setup a bit
David Douard <david.douard@logilab.fr>
parents:
90
diff
changeset
|
52 | 'pygpib-detect=pygpibtoolkit.detect:main', |
b459d4bc07cf
[setup] improve setup a bit
David Douard <david.douard@logilab.fr>
parents:
90
diff
changeset
|
53 | 'hp3562-coord=pygpibtoolkit.HP3562A.coord_decoder:main', |
b459d4bc07cf
[setup] improve setup a bit
David Douard <david.douard@logilab.fr>
parents:
90
diff
changeset
|
54 | 'hp3562-state=pygpibtoolkit.HP3562A.state_decoder:main', |
b459d4bc07cf
[setup] improve setup a bit
David Douard <david.douard@logilab.fr>
parents:
90
diff
changeset
|
55 | 'hp3562-trace=pygpibtoolkit.HP3562A.trace_decoder:main', |
b459d4bc07cf
[setup] improve setup a bit
David Douard <david.douard@logilab.fr>
parents:
90
diff
changeset
|
56 | 'hp3562-dump=pygpibtoolkit.HP3562A.dump_datablock:main', |
b459d4bc07cf
[setup] improve setup a bit
David Douard <david.douard@logilab.fr>
parents:
90
diff
changeset
|
57 | 'hp3562=pygpibtoolkit.HP3562A.q3562A:main', |
b459d4bc07cf
[setup] improve setup a bit
David Douard <david.douard@logilab.fr>
parents:
90
diff
changeset
|
58 | 'pygpib-plotter=pygpibtoolkit.plotter.qgpib_plotter:main', |
b459d4bc07cf
[setup] improve setup a bit
David Douard <david.douard@logilab.fr>
parents:
90
diff
changeset
|
59 | ]}, |
b459d4bc07cf
[setup] improve setup a bit
David Douard <david.douard@logilab.fr>
parents:
90
diff
changeset
|
60 | project_urls={ |
b459d4bc07cf
[setup] improve setup a bit
David Douard <david.douard@logilab.fr>
parents:
90
diff
changeset
|
61 | 'Bug Reports': 'https://bitbucket.org/dddouard/pygpibtoolkit/issues', |
b459d4bc07cf
[setup] improve setup a bit
David Douard <david.douard@logilab.fr>
parents:
90
diff
changeset
|
62 | 'Source': 'https://bitbucket.org/dddouard/pygpibtoolkit/src', |
b459d4bc07cf
[setup] improve setup a bit
David Douard <david.douard@logilab.fr>
parents:
90
diff
changeset
|
63 | }, |
b459d4bc07cf
[setup] improve setup a bit
David Douard <david.douard@logilab.fr>
parents:
90
diff
changeset
|
64 | ) |