-
Notifications
You must be signed in to change notification settings - Fork 31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Py2 #2
Py2 #2
Conversation
Currently testing via:
Edit: Please see https://github.com/ome/omero-web-docker/pull/33/files#diff-3254677a7917c6c01f55212f86c57fbf now. |
Use OMERODIR if OMERO_HOME not set
Re-opening to activate travis. |
And again... |
Propose to get this merged and released as |
Tested locally with:
Web running fine, without needing to set |
Thanks, @will-moore. Getting this out as |
$ curl -sSL https://patch-diff.githubusercontent.com/raw/ome/openmicroscopy/pull/5994.diff | sed -e 's%/components/tools/OmeroPy/%/%g' -e 's%/components/tools/OmeroWeb/%/%g' -e 's%etc/templates/web/%omeroweb/templates/%g' -e 's%/test/unit/clitest/%/test/unit/%g' -e 's%/src/%/%g' | git apply --reject Checking patch omero/plugins/web.py... error: while searching for: import traceback from datetime import datetime from omero.cli import DiagnosticsControl from omero.cli import CLI import platform error: patch failed: omero/plugins/web.py:10 Hunk ome#2 succeeded at 276 (offset 1 line). error: while searching for: "Web template configuration requires" "wsgi or wsgi-tcp.") template_file = "%s.conf.template" % server c = file(self._get_web_templates_dir() / template_file).read() self.ctx.out(c % d) def syncmedia(self, args): self.collectstatic() error: patch failed: omero/plugins/web.py:301 Checking patch test/unit/reference_templates/nginx-development-withoptions.conf... Checking patch test/unit/reference_templates/nginx-development.conf... Checking patch test/unit/reference_templates/nginx-location-withoptions.conf... Checking patch test/unit/reference_templates/nginx-location.conf... Checking patch test/unit/reference_templates/nginx-withoptions.conf... Checking patch test/unit/reference_templates/nginx.conf... Checking patch omeroweb/templates/nginx-development.conf.template... Checking patch omeroweb/templates/nginx-location.conf.template... Checking patch omeroweb/templates/nginx.conf.j2... Checking patch omeroweb/templates/nginx.conf.template... Applying patch omero/plugins/web.py with 2 rejects... Rejected hunk ome#1. Hunk ome#2 applied cleanly. Rejected hunk ome#3. Applied patch test/unit/reference_templates/nginx-development-withoptions.conf cleanly. Applied patch test/unit/reference_templates/nginx-development.conf cleanly. Applied patch test/unit/reference_templates/nginx-location-withoptions.conf cleanly. Applied patch test/unit/reference_templates/nginx-location.conf cleanly. Applied patch test/unit/reference_templates/nginx-withoptions.conf cleanly. Applied patch test/unit/reference_templates/nginx.conf cleanly. Applied patch omeroweb/templates/nginx-development.conf.template cleanly. Applied patch omeroweb/templates/nginx-location.conf.template cleanly. Applied patch omeroweb/templates/nginx.conf.j2 cleanly. Applied patch omeroweb/templates/nginx.conf.template cleanly.
Following the style of ome/omero-py#1, this PR looks to make this extracted ome/openmicroscopy:components/tools/OmeroWeb directory pip-installable with Python 2.7 before work starts on upgrading to Python 3. From there, the main directory will be removed from ome/openmicroscopy and all development should occur on this repo.
An extra difficulty is the https://github.com/ome/omero-py/blob/master/src/omero/plugins/web.py script which has hard-coded assumptions about where manage.py lives.
Once OMERO.web is starting, propose to tag and release this to PyPI as 5.5.dev1.
(Replaces gh-1 due to force-push)