Skip to content

Commit d96a78b

Browse files
committed
Add/revise sample pymodel_paths*.bat for Windows
revise installation instructions in INSTALL.txt revise v 1.0 release notes
1 parent 4614f02 commit d96a78b

File tree

5 files changed

+45
-18
lines changed

5 files changed

+45
-18
lines changed

INSTALL.txt

+16-9
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,18 @@ unpack it, with a single command:
2222

2323
pip install --no-install --build . PyModel
2424

25+
Be sure to use the " --no-install -build . " options.
26+
2527
Then you can run PyModel using the commands and modules in the
2628
unpacked distribution directory. Just put PyModel/bin on your
2729
execution PATH and PyModel/pymodel on your PYTHONPATH. You can
28-
achieve this by executing the script PyModel/bin/pymodel_paths (or
29-
pymodel_paths.bat on Windows). That script assumes the distribution
30-
directory is in your HOME directory and is named PyModel (not
31-
PyModel-1.0, so you many need to rename it).
30+
achieve this by executing the script PyModel/bin/pymodel_paths. That
31+
script assumes the distribution directory is in your HOME directory
32+
and is named PyModel (not PyModel-1.0, so you many need to rename it).
33+
On Windows, pymodel_paths_mydocs.bat assumes the unpacked PyModel
34+
directory is under your My Documents directory (as is common in
35+
Windows XP), while pymodel_paths.bat assumes it is under your home
36+
directory (which might be more common in Windows 7).
3237

3338
Confirm that PyModel works for you by running some of the test scripts
3439
in the samples directories. For example, in
@@ -38,8 +43,9 @@ program as it executes the PowerSwitch model.
3843

3944
The setup.py script included in the distribution now supports the
4045
install argument, so you can optionally install the PyModel python
41-
modules and commands in system directories (for example in
42-
/Library/Python/2.7/site-packages and /usr/local/bin, respectively).
46+
modules and commands in system directories (for example, on Mac OS X:
47+
/Library/Python/2.7/site-packages and /usr/local/bin, respectively;
48+
on Windows: C:\Python27\Lib\site-packages and C:\Python27\Scripts).
4349
In the PyModel directory, type the command:
4450

4551
sudo python setup.py install
@@ -51,9 +57,10 @@ Alternatively, if you have pip installed you can type the command:
5157
The pip utility maintains a registry of the packages it has installed,
5258
which makes it easy to review and uninstall packages.
5359

54-
After installing you should not need to execute pymodel_path, but You
55-
still need to type the command: source tpath (in Windows, just tpath)
56-
in every session (terminal window).
60+
After installing you should not need to execute pymodel_paths, but you
61+
may still need to type the command: source tpath in every session
62+
(terminal window). After installing on Windows you may still need to
63+
set paths, pymodel_paths_installed.bat might be a useful example.
5764

5865
Most of the distribution contents is in the examples under
5966
PyModel/samples, and in the documentation under PyModel/notes, www,

bin/pymodel_paths.bat

100755100644
+3-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
set PATH=%PATH%;%USERPROFILE%\My Documents\PyModel\bin
2-
set PATH=%PATH%;%USERPROFILE%\My Documents\PyModel\pymodel
3-
set PYTHONPATH=%PYTHONPATH%;%USERPROFILE%\My Documents\PyModel\pymodel
1+
set PATH=%PATH%;%USERPROFILE%\PyModel\bin
2+
set PATH=%PATH%;%USERPROFILE%\PyModel\pymodel
3+
set PYTHONPATH=%PYTHONPATH%;%USERPROFILE%\PyModel\pymodel
44
set PYTHONPATH=.;%PYTHONPATH%
55
set PATHEXT=%PATHEXT%;.PY
66

bin/pymodel_paths_installed.bat

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
set PATH=%PATH%;%SYSTEMDRIVE%\Python27
2+
set PATH=%PATH%;%SYSTEMDRIVE%\Python27\Scripts
3+
set PYTHONPATH=%PYTHONPATH%;%SYSTEMDRIVE%\Python27\Lib\site-packages\pymodel
4+
set PYTHONPATH=.;%PYTHONPATH%
5+
set PATHEXT=%PATHEXT%;.PY
6+

bin/pymodel_paths_mydocs.bat

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
set PATH=%PATH%;%USERPROFILE%\My Documents\PyModel\bin
2+
set PATH=%PATH%;%USERPROFILE%\My Documents\PyModel\pymodel
3+
set PYTHONPATH=%PYTHONPATH%;%USERPROFILE%\My Documents\PyModel\pymodel
4+
set PYTHONPATH=.;%PYTHONPATH%
5+
set PATHEXT=%PATHEXT%;.PY
6+

notes/release-1.0.txt

+14-6
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,20 @@
11

22
PyModel v 1.0 release notes
33

4-
PyModel is a model-based testing framework for Python. Earlier public
5-
releases were versions 0.80 in Jan 2010, 0.85 in Mar 2010, and 0.90 in
6-
July 2011. Since July 2011 ongoing work has been available at GitHub:
7-
https://github.com/jon-jacky/PyModel/ PyModel can also be downloaded
8-
from PyPI http://pypi.python.org/pypi/PyModel or
9-
http://staff.washington.edu/jon/pymodel/www/
4+
PyModel is a model-based testing framework for Python. In model-based
5+
testing, you code a model that can generate as many test cases as
6+
needed; the model also checks the test outcomes. In the samples
7+
included with PyModel, there are models and test scripts for network
8+
sockets, a communication protocol, embedded controllers, some data
9+
structures, a multithreaded application, and a web application.
10+
PyModel also includes an analyzer for validating models, visualizing
11+
their behavior, and checking their safety properties.
12+
13+
Earlier public releases were versions 0.80 in Jan 2010, 0.85 in Mar
14+
2010, and 0.90 in July 2011. Since July 2011 ongoing work has been
15+
available at GitHub: https://github.com/jon-jacky/PyModel/ PyModel can
16+
also be downloaded from PyPI http://pypi.python.org/pypi/PyModel or
17+
the author's web page at http://staff.washington.edu/jon/pymodel/www/
1018

1119
This release is called version 1.0 because it includes all of the
1220
features considered in the original project plan. (Development and

0 commit comments

Comments
 (0)