-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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.
- Loading branch information
Showing
17 changed files
with
556 additions
and
381 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
src/packse/templates/index/simple-html/[[ scenarios ]][[ packages ]]{{ name}}/index.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<meta name="pypi:repository-version" content="1.1" /> | ||
</head> | ||
<body> | ||
<h1>Links for {{ name }}</h1> | ||
{{#dists}} | ||
<a | ||
href="../../files/{{file}}#sha256={{sha256}}" | ||
{{#yanked}} | ||
data-yanked="Yanked for testing" | ||
{{/yanked}} | ||
> | ||
{{file}} | ||
</a> | ||
<br /> | ||
{{/dists}} | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<body> | ||
{{#scenarios}} | ||
<!-- scenario: {{ name }} --> | ||
{{#packages}} | ||
<a href="{{name}}/">{{name}}</a><br /> | ||
{{/packages}} {{/scenarios}} | ||
</body> | ||
</html> |
File renamed without changes.
File renamed without changes.
File renamed without changes.
Oops, something went wrong.