-
Notifications
You must be signed in to change notification settings - Fork 51
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
Implements Tethys Reactpy App Scaffold #1081
Conversation
…ike original tethys gizmo added on_click, on_change, and on_mouse_over kwargs
There were a few bugs found when installing from a fresh test, namely: * The version of daphne installed by default didn't meet requirements * There was some experimental reactpy core development that I never backed out
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@shawncrawley just a couple of minor changes (I've added suggestions that you can just commit if you agree with them).
I'm very excited about the reactpy addition. The Path
changes are all internal, but everything is converted back to a string in return values. I think this is the right call for now (to ensure we aren't breaking anything). However, in Tethys 5.0 I think we should switch and return Path
objects wherever possible.
Co-authored-by: sdc50 <[email protected]>
Co-authored-by: sdc50 <[email protected]>
Adds tests for remaining tethys_component reactpy files Adds reactpy-django to standard install Fixes broken support for variable in url for pages Adds react-loading-overlay and react-map-gl to built-in ComponentLibrary support Fixes buggy use_workspace
@swainn @sdc50 I've got everything done and passing tests except oddly the "Tethys-CI / Conda Build (ubuntu-latest)" test run. Any thoughts there on what could be going on? I have reactpy-django now installed by default, which did throw a wrench in some of the testing. Maybe it's related here? But oddly only this one build... |
@gagelarsen Do you have any idea on the failing "Conda Build" GitHub workflow? |
The authors field cannot be present if name and email are blank, so they are now conditional upon those values being filled
I know the issue: it's definitely being caused by |
tethys_cli/scaffold_templates/app_templates/reactpy/pyproject.toml_tmpl
Outdated
Show resolved
Hide resolved
Co-authored-by: Nathan Swain <[email protected]>
- pyproject.toml added to all scaffolds - reactpy_base.html refactored to extend app_base.html - minor cleanups and refactors
- Reverted last commit's swap of argparse.Namespace for mock.MagicMock since mock requires the "name" argument, which isn't allowed by MagicMock on initialization - Added reactpy to dependencies in environment.yml
It looks like the only thing that remains is getting |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approve, barring conda package and all comments addressed.
Since reactpy and reactpy-django are not yet available on conda-forge, they were added as pip dependencies. However, that was preventing the tethys coda package from building successfully. Thus, we're backing that out for now until they can be added to conda-forge
Path.walk didn't exist until Python 3.12, so to support those versions of Python, I had to downgrade back to os.walk.
…thys into tethys-reactpy
Description
This merge request implements a Tethys ReactPy App scaffold. I will flesh out this description soon with all of the ins and outs of it. I just wanted to finally get this in as a draft pull request to get more eyes on it.
Changes Made to Code:
Related
Additional Notes
Quality Checks