Merge lp:~patrickas/ensoft-sextant/101_release into lp:ensoft-sextant

Proposed by Patrick Stevens
Status: Merged
Approved by: Patrick Stevens
Approved revision: 185
Merged at revision: 3
Proposed branch: lp:~patrickas/ensoft-sextant/101_release
Merge into: lp:ensoft-sextant
Diff against target: 48 lines (+3/-7)
2 files modified
setup.py (+2/-2)
src/sextant/web/server.py (+1/-5)
To merge this branch: bzr merge lp:~patrickas/ensoft-sextant/101_release
Reviewer Review Type Date Requested Status
Patrick Stevens Approve
James Approve
Review via email: mp+231163@code.launchpad.net

Commit message

1.0.1 release: move resources to resources/sextant, and update sextant.web.server to work with this change.

Description of the change

Ready for 1.0.1 release: move /resources to /resources/sextant; remove a few development-machine-specific lines of /bin/sextant; make sextant.web.server work with the new resources location.

To post a comment you must log in.
Revision history for this message
Patrick Stevens (patrickas) wrote :

File permissions have changed *again*.

review: Needs Fixing
184. By Patrick Stevens <email address hidden>

Fix file permissions on src/sextant/web/server.py

Revision history for this message
James (jamesh-f) wrote :

Approve changes fix path problems for pip install

review: Approve
Revision history for this message
Patrick Stevens (patrickas) wrote :

Keep bin/sextant as it was - exporting an extra thing to the PythonPath isn't actually harmful, and it means we can continue to run Sextant from source.

185. By Patrick Stevens <email address hidden>

Restore bin/sextant changes

Revision history for this message
Patrick Stevens (patrickas) :
review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== added directory 'resources/sextant'
2=== renamed directory 'resources/web' => 'resources/sextant/web'
3=== modified file 'setup.py'
4--- setup.py 2014-08-15 12:03:01 +0000
5+++ setup.py 2014-08-18 14:19:39 +0000
6@@ -11,7 +11,7 @@
7
8 setup(
9 name='Sextant',
10- version='1.0',
11+ version='1.0.1',
12 description= 'Navigating the C',
13 url='http://open.ensoft.co.uk/Sextant',
14 license='Simplified BSD License',
15@@ -19,7 +19,7 @@
16 package_dir={'sextant': 'src/sextant', 'resources': 'resources', 'etc': 'etc'},
17 scripts=['bin/sextant'],
18 install_requires=['neo4jrestclient', 'twisted'],
19- package_data={'resources': ['web/*'], 'etc': ['*.conf']},
20+ package_data={'resources': ['sextant/web/*'], 'etc': ['*.conf']},
21 )
22
23
24
25=== modified file 'src/sextant/web/server.py'
26--- src/sextant/web/server.py 2014-08-14 17:09:12 +0000
27+++ src/sextant/web/server.py 2014-08-18 14:19:39 +0000
28@@ -14,11 +14,7 @@
29 from twisted.internet import defer
30
31 import logging
32-
33 import os
34-import sys # hack to get the Sextant module imported
35-sys.path.append(os.path.realpath('../..'))
36-
37 import json
38 import requests
39
40@@ -304,7 +300,7 @@
41 # serve static directory at root
42 root = File(os.path.join(
43 os.path.dirname(os.path.abspath(__file__)),
44- "..", "..", "..", "resources", "web"))
45+ "..", "..", "..", "resources", "sextant", "web"))
46
47 # serve a dynamic Echoer webpage at /echoer.html
48 root.putChild("echoer.html", Echoer())

Subscribers

People subscribed via source and target branches