Commit Graph
1472 Commits
Author SHA1 Message Date
John Chilton 705669a783 Merge pull request #9610 from mvdbeek/store_tool_source
Startup speedups (XML doc cache, delay non-essential tool param parsing & indexing)
2020-04-27 14:54:32 -04:00
Nicola Soranzo 7118b4fa11 Hide "python: not found" error when Python 2 is not installed 2020-04-27 02:32:06 +01:00
mvdbeek 51549d0391 Only build toolbox index for webapps, delay until after startup 2020-04-25 20:40:26 +02:00
Nicola Soranzo b481e0c2c8 Merge pull request #9637 from mvdbeek/fix_issue_creation 2020-04-21 13:01:25 +01:00
mvdbeek 3c0f22d451 Use pygithub for issue creation 2020-04-21 12:55:39 +02:00
mvdbeek a36b4486bf Merge branch 'release_20.01' into dev 2020-03-26 10:51:46 +01:00
mvdbeek 7105de2fb0 Fix import order 2020-03-21 13:27:53 +01:00
mvdbeek 159a94b95d Move index logic to lib.tool_shed.util.shed_index
Since we need the index for browsing repos in the new client
we should incrementally build the index with every repo update.
Having this in tool_shed will make re-use easier.
2020-03-21 13:27:53 +01:00
mvdbeek afce65249f Implement incremental indexing 2020-03-21 13:27:53 +01:00
mvdbeek 2bb2f0989f Make build_ts_whoosh_index.py py3 compatible 2020-03-21 13:27:53 +01:00
Nicola Soranzo 56450de8a9 Print help if no action is selected 2020-03-05 13:26:28 +01:00
Dannon Baker e183cc1f7b Merge remote-tracking branch 'upstream/release_20.01' into dev 2020-02-29 09:55:46 -05:00
Nicola Soranzo 088653e2cb Add missing pygithub dev-requirement
Follow-up to https://github.com/galaxyproject/galaxy/pull/9271

Also move GitHub client initialisation and check for `requests` closer to where they
are used to prevent error messages when running `make`.
2020-02-29 01:55:05 +00:00
mvdbeek a02480f35b Merge branch 'release_20.01' into dev 2020-02-27 17:51:34 +01:00
Nicola Soranzo 4e96e3edce Use with statement to open file 2020-02-27 11:49:49 +00:00
Nicola Soranzo 765f59175c Create Python3 virtualenv by default
- Allow specifying Python to use to create virtualenv using GALAXY_PYTHON
  environment variable.
- Integrate Python support docs from https://galaxyproject.org/admin/python/
- Update virtualenv installation to use v16.7.9
2020-02-26 10:53:43 +01:00
mvdbeek 6b304586c4 Fix missing newline after section 2020-02-26 10:15:33 +01:00
mvdbeek 2dc072609f Update scripts/bootstrap_history.py for python 3 / pygithub 2020-02-26 10:15:33 +01:00
Nicola Soranzo 2c3f63751a Fix py27-first_startup Travis job to actually use Python 2
`scripts/common_startup.sh` now prefers python3 when creating Galaxy's
virtual environment, so it needs to be run when inside the tox virtualenv,
where `GALAXY_PYTHON` is defined.
2020-02-25 11:54:27 +00:00
Nicola Soranzo f9b99fcf97 Merge branch 'release_20.01' into dev 2020-02-24 11:48:30 +00:00
Nicola Soranzo da256571e6 Source the full path of conda activate script
Otherwise, if a virtualenv is active on top of conda base env (e.g. when
running py37-first_startup tox test in TravisCI), the wrong `activate`
script is sourced.

Also fix `CONDA_PREFIX` environment variable definition when using a shell
not supported by conda.
2020-02-23 23:06:01 +00:00
Nicola Soranzo f61ae2c42a Don't check if python is from conda when CONDA_EXE env var is set
Since at least version 3.7.4 of the `python` package from the `defaults`
conda channel, `python -V` doesn't reveal its origin any more.

Also some fixes suggested by `shellcheck`.
2020-02-23 23:05:52 +00:00
Nicola Soranzo d4662fd952 Merge branch 'release_20.01' into dev 2020-02-19 12:43:07 +00:00
Nicola Soranzo 437f51c2a6 Create Python3 virtualenv by default
- Allow specifying Python to use to create virtualenv using GALAXY_PYTHON
  environment variable.
- Integrate Python support docs from https://galaxyproject.org/admin/python/
- Update virtualenv installation to use v16.7.9
2020-02-09 02:54:24 +00:00
Dannon Baker 4834b7535f Drop static-safe from DEFAULT_ARGS, relying on an explicit add now. 2020-02-06 13:27:33 -05:00
Dannon Baker e7a2e9a440 With it configured to always set static-safe, this is no longer necessary 2020-02-06 13:23:42 -05:00
Dannon Baker 127be4842a Automatically resolve and add static-safe mappings for client-based images. This is safe, and we might as well just automate/force it here. People can always add additional ones, of course, but this ensures galaxy internal static files are resolvable. 2020-02-06 13:21:04 -05:00
Nate Coraor acb9bc1ea1 Merge pull request #9306 from dannon/blue-elimination
Clean up old 'blue' style path, update documentation and samples
2020-02-05 09:31:34 -05:00
Dannon Baker f935c6206b Clean up old 'blue' style path, update documentation and samples to refer to plain old 'static' now. 2020-02-03 22:41:29 -05:00
Nicola Soranzo 3525cf7a8e Remove broken script
None of the 3 other scripts called by this one exists anymore.
2020-02-03 18:48:57 +00:00
Dannon Baker 0e106ddd17 Merge remote-tracking branch 'upstream/dev' into client-build-work 2020-01-24 13:22:59 -05:00
Dannon Baker 8f61f46a2e Build artifact refactoring to unify destinations to the standard 'dist' and allow old cruft to keep working. 2020-01-23 13:01:59 -05:00
Nicola Soranzo f5cd88465e Make str.join()s more efficient
by using generator expressions and tuples instead of lists.
2020-01-23 11:06:32 +00:00
Nicola Soranzo b09b7d53ce Write unicode strings to files opened with io.open(path, w, encoding=utf-8)
Otherwise under Python2 the following exception is raised:
```
$ python2
Python 2.7.17 (default, Nov  7 2019, 10:07:09)
[GCC 7.4.0] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import io
>>> with io.open('foo.txt', 'w', encoding='utf-8') as fh:
...     fh.write('foo')
...
Traceback (most recent call last):
  File "<stdin>", line 2, in <module>
TypeError: write() argument 1 must be unicode, not str
```
2020-01-09 17:51:24 +00:00
mvdbeek d5fc7d426e Fix interactivetool python 3 support and tests
- enables docker destination for interactivetool tests
- fixes a wrong argument in entrypoint management
- fixes the test setup that targeted a previous iteration (which was
  still called realtimetools)
- prevents deleting the working directory before python has a chance to
  start the container monitor (that's the sleep command)
- fixes some odd interactive tool test assertions
- uses unicode arguments in key_type_token_mapping.py.
  uwsgi arguments are always passed as bytestrings.
2020-01-09 14:40:48 +01:00
M Bernt aec4a88634 umask: switch back to 027 instead 0o027 2019-12-17 17:20:59 +01:00
M Bernt e03a3b5c80 umask to string 2019-12-17 17:20:59 +01:00
M Bernt 8c809725af uWSGI umask change to 027
- add `scripts/get_uwsgi_args.py`
- add docs
2019-12-17 17:20:59 +01:00
Nicola Soranzo 2fcbe0afa3 changectx() method was dropped in mercurial 4.6
in favour of `__getitem__()`.
2019-12-05 18:31:26 +00:00
John Chilton d3c62e3d41 Merge pull request #9029 from dannon/hmr-client-dev
Hot module reloading using webpack-dev-server for client dev
2019-11-25 17:05:04 -05:00
Martin Cech 5a18a486bd when building ts index log parse errors as debug level 2019-11-22 17:27:07 -05:00
Dannon Baker fe6313ce8d If we're running webpack dev server, skip the client build on startup. 2019-11-21 17:19:54 -05:00
Dannon Baker 682e8ae764 Rename targets and env var to be more clear 2019-11-21 16:57:23 -05:00
Dannon Baker b4a5d7afc8 Add env var to allow runtime configuration of hmr server route 2019-11-21 15:47:28 -05:00
Nicola Soranzo 72186b40a1 Merge branch 'release_19.09' into dev 2019-11-19 23:30:02 +01:00
Martin CechandMarius van den Beek fc8b832888 Apply suggestions from code review @mvdbeek
Co-Authored-By: Marius van den Beek <m.vandenbeek@gmail.com>
2019-11-19 09:32:15 -05:00
Martin Cech 0d82973ffe fix path to ts uwsgi app 2019-11-18 21:18:33 -05:00
Martin Cech 0c075f73b4 set logging level according to the argument
also report the run summary as 'info' level
2019-11-18 12:05:02 -05:00
Martin Cech 8668441c9f use configured config file when using uwsgi directly 2019-11-18 12:01:26 -05:00
Martin Cech 5c495d6514 refactor logging 2019-11-18 11:25:47 -05:00