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
=== added directory 'resources/sextant'
=== renamed directory 'resources/web' => 'resources/sextant/web'
=== modified file 'setup.py'
--- setup.py 2014-08-15 12:03:01 +0000
+++ setup.py 2014-08-18 14:19:39 +0000
@@ -11,7 +11,7 @@
1111
12setup(12setup(
13 name='Sextant',13 name='Sextant',
14 version='1.0',14 version='1.0.1',
15 description= 'Navigating the C',15 description= 'Navigating the C',
16 url='http://open.ensoft.co.uk/Sextant',16 url='http://open.ensoft.co.uk/Sextant',
17 license='Simplified BSD License',17 license='Simplified BSD License',
@@ -19,7 +19,7 @@
19 package_dir={'sextant': 'src/sextant', 'resources': 'resources', 'etc': 'etc'},19 package_dir={'sextant': 'src/sextant', 'resources': 'resources', 'etc': 'etc'},
20 scripts=['bin/sextant'],20 scripts=['bin/sextant'],
21 install_requires=['neo4jrestclient', 'twisted'],21 install_requires=['neo4jrestclient', 'twisted'],
22 package_data={'resources': ['web/*'], 'etc': ['*.conf']},22 package_data={'resources': ['sextant/web/*'], 'etc': ['*.conf']},
23)23)
2424
2525
2626
=== modified file 'src/sextant/web/server.py'
--- src/sextant/web/server.py 2014-08-14 17:09:12 +0000
+++ src/sextant/web/server.py 2014-08-18 14:19:39 +0000
@@ -14,11 +14,7 @@
14from twisted.internet import defer14from twisted.internet import defer
1515
16import logging16import logging
17
18import os17import os
19import sys # hack to get the Sextant module imported
20sys.path.append(os.path.realpath('../..'))
21
22import json18import json
23import requests19import requests
2420
@@ -304,7 +300,7 @@
304 # serve static directory at root300 # serve static directory at root
305 root = File(os.path.join(301 root = File(os.path.join(
306 os.path.dirname(os.path.abspath(__file__)),302 os.path.dirname(os.path.abspath(__file__)),
307 "..", "..", "..", "resources", "web"))303 "..", "..", "..", "resources", "sextant", "web"))
308304
309 # serve a dynamic Echoer webpage at /echoer.html305 # serve a dynamic Echoer webpage at /echoer.html
310 root.putChild("echoer.html", Echoer())306 root.putChild("echoer.html", Echoer())

Subscribers

People subscribed via source and target branches