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

Add strict and offline index support #36

Merged
merged 7 commits into from
Dec 18, 2023
Merged

Add strict and offline index support #36

merged 7 commits into from
Dec 18, 2023

Conversation

zanieb
Copy link
Member

@zanieb zanieb commented Dec 18, 2023

Creates two separate indexes, packages/local and packages/all instead of just packages/all. packages/all inherits from root/pypi and packages/local. packages/local does not allow packages to be downloaded from PyPI.

All of the "build" dependencies must be published to packages/local for it to be used to install source distributions. This pull request vendors all of the needed dependencies.

Additionally, there is an --offline flag for packse index up which does not allow any PyPI access. This is kind of nice when you are not planning on using fallback to PyPI as it prevents the devpi server from doing any additional indexing of the real PyPI.

This was tested by installing a scenario published to the strict and offline indexes.

Base automatically changed from zb/serve to main December 18, 2023 21:58

Verified

This commit was signed with the committer’s verified signature.
r-n-o Arnaud

Verified

This commit was signed with the committer’s verified signature.
r-n-o Arnaud
@zanieb
Copy link
Member Author

zanieb commented Dec 18, 2023

The vendored deps are 2.7MB with 2.1 of that being the setuptools sdist. Seems okay for now.

@zanieb
Copy link
Member Author

zanieb commented Dec 18, 2023

Instead of vendoring, we could download with pip and publish to devpi but this seems simpler for now.

@zanieb zanieb merged commit 2eb94c7 into main Dec 18, 2023
3 checks passed
@zanieb zanieb deleted the zb/offline branch December 18, 2023 22:32
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.

None yet

1 participant