astral-sh / packse

Python packaging scenarios
Apache License 2.0
99 stars 10 forks source link

Add static index generation #136

Closed zanieb closed 6 months ago

zanieb commented 6 months ago

Adds the ability to generate a static index we can then host on GitHub pages e.g. https://astral-sh.github.io/packse/8abfdb3/simple-html/

❯ uv pip install example-a --extra-index-url https://astral-sh.github.io/packse/8abfdb3/simple-html/
Resolved 2 packages in 1.07s
Downloaded 2 packages in 24ms
Installed 2 packages in 5ms
 + example-a==1.0.0
 + example-b==2.0.0

Available as packse index build, we don't re-use existing distributions since we need the metadata from the scenarios. I think this could replace CodeArtifact and Test PyPI. Only supports the HTML index right now but we could probably generate a static JSON index too.