-
-
Notifications
You must be signed in to change notification settings - Fork 11
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
Create multiple outputs for Cylc Flow package #11
Conversation
Hi! This is the friendly automated conda-forge-linting service. I just wanted to let you know that I linted all conda-recipes in your PR ( I do have some suggestions for making it better though... For recipe:
Documentation on acceptable licenses can be found here. |
Hi! This is the friendly automated conda-forge-linting service. I just wanted to let you know that I linted all conda-recipes in your PR ( I do have some suggestions for making it better though... For recipe:
Documentation on acceptable licenses can be found here. |
Hi! This is the friendly automated conda-forge-linting service. I just wanted to let you know that I linted all conda-recipes in your PR ( |
Pending:
|
I had forgotten about this PR 😥 Will try again before the next release. |
So it's not ready to go in for the beta-0 release? |
No, I haven't finished testing it. I wrote how I thought it had to look like, but didn't test locally to compare if the produced conda files were correct, nor had time to test with the other packages and confirm it works. Sorry 😥 |
Rebased, and bumped build ID. Let's see what errors we have pending. Will test locally too. |
Testing with
:sighs: |
Installed latest Miniconda, then created an env with py3.7.3. Built successfully. # To have conda build upload to anaconda.org automatically, use
# conda config --set anaconda_upload yes
anaconda upload \
/home/kinow/miniconda3/envs/test/conda-bld/linux-64/cylc-flow-base-8.0b0-py37_2.tar.bz2 \
/home/kinow/miniconda3/envs/test/conda-bld/linux-64/cylc-flow-empy-8.0b0-py37_2.tar.bz2 \
/home/kinow/miniconda3/envs/test/conda-bld/linux-64/cylc-flow-main_loop-8.0b0-py37_2.tar.bz2 \
/home/kinow/miniconda3/envs/test/conda-bld/linux-64/cylc-flow-report-timings-8.0b0-py37_2.tar.bz2
anaconda_upload is not set. Not uploading wheels: []
INFO :: The inputs making up the hashes for the built packages are as follows:
{
"cylc-flow-base-8.0b0-py37_2": {
"recipe": {}
},
"cylc-flow-empy-8.0b0-py37_2": {
"recipe": {}
},
"cylc-flow-main_loop-8.0b0-py37_2": {
"recipe": {}
},
"cylc-flow-report-timings-8.0b0-py37_2": {
"recipe": {}
}
}
####################################################################################
Resource usage summary:
Total time: 0:14:33.9
CPU usage: sys=0:00:00.3, user=0:00:01.6
Maximum memory usage observed: 49.2M
Total disk usage observed (not including envs): 2.7K I only have the old Cylc in my $ cylc --version
7.8.6-7-gf3abe
Then installed cylc-flow (test) kinow@kinow-VirtualBox:~/Development/python/workspace/cylc-flow-feedstock$ cylc --version
8.0b0
(test) kinow@kinow-VirtualBox:~/Development/python/workspace/cylc-flow-feedstock$ cd ~/cylc-suites/five
(test) kinow@kinow-VirtualBox:~/cylc-suites/five$ cylc install
INSTALLED five from /home/kinow/cylc-suites/five -> /home/kinow/cylc-run/five/run6
(test) kinow@kinow-VirtualBox:~/cylc-suites/five$ cylc play --no-detach five/run6
._.
| |
._____._. ._| |_____.
| .___| | | | | .___| The Cylc Workflow Engine [8.0b0]
| !___| !_! | | !___. Copyright (C) 2008-2021 NIWA
!_____!___. |_!_____! & British Crown (Met Office) & Contributors.
.___! |
!_____!
2021-04-09T02:02:43Z INFO - Cold Start 20130808T0000Z
2021-04-09T02:02:43Z INFO - Suite server: url=tcp://kinow-VirtualBox:43062/ pid=101707
2021-04-09T02:02:43Z INFO - Suite publisher: url=tcp://kinow-VirtualBox:43038
2021-04-09T02:02:43Z INFO - Run: (re)start=0 log=1
2021-04-09T02:02:43Z INFO - Cylc version: 8.0b0
2021-04-09T02:02:43Z INFO - Run mode: live
2021-04-09T02:02:43Z INFO - Initial point: 20130808T0000Z
2021-04-09T02:02:43Z INFO - Final point: None
2021-04-09T02:02:44Z INFO - [prep.20130808T0000Z] -submit-num=01, host=kinow-VirtualBox
2021-04-09T02:02:44Z INFO - [prep.20130808T0000Z] -triggered off []
^C2021-04-09T02:02:44Z ERROR -
Traceback (most recent call last):
File "/home/kinow/miniconda3/envs/test/lib/python3.7/asyncio/runners.py", line 43, in run
return loop.run_until_complete(main)
File "/home/kinow/miniconda3/envs/test/lib/python3.7/asyncio/base_events.py", line 571, in run_until_complete
self.run_forever()
File "/home/kinow/miniconda3/envs/test/lib/python3.7/asyncio/base_events.py", line 539, in run_forever
self._run_once()
File "/home/kinow/miniconda3/envs/test/lib/python3.7/asyncio/base_events.py", line 1739, in _run_once
event_list = self._selector.select(timeout)
File "/home/kinow/miniconda3/envs/test/lib/python3.7/selectors.py", line 468, in select
fd_event_list = self._selector.poll(timeout, max_ev)
KeyboardInterrupt
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/kinow/miniconda3/envs/test/lib/python3.7/site-packages/cylc/flow/scheduler.py", line 580, in start_scheduler
await self.main_loop()
File "/home/kinow/miniconda3/envs/test/lib/python3.7/site-packages/cylc/flow/scheduler.py", line 1491, in main_loop
await asyncio.sleep(duration)
File "/home/kinow/miniconda3/envs/test/lib/python3.7/asyncio/tasks.py", line 568, in sleep
return await future
concurrent.futures._base.CancelledError
2021-04-09T02:02:44Z CRITICAL - Suite shutting down Also confirmed I cannot import from EmPy. (test) kinow@kinow-VirtualBox:~/cylc-suites/five$ python -c 'import em'
Traceback (most recent call last):
File "<string>", line 1, in <module>
ModuleNotFoundError: No module named 'em' Then installed And voilà! (test) kinow@kinow-VirtualBox:~/cylc-suites/five$ python -c 'import em'
(test) kinow@kinow-VirtualBox:~/cylc-suites/five$ 🚀 🎉 |
Just needs to be rebased either now or after next release, and then have @hjoliver or @oliver-sanders to use the generated artefacts and confirm I didn't miss anything. I think the number of outputs hasn't changed, but if we want more we just need to copy an existing output and modify accordingly here 👍 |
Checklist
0
(if the version changed)conda-smithy
(Use the phrase@conda-forge-admin, please rerender
in a comment in this PR for automated rerendering)Closes #6
First commit adds missing dependencies from
cylc-flow
master
branch (aiofiles
,pyuv
). Second commit splits the recipe into multiple outputs. Namely:cylc-flow-base
, similar tojupyterhub-base
, andmatplotlib-base
; this-base
appears to be the common pattern for base conda recipescylc-flow-empty
, importscylc-flow-base
, addsempy
cylc-flow-report-timings
, importscylc-flow-base
, addspandas
cylc-flow-main_loop
, importscylc-flow-base
, addspympler
andmatplotlib-base
(this is notpip
/SetupTools package, but the Condamatplotlib-base
that doesn't include GUI libs like Qt)The last item is a combination of all the requirements in the SetupTools dependency groups
main_loop-log_data_store
,main_loop-log_main_loop
, andmain_loop-log_memory
. If others prefer, we can have one output for each dependency group in pip, but I thought it would be easier to maintain the conda recipe this way?WIP as this would trigger a new release. Created PR because I wanted a break from the UI to reset my brain 🤓 and since this would be necessary anyway for the next release (or at least before the final 8 release)