diff --git a/docs/source/conf.py b/docs/source/conf.py index e37a1b2c..b1a2a019 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -57,9 +57,9 @@ 'rabbitmq': '[RabbitMQ](https://www.rabbitmq.com/)', 'kiwipy': '[kiwipy](https://kiwipy.readthedocs.io)', } -nb_execution_mode = 'cache' -nb_execution_show_tb = 'READTHEDOCS' in os.environ -nb_execution_timeout = 60 +jupyter_execute_notebooks = 'cache' +execution_show_tb = 'READTHEDOCS' in os.environ +execution_timeout = 60 # Warnings to ignore when using the -n (nitpicky) option # We should ignore any python built-in exception, for instance diff --git a/examples/process_helloworld.py b/examples/process_helloworld.py index 16526510..db2eff0f 100644 --- a/examples/process_helloworld.py +++ b/examples/process_helloworld.py @@ -9,7 +9,7 @@ def define(cls, spec): spec.input('name', default='World', required=True) spec.output('greeting', valid_type=str) - async def run(self): + def run(self): self.out('greeting', f'Hello {self.inputs.name}!') return plumpy.Stop(None, True) diff --git a/examples/process_launch.py b/examples/process_launch.py index b3a212f6..645af0fd 100644 --- a/examples/process_launch.py +++ b/examples/process_launch.py @@ -18,7 +18,7 @@ def define(cls, spec): spec.outputs.dynamic = True spec.output('default', valid_type=int) - async def run(self): + def run(self): self.out('default', 5) diff --git a/tests/test_workchains.py b/tests/test_workchains.py index bd202adc..08c7317a 100644 --- a/tests/test_workchains.py +++ b/tests/test_workchains.py @@ -205,7 +205,7 @@ def define(cls, spec): super().define(spec) spec.output('res') - async def run(self): + def run(self): self.out('res', A) class ReturnB(plumpy.Process): @@ -214,7 +214,7 @@ def define(cls, spec): super().define(spec) spec.output('res') - async def run(self): + def run(self): self.out('res', B) class Wf(WorkChain): @@ -394,7 +394,7 @@ def define(cls, spec): spec.outline(cls.run, cls.check) spec.outputs.dynamic = True - async def run(self): + def run(self): return ToContext(subwc=self.launch(SubWorkChain)) def check(self): @@ -406,7 +406,7 @@ def define(cls, spec): super().define(spec) spec.outline(cls.run) - async def run(self): + def run(self): self.out('value', 5) workchain = MainWorkChain() @@ -449,7 +449,7 @@ def define(cls, spec): super().define(spec) spec.output('_return') - async def run(self): + def run(self): self.out('_return', val) class Workchain(WorkChain): diff --git a/tox.ini b/tox.ini deleted file mode 100644 index 39cc11f5..00000000 --- a/tox.ini +++ /dev/null @@ -1,44 +0,0 @@ -# To use tox, see https://tox.readthedocs.io -# Simply pip or conda install tox -# If you use conda, you may also want to install tox-conda -# then run `tox` or `tox -- {pytest args}` -# run in parallel using `tox -p` - -# see also test/rmq/docker-compose.yml to start a rabbitmq server, required for the those tests - -[tox] -envlist = py37 - -[testenv] -usedevelop = true - -[testenv:py{37,38,39}] -description = Run the unit tests -extras = - tests -commands = pytest {posargs} - -[testenv:pre-commit] -description = Run the style checks and formatting -extras = - pre-commit - tests -commands = pre-commit run {posargs} - -[testenv:docs-{update,clean}] -description = Build the documentation -extras = docs -whitelist_externals = rm -commands = - clean: rm -rf docs/_build - sphinx-build -nW --keep-going -b {posargs:html} docs/source/ docs/_build/{posargs:html} - -[testenv:docs-live] -description = Build the documentation and launch browser (with live updates) -extras = docs -deps = sphinx-autobuild -commands = - sphinx-autobuild \ - --re-ignore _build/.* \ - --port 0 --open-browser \ - -n -b {posargs:html} docs/source/ docs/_build/{posargs:html}