Skip to content

Commit 304b94f

Browse files
committed
Minor documentation update (+ fixed requirements)
1 parent 3992e4b commit 304b94f

File tree

7 files changed

+16
-14
lines changed

7 files changed

+16
-14
lines changed

build_dist.bat

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
del MANIFEST
22
rmdir /S /Q build
33
rmdir /S /Q dist
4-
python setup.py build bdist_wininst --plat-name=win32
5-
python setup.py build bdist_wininst --plat-name=win-amd64
4+
set PYTHONPATH=%cd%
65
python setup.py sdist bdist_wheel --universal
76
python setup.py build sdist

build_doc.bat

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
1+
@echo off
2+
set PATH=C:\Program Files\7-Zip;C:\Program Files (x86)\7-Zip;C:\Program Files\HTML Help Workshop;C:\Program Files (x86)\HTML Help Workshop;%PATH%
3+
set PYTHONPATH=%cd%
14
sphinx-build -b htmlhelp doc doctmp
2-
"C:\Program Files\HTML Help Workshop\hhc.exe" doctmp\PythonQwt.hhp
3-
"C:\Program Files (x86)\HTML Help Workshop\hhc.exe" doctmp\PythonQwt.hhp
5+
hhc doctmp\PythonQwt.hhp
46
copy doctmp\PythonQwt.chm .
57
7z a PythonQwt.chm.zip PythonQwt.chm
68
del doctmp\PythonQwt.chm

doc/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@
116116
html_title = '%s %s Manual' % (project, version)
117117

118118
# A shorter title for the navigation bar. Default is the same as html_title.
119-
html_short_title = '%s Manual' % project
119+
#html_short_title = '%s Manual' % project
120120

121121
# The name of an image file (relative to this directory) to place at the top
122122
# of the sidebar.

doc/installation.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,9 @@ Dependencies
77
Requirements:
88
* Python 2.x (x>=6) or 3.x (x>=2)
99
* PyQt4 4.x (x>=3 ; recommended x>=4) or PyQt5 5.x (x>=5)
10-
* spyderlib >=v2.0.10 for the test launcher
1110
* NumPy 1.x (x>=5)
11+
* guidata >=v1.7 for the test launcher
12+
* Sphinx 1.x (x>=1) for documentation generation
1213

1314
Installation
1415
------------

qwt/py3compat.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
# (see LICENSE file for details)
66

77
"""
8-
guidata.py3compat (exact copy of spyderlib.py3compat)
9-
-----------------------------------------------------
8+
qwt.py3compat (exact copy of spyderlib.py3compat)
9+
-------------------------------------------------
1010
1111
Transitional module providing compatibility functions intended to help
1212
migrating from Python 2 to Python 3.

qwt/qt/compat.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
# (see LICENSE file for details)
66

77
"""
8-
spyderlib.qt.compat
9-
-------------------
8+
qwt.qt.compat (exact copy of spyderlib.qt.compat)
9+
-------------------------------------------------
1010
1111
Transitional module providing compatibility functions intended to help
1212
migrating from PyQt to PySide.
@@ -112,7 +112,7 @@ def _qfiledialog_wrapper(attr, parent=None, caption='', basedir='',
112112
options = QFileDialog.Options(0)
113113
try:
114114
# PyQt <v4.6 (API #1)
115-
from spyderlib.qt.QtCore import QString
115+
from qwt.qt.QtCore import QString
116116
except ImportError:
117117
# PySide or PyQt >=v4.6
118118
QString = None # analysis:ignore
@@ -200,8 +200,8 @@ def getsavefilename(parent=None, caption='', basedir='', filters='',
200200
options=options)
201201

202202
if __name__ == '__main__':
203-
from spyderlib.utils.qthelpers import qapplication
204-
_app = qapplication()
203+
from qwt.qt.QtGui import QApplication
204+
_app = QApplication([])
205205
print(repr(getexistingdirectory()))
206206
print(repr(getopenfilename(filters='*.py;;*.txt')))
207207
print(repr(getopenfilenames(filters='*.py;;*.txt')))

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ def build_chm_doc(libname):
127127
package_data={PACKAGE_NAME:
128128
get_package_data(PACKAGE_NAME, ('.png', '.svg', '.mo'))},
129129
data_files=[(r'Doc', [CHM_DOC])] if CHM_DOC else [],
130-
install_requires=["NumPy>=1.3"],
130+
install_requires=["NumPy>=1.5"],
131131
extras_require = {
132132
'Doc': ["Sphinx>=1.1"],
133133
'Tests': ["guidata>=1.7.0"],

0 commit comments

Comments
 (0)