Skip to content
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

Move Python packages to the python folder #3301

Merged
merged 5 commits into from
Nov 2, 2021

Conversation

jtpio
Copy link
Member

@jtpio jtpio commented Oct 20, 2021

Since the ipywidgets repo is also a monorepo of Python packages, this change moves the Python packages to the py/:

  • py/ipywidgets
  • py/widgetsnbextension
  • py/jupyterlab_widgets

This came up during the weekly meeting yesterday when discussing the release process and adtopting the release:

While there are still a couple of open questions before being able to adopt the releaser, doing this move should be safer and could be merged before.

@jtpio jtpio marked this pull request as draft October 20, 2021 08:39
@github-actions
Copy link

Binder 👈 Launch a binder notebook on branch jtpio/ipywidgets/python-monorepo

@jtpio jtpio changed the title Move Python packages to the py folder Move Python packages to the py folder Oct 20, 2021
@jtpio
Copy link
Member Author

jtpio commented Oct 21, 2021

All checks are green, and the preview seems to be building fine on ReadTheDocs.

@jtpio jtpio marked this pull request as ready for review October 21, 2021 08:18
readthedocs.yml Show resolved Hide resolved
@jtpio jtpio changed the title Move Python packages to the py folder Move Python packages to the python folder Nov 2, 2021
@jasongrout
Copy link
Member

@jtpio, I fixed a few more places where we needed to update the paths. Do my changes look good to you? In particular, does the dev-install.sh script work for you to install dev versions of the packages?

@jtpio
Copy link
Member Author

jtpio commented Nov 2, 2021

Ah thanks @jasongrout for catching this, changes look good.

It's interesting that we were not calling the ./dev-install.sh script on CI as it should normally have failed otherwise.

It was important to change the workspaces in package.json to point to the new locations so that yarn/lerna could find the new locations.

I also updated the dev-install.sh to be consistent with how it was installing each python package.
@jasongrout
Copy link
Member

I'm rebasing my new devinstall github workflow to be before my fixes to make sure that it fails, then I'll force push my fix again.

@jasongrout
Copy link
Member

Yay, the new dev-install workflow fails without the fix!

@jasongrout jasongrout merged commit 9326d28 into jupyter-widgets:master Nov 2, 2021
@jasongrout
Copy link
Member

Thanks for pushing this forward @jtpio!

@jtpio jtpio deleted the python-monorepo branch November 2, 2021 19:20
@jtpio
Copy link
Member Author

jtpio commented Nov 2, 2021

Nice!

@jtpio jtpio added this to the 8.0 milestone Nov 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants