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

Support mirroring ptex, scie-jump and provided dists. #120

Merged
merged 1 commit into from
Jan 13, 2025

Conversation

jsirois
Copy link
Contributor

@jsirois jsirois commented Jan 8, 2025

Introduce a science download family of commands for mirroring a-scie
binaries and provider distributions to a local directory tree that can
be served up or used directly via file:// URLs in new base_url
configuration options for the corresponding lift manifest entries.

Fixes #113
Fixes #114

@jsirois jsirois force-pushed the issues/114 branch 4 times, most recently from 95fd0a2 to 65c3a57 Compare January 9, 2025 22:23
@jsirois jsirois marked this pull request as ready for review January 11, 2025 22:58
@jsirois jsirois marked this pull request as draft January 11, 2025 22:58
Introduce a `science download` family of commands for mirroring a-scie
binaries and provider distributions to a local directory tree that can
be served up or used directly via `file://` URLs in new `base_url`
configuration options for the corresponding lift manifest entries.

Fixes a-scie#114
@jsirois jsirois changed the title Checkpoint: all download commands working, partial base_url plumbing. Support mirroring ptex, scie-jump and provided dists. Jan 13, 2025
@jsirois jsirois marked this pull request as ready for review January 13, 2025 01:17
@jsirois
Copy link
Contributor Author

jsirois commented Jan 13, 2025

@ubmarco if you have time to take a look / provide feedback, I'd be grateful. Even if the PR is submitted I'll be happy to address further refinement of your use case.

@jsirois
Copy link
Contributor Author

jsirois commented Jan 13, 2025

Reviewers: pretty huge - I don't expect a review - this is FYI that science will shortly support fully offline / corporate fire-walled use in a reasonably convenient way.

@jsirois jsirois merged commit 5a54f9b into a-scie:main Jan 13, 2025
10 checks passed
@jsirois jsirois deleted the issues/114 branch January 13, 2025 01:31
fetches_present = any(
isinstance(file.source, Fetch) and file.source.lazy for file in requested_files
)
if application.ptex or fetches_present:
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It turns out application.ptex is always non-null and so this change caused a ptex binary to be included in every scie, needed or not.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed in #124.

jsirois added a commit that referenced this pull request Jan 13, 2025
Only include it when needed.

The over-eager inclusion originated here in the 0.11.0 release:
#120 (comment)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add offline support similar to that found in insta-science. Release to pypi
1 participant