| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
|
Hmm, should we call the Makefile goal simple-repo (because as per PEP-503 this is a simple repository API) instead of simple-index? But then the pip command line option is called --extra-index-url so the generated folder is an “index” implementing the Simple Repo API. Maybe call the goal extra-index? 🤷🏻♂️ |
Sorry, something went wrong.
|
@behnazh the generated package/index.html file in the simple index <!-- https://peps.python.org/pep-0503/ -->
<!DOCTYPE html>
<html>
<head><meta name='pypi:repository-version' content='1.3'></head>
<body>
<a href='package-2.16.0-py3-none-any.whl'>package-2.16.0-py3-none-any.whl</a>
<a href='package-2.16.0.tar.gz'>package-2.16.0.tar.gz</a>
</body>
</html>does not make use of digest hashes as recommended in the specification:
We should probably add that and I think that would look something like this: <a href='package-2.16.0-py3-none-any.whl#sha256=82a57ea6a6ec2cea54501b4798dd4684b3666fde92ba1bb524f37791b1ef810b'>package-2.16.0-py3-none-any.whl</a>
<a href='package-2.16.0.tar.gz#sha256=f75bb93f5b3097a3c8f93c3bc4bc357fc17e1db266fd2de04dab76c236e247c9'>package-2.16.0.tar.gz</a> |
Sorry, something went wrong.
|
Thanks for this PR, it's great.
|
Sorry, something went wrong.
|
Can we test this feature somehow in _build.yaml GitHub Action? |
Sorry, something went wrong.
Hmm… you mean to use the simple index 🤔 Probably if we would add a Docker file? Hmm… |
Sorry, something went wrong.
I don't think you would need to use a Docker file. You can test it in a separate job perhaps. |
Sorry, something went wrong.
|
@behnazh I think we should/need to document this “feature” in the README too, huh? |
Sorry, something went wrong.
…patible Simple Index directory inside the dist
| Back | FazBrowse Home | New Git URL |
As discussed with @behnazh this changes makes available a PEP-503 compatible Simple Repository directory inside of our dist/ directory.
We can now use pip and its --extra-index-url argument to install packages, including support for their package hashes. For example to install the binary package (pip’s default):
or the source package (purge the pip cache first!):
or from the generated requirements file using package hashes:
Should we mention/document this in the README, or is the comment in the Makefile enough?