-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathINSTALL
140 lines (91 loc) · 3.53 KB
/
INSTALL
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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
==========
Installing
==========
Requirements
------------
You will need:
* python 2.4 or later.
* ProxyTypes which can be found here:
http://pypi.python.org/pypi/ProxyTypes
* validatish
http://pypi.python.org/pypi/validatish
* convertish
http://pypi.python.org/pypi/convertish
* schemaish
http://pypi.python.org/pypi/schemaish
* dottedish
http://pypi.python.org/pypi/dottedish
Required(??)
-------------
* mako - the inbuild renderer uses mako and we only have mako widgets at the
moment so unless you configure your own templates this is fairly required
http://pypi.python.org/pypi/Mako
Optional Requirements
---------------------
* ImageMagick - If you want to use the in built image resizing (and to run the unit tests)
http://www.imagemagick.org/script/index.php
* webob - The tests build their own request objects to get things working
* python-magic - for image upload suffix recognitiion
for testing
...........
unittests
* nose - for functionaal tests
* restish - The functional tests use restish as a web framework
functional tests and testish test site
* selenium - The functional tests use selenium
* paste & pastescript - for running servers and creating templates
* markdown - for styling bits of content
* pygments - code highlighting for testish
Installation
------------
If you have easy_install, you can run the following
easy_install formish
This will also bring in all of the core requirements.
Testing
-------
We have a larger range of tests for widgets, validation and conversion in formish/tests/testish which can be run as
./functests
./unittests
You may have to tweak the scripts to get them going..
Last Ditch installs
-------------------
If you want to make sure you have everything that may be used, try this..
easy_install -U setuptools
easy_install webob
easy_install proxytypes
easy_install mako
easy_install paste
easy_install pastescript
easy_install nose
easy_install python-magic
easy_install beautifulsoup
easy_install decorator
easy_install markdown
easy_install pygments
easy_install restish
easy_install validatish
easy_install convertish
easy_install schemaish
easy_install formish
easy_install dottedish
The functional also require imagemagick and selenium which will need installing via some other method (aptitude, download etc)
Selenium can be found at
http://seleniumhq.org/ - http://release.seleniumhq.org/selenium-remote-control/1.0-beta-2/selenium-remote-control-1.0-beta-2-dist.zip - http://release.seleniumhq.org/selenium-remote-control/1.0-beta-2/selenium-remote-control-1.0-beta-2-dist.zip
Download this and place the following scripts in the selenium-remote-control-1.0-beta-2/selenium-server-1.0-beta-2 directory
and here is a script to listen in for tests
.. code-block:: bash
# Display we'll run Xnest on.
XNEST_DISPLAY=:10
# Start Xnest and capture its pid.
Xnest $XNEST_DISPLAY -ac &
xnest_pid=$!
# From now on we want all X11 apps to start on Xnest's display.
DISPLAY=$XNEST_DISPLAY
# Let's run a nice, light window manager on it.
openbox-session &
# Start selenium server.
java -jar selenium-server.jar -forcedBrowserMode "*firefox3 /usr/lib/firefox-****INSERTCORRECTVERSION***/firefox"
# Shutdown Xnest
kill $xnest_pid
NB: Check firefox version number in above
When you run this script it should set up a listening selenium server that will pick up on the func tests you might run. Check the path to firefox as the version changes regularly. Different versions of java play differently too...