Skip to content

Have make dist in the web_client package build the client #20195

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

Merged
merged 1 commit into from
May 14, 2025

Conversation

natefoo
Copy link
Member

@natefoo natefoo commented May 9, 2025

Not ideal because of package Makefile divergence. Also you have to use the Makefile, python -m build without it will get you an empty package. Maybe we would prefer to do this entirely in galaxy-release-util (although that does not address the second issue).

How to test the changes?

(Select all options that apply)

  • I've included appropriate automated tests.
  • This is a refactoring of components with existing test coverage.
  • Instructions for manual testing are as follows:
    1. cd packages/web_client
    2. make dist

License

  • I agree to license these and all my past contributions to the core galaxy codebase under the MIT license.

@github-actions github-actions bot added this to the 25.0 milestone May 9, 2025
@dannon
Copy link
Member

dannon commented May 12, 2025

Not a -1 or anything if we want this for this release, but I think you are right that it'd be best to link this to galaxy-release-util with the npm/depot publishing of the client build there.

@natefoo
Copy link
Member Author

natefoo commented May 12, 2025

I just don't like that as-is the package will be empty if you build it without an external util. The same is true of the meta package, although in that case I believe it will update and commit the changes so that future direct builds will work.

@mvdbeek
Copy link
Member

mvdbeek commented May 12, 2025

I do have a version of this that uses hatchet to build the client (but fails to actually put it in the wheel 😆 ), maybe that would be ideal ?

@natefoo
Copy link
Member Author

natefoo commented May 12, 2025

I'm gonna need some context there - I found 3 projects called hatchet, none of which seem relevant to this.

@mvdbeek
Copy link
Member

mvdbeek commented May 12, 2025

that's cause it's called hatch 😆. 2668ad7 is the non-functional WIP

@mvdbeek mvdbeek removed this from the 25.0 milestone May 13, 2025
@mvdbeek
Copy link
Member

mvdbeek commented May 13, 2025

I spent a good bit of time getting the hatch build to work, but no real progress. I don't love the makefile procedure but this is better than nothing.

@mvdbeek
Copy link
Member

mvdbeek commented May 13, 2025

Somehow I can't comment on the diff, but python -m build should probably go to line 67 so that the client build happens before be build the package ?

@natefoo
Copy link
Member Author

natefoo commented May 13, 2025

Make deps (galaxy/web_client/client_build_hash.txt) ensure that does it not?

@mvdbeek
Copy link
Member

mvdbeek commented May 14, 2025

Can you tell i've never done more than copy-paste a makefile ? 😆

@mvdbeek mvdbeek merged commit ec4e4dd into galaxyproject:dev May 14, 2025
11 of 12 checks passed
@galaxyproject galaxyproject deleted a comment from github-actions bot May 14, 2025
@nsoranzo nsoranzo added this to the 25.0 milestone May 14, 2025
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.

5 participants