Skip to content

Commit

Permalink
add configurable workflow_revison
Browse files Browse the repository at this point in the history
  • Loading branch information
phue committed Jun 28, 2024
1 parent 0688553 commit 4f6bca7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
5 changes: 4 additions & 1 deletion nextflowspawner/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,10 @@

class NextflowSpawner(LocalProcessSpawner):

default_url = Unicode('/nextflow', help="entrypoint for https://github.com/phue/jupyter-nextflow-proxy")
default_url = Unicode('/nextflow', help="The entrypoint for https://github.com/phue/jupyter-nextflow-proxy")

workflow_url = Unicode(config=True, help="The url of the pipeline repository.")
workflow_revison = Unicode('main', config=True, help="The revision of the pipeline repository.")

home_dir = Unicode(help="The user home directory")

Expand Down Expand Up @@ -160,5 +162,6 @@ def get_env(self):
env = super().get_env()
env['NXF_HOME'] = self.nxf_home
env['NXF_USER_WORKFLOW'] = self.workflow_url
env['NXF_USER_REVISION'] = self.workflow_revision
env['NXF_USER_PARAMS'] = self._write_params_file(self.user_options)
return env
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

setuptools.setup(
name="nextflowspawner",
version='0.5.0',
version='0.7.0',
url="https://github.com/phue/nextflowspawner",
description="Spawn Nextflow pipelines from Jupyterhub and configure them interactively",
author="Patrick Hüther",
Expand All @@ -14,5 +14,5 @@
],
},
python_requires=">=3.10",
install_requires=['jsonschema', 'jupyterhub>=4.0.2', 'jupyter-nextflow-proxy@git+https://github.com/phue/jupyter-nextflow-proxy@v0.3.0'],
install_requires=['jsonschema', 'jupyterhub>=5.0.0', 'jupyter-nextflow-proxy@git+https://github.com/phue/jupyter-nextflow-proxy@v0.4.0'],
)

0 comments on commit 4f6bca7

Please sign in to comment.