|
5 | 5 | # (see qwt/LICENSE for details) |
6 | 6 |
|
7 | 7 | """ |
8 | | -qwt |
9 | | -==== |
| 8 | +python-qwt |
| 9 | +========== |
10 | 10 |
|
11 | | -Qt Widget Tools for Python |
| 11 | +Qt plotting widgets for Python |
12 | 12 | """ |
13 | 13 |
|
14 | 14 | from __future__ import print_function |
|
21 | 21 | from distutils.core import setup |
22 | 22 | from distutils.command.build import build |
23 | 23 |
|
24 | | -LIBNAME = 'qwt' |
| 24 | +LIBNAME = 'python-qwt' |
| 25 | +PACKAGE_NAME = 'qwt' |
25 | 26 | from qwt import __version__ as version |
26 | 27 |
|
27 | | -DESCRIPTION = 'qwt is a pure Python implementation of Qwt C++ library, using PyQt and NumPy' |
28 | | -LONG_DESCRIPTION = '' |
| 28 | +DESCRIPTION = 'Qt plotting widgets for Python' |
| 29 | +LONG_DESCRIPTION = """\ |
| 30 | +The ``python-qwt`` project is a pure Python translation of the Qwt C++ library |
| 31 | +which implements Qt widgets for plotting curves. |
| 32 | +It consists of a single Python package named `qwt` (and examples, doc, ...). |
| 33 | +
|
| 34 | +The ``python-qwt`` project was initiated to solve -at least temporarily- the |
| 35 | +obsolescence issue of `PyQwt` (the Python-Qwt C++ bindings library) which is |
| 36 | +no longer maintained. The idea was to translate the Qwt C++ code to Python and |
| 37 | +then to optimize some parts of the code by writing new modules based on NumPy |
| 38 | +and other libraries. |
| 39 | +
|
| 40 | +The following ``Qwt`` classes won't be reimplemented in ``python-qwt`` because |
| 41 | +most powerful features already exist in ``guiqwt``: QwtCounter, QwtPicker, |
| 42 | +QwtPlotPicker, QwtPlotZoomer and QwtEventPattern. |
| 43 | +QwtClipper is not implemented (and it will probably be very difficult or |
| 44 | +impossible to implement it in pure Python without performance issues). As a |
| 45 | +consequence, when zooming in a plot curve, the entire curve is still painted |
| 46 | +(in other words, when working with large amount of data, there is no |
| 47 | +performance gain when zooming in).""" |
29 | 48 | KEYWORDS = '' |
30 | 49 | CLASSIFIERS = ['Topic :: Scientific/Engineering'] |
31 | 50 | if 'beta' in version or 'b' in version: |
@@ -92,17 +111,15 @@ def run(self): |
92 | 111 | cmdclass['build_doc'] = build_doc |
93 | 112 |
|
94 | 113 |
|
95 | | -setup(name=LIBNAME, version=version, |
96 | | -# download_url='http://%s.googlecode.com/files/%s-%s.zip' % ( |
97 | | -# LIBNAME, LIBNAME, version), |
| 114 | +setup(name=PACKAGE_NAME, version=version, |
98 | 115 | description=DESCRIPTION, long_description=LONG_DESCRIPTION, |
99 | 116 | packages=get_subpackages(LIBNAME), |
100 | 117 | package_data={LIBNAME: |
101 | 118 | get_package_data(LIBNAME, ('.png', '.svg', '.mo'))}, |
102 | 119 | requires=["PyQt4 (>4.3)",], |
103 | 120 | author = "Pierre Raybaut", |
104 | 121 | author_email = 'pierre.raybaut@gmail.com', |
105 | | -# url = 'http://www.cea.fr', |
| 122 | + url = 'https://github.com/PierreRaybaut/%s' % LIBNAME, |
106 | 123 | classifiers=CLASSIFIERS + [ |
107 | 124 | 'Operating System :: MacOS', |
108 | 125 | 'Operating System :: Microsoft :: Windows', |
|
0 commit comments