Skip to content

Commit

Permalink
PEP 503 simple repository
Browse files Browse the repository at this point in the history
  • Loading branch information
moriyoshi committed Dec 31, 2024
0 parents commit ffc5d16
Show file tree
Hide file tree
Showing 4 changed files with 107 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
build-index-html.py
target/
.DS_Store
Thumbs.db
42 changes: 42 additions & 0 deletions build-index-html.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
import pathlib
import hashlib
import html
from urllib.parse import quote

TEMPLATE = """
<!DOCTYPE html>
<html>
<head>
<meta name="pypi:repository-version" content="1.0">
<title>Links for tantivy_oc_fork</title>
</head>
</html>
<body>
<h1>Links for tantivy_oc_fork</h1>
{links}
</body>
</html>
"""

DOWNLOAD_BASE_URL_TEMPLATE = "https://github.com/opencollector/tantivy-py/releases/download/{release}/{file}#sha256={digest}"
LINK_TEMPLATE = """<a href="{url}">{name}</a>"""

RELEASE = "oc-0.16.0-dev0"

print(
TEMPLATE.format(
links="\n ".join(
LINK_TEMPLATE.format(
url=html.escape(
DOWNLOAD_BASE_URL_TEMPLATE.format(
release=quote(RELEASE),
file=quote(f.name),
digest=quote(hashlib.sha256(f.read_bytes()).hexdigest()),
),
),
name=html.escape(f.name),
)
for f in sorted(pathlib.Path("target/wheels").glob("*.whl"))
)
)
)
10 changes: 10 additions & 0 deletions pep503/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<!DOCTYPE html>
<html>
<head>
<meta name="pypi:repository-version" content="1.0">
<title>Simple index</title>
</head>
<body>
<a href="tantivy-oc-fork">tantivy_oc_fork</a>
</body>
</html>
51 changes: 51 additions & 0 deletions pep503/tantivy-oc-fork/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@

<!DOCTYPE html>
<html>
<head>
<meta name="pypi:repository-version" content="1.0">
<title>Links for tantivy_oc_fork</title>
</head>
</html>
<body>
<h1>Links for tantivy_oc_fork</h1>
<a href="https://github.com/opencollector/tantivy-py/releases/download/oc-v0.14.0/tantivy_oc_fork-0.14.0-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.whl#sha256=5198d4ce3a755c602017ed17b719836063ecbf8574723d01ab2c16e35b438887">tantivy_oc_fork-0.14.0-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.whl</a>
<a href="https://github.com/opencollector/tantivy-py/releases/download/oc-v0.14.0/tantivy_oc_fork-0.14.0-cp36-cp36m-macosx_10_7_x86_64.whl#sha256=db87e630ec0ea5c1c38144684a0f30caec45d7b785cb00e88b878a353c2d85f5">tantivy_oc_fork-0.14.0-cp36-cp36m-macosx_10_7_x86_64.whl</a>
<a href="https://github.com/opencollector/tantivy-py/releases/download/oc-v0.14.0/tantivy_oc_fork-0.14.0-cp37-cp37m-macosx_10_7_x86_64.whl#sha256=046ecd9586a17af2e94f304da8887c4a31635068090e30e129621e43ba44577f">tantivy_oc_fork-0.14.0-cp37-cp37m-macosx_10_7_x86_64.whl</a>
<a href="https://github.com/opencollector/tantivy-py/releases/download/oc-v0.14.0/tantivy_oc_fork-0.14.0-cp37-cp37m-manylinux2014_aarch64.whl#sha256=dba2fd40d483f2f8aa672b9b379b7372bfbaa4a1a3e1cc1fd2049249f5b42235">tantivy_oc_fork-0.14.0-cp37-cp37m-manylinux2014_aarch64.whl</a>
<a href="https://github.com/opencollector/tantivy-py/releases/download/oc-v0.14.0/tantivy_oc_fork-0.14.0-cp37-cp37m-manylinux_2_5_x86_64.manylinux1_x86_64.whl#sha256=08f058a4b082bc70da1a12baec3cb68ee8fa254be489152ec285225b0fbc9eb7">tantivy_oc_fork-0.14.0-cp37-cp37m-manylinux_2_5_x86_64.manylinux1_x86_64.whl</a>
<a href="https://github.com/opencollector/tantivy-py/releases/download/oc-v0.14.0/tantivy_oc_fork-0.14.0-cp38-cp38-macosx_10_7_x86_64.whl#sha256=467688a38ea635952b37933dd42bc66ed2c2e6af3903123a1d2e250f02bd80e7">tantivy_oc_fork-0.14.0-cp38-cp38-macosx_10_7_x86_64.whl</a>
<a href="https://github.com/opencollector/tantivy-py/releases/download/oc-v0.14.0/tantivy_oc_fork-0.14.0-cp38-cp38-manylinux2014_aarch64.whl#sha256=c2d014542fc3165916252ebf1288c3bbeccf396995807a34a466cdcef014a361">tantivy_oc_fork-0.14.0-cp38-cp38-manylinux2014_aarch64.whl</a>
<a href="https://github.com/opencollector/tantivy-py/releases/download/oc-v0.14.0/tantivy_oc_fork-0.14.0-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.whl#sha256=01ba27780a202dd756e2e839d007f8257470db3ad185b668f3db0943743f209c">tantivy_oc_fork-0.14.0-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.whl</a>
<a href="https://github.com/opencollector/tantivy-py/releases/download/oc-v0.14.0/tantivy_oc_fork-0.14.0-cp39-cp39-macosx_10_7_x86_64.whl#sha256=d3dab42e29d8fc4d6a6c57cada3378768899ab36b4a2a8eac2fba02730ec8cdd">tantivy_oc_fork-0.14.0-cp39-cp39-macosx_10_7_x86_64.whl</a>
<a href="https://github.com/opencollector/tantivy-py/releases/download/oc-v0.14.0/tantivy_oc_fork-0.14.0-cp39-cp39-manylinux2014_aarch64.whl#sha256=8aaa00923a20ee134ac605305879ef11cc0ec2a6930d36500ee094f69266e03b">tantivy_oc_fork-0.14.0-cp39-cp39-manylinux2014_aarch64.whl</a>
<a href="https://github.com/opencollector/tantivy-py/releases/download/oc-v0.14.0/tantivy_oc_fork-0.14.0-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.whl#sha256=5a875fd26f060578e998cbc6add247f872d1b9763b0dd305188d6a08cc8d3e0d">tantivy_oc_fork-0.14.0-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.whl</a>
<a href="https://github.com/opencollector/tantivy-py/releases/download/oc-0.16.0-dev0/tantivy_oc_fork-0.16.0.dev0-cp310-cp310-macosx_10_12_x86_64.whl#sha256=75b068cfb62fb1b471ed9c17e6cb8902118907a26d37ac1efabcb24342db242a">tantivy_oc_fork-0.16.0.dev0-cp310-cp310-macosx_10_12_x86_64.whl</a>
<a href="https://github.com/opencollector/tantivy-py/releases/download/oc-0.16.0-dev0/tantivy_oc_fork-0.16.0.dev0-cp310-cp310-macosx_10_13_x86_64.whl#sha256=aa9955b9ceca3f3d03826256564e0b97f9da33c2d261d2bb5488004ea32f4f38">tantivy_oc_fork-0.16.0.dev0-cp310-cp310-macosx_10_13_x86_64.whl</a>
<a href="https://github.com/opencollector/tantivy-py/releases/download/oc-0.16.0-dev0/tantivy_oc_fork-0.16.0.dev0-cp310-cp310-macosx_10_14_x86_64.whl#sha256=91c47c5a379fe5f793a004380118a0f1ddd2d335b840b6c9cf44507efe64e950">tantivy_oc_fork-0.16.0.dev0-cp310-cp310-macosx_10_14_x86_64.whl</a>
<a href="https://github.com/opencollector/tantivy-py/releases/download/oc-0.16.0-dev0/tantivy_oc_fork-0.16.0.dev0-cp310-cp310-macosx_10_7_x86_64.whl#sha256=302d22c92befad7fc985089c97f997c24b2057a58c04304ce56b1fc43e4649e5">tantivy_oc_fork-0.16.0.dev0-cp310-cp310-macosx_10_7_x86_64.whl</a>
<a href="https://github.com/opencollector/tantivy-py/releases/download/oc-0.16.0-dev0/tantivy_oc_fork-0.16.0.dev0-cp310-cp310-manylinux_2_34_aarch64.whl#sha256=ff80f58c04f6a5ace570a6e6f4f10676fa2df93658fe02910cc6f8fa8bd8a534">tantivy_oc_fork-0.16.0.dev0-cp310-cp310-manylinux_2_34_aarch64.whl</a>
<a href="https://github.com/opencollector/tantivy-py/releases/download/oc-0.16.0-dev0/tantivy_oc_fork-0.16.0.dev0-cp310-cp310-manylinux_2_34_x86_64.whl#sha256=99899d0bd31f847050627b6f0c6f356fd31a39aa469b339b0e79b96f3f1a23cb">tantivy_oc_fork-0.16.0.dev0-cp310-cp310-manylinux_2_34_x86_64.whl</a>
<a href="https://github.com/opencollector/tantivy-py/releases/download/oc-0.16.0-dev0/tantivy_oc_fork-0.16.0.dev0-cp311-cp311-macosx_10_12_x86_64.whl#sha256=4e846aeff9b7c15527be9e24afbf6ce0dbccbf74091cb41df4f33bb138200224">tantivy_oc_fork-0.16.0.dev0-cp311-cp311-macosx_10_12_x86_64.whl</a>
<a href="https://github.com/opencollector/tantivy-py/releases/download/oc-0.16.0-dev0/tantivy_oc_fork-0.16.0.dev0-cp311-cp311-macosx_10_13_x86_64.whl#sha256=a776dc9441b5c400b6d27f8c8de20b6792a0f9a754ce35ec08a56414962fe72c">tantivy_oc_fork-0.16.0.dev0-cp311-cp311-macosx_10_13_x86_64.whl</a>
<a href="https://github.com/opencollector/tantivy-py/releases/download/oc-0.16.0-dev0/tantivy_oc_fork-0.16.0.dev0-cp311-cp311-macosx_10_14_x86_64.whl#sha256=65ea55d52d91ef8bbdc3e575b0f7e4ec1dc250f8045c6b5ce13c83e1514530dd">tantivy_oc_fork-0.16.0.dev0-cp311-cp311-macosx_10_14_x86_64.whl</a>
<a href="https://github.com/opencollector/tantivy-py/releases/download/oc-0.16.0-dev0/tantivy_oc_fork-0.16.0.dev0-cp311-cp311-macosx_10_7_x86_64.whl#sha256=0f0b3e2da5927c7242f16a042ed35dd3bf4d377a3f14b0df432a9e9564b3219c">tantivy_oc_fork-0.16.0.dev0-cp311-cp311-macosx_10_7_x86_64.whl</a>
<a href="https://github.com/opencollector/tantivy-py/releases/download/oc-0.16.0-dev0/tantivy_oc_fork-0.16.0.dev0-cp311-cp311-manylinux_2_34_aarch64.whl#sha256=45b9435cf22d0c3ea2aadcb8f08405a059abaec12d2428c635fd748f6a861569">tantivy_oc_fork-0.16.0.dev0-cp311-cp311-manylinux_2_34_aarch64.whl</a>
<a href="https://github.com/opencollector/tantivy-py/releases/download/oc-0.16.0-dev0/tantivy_oc_fork-0.16.0.dev0-cp311-cp311-manylinux_2_34_x86_64.whl#sha256=3f5547b869ed5a863dfa74c8e9fa1fb1e472359aa103dbbaad415bcbe80fd698">tantivy_oc_fork-0.16.0.dev0-cp311-cp311-manylinux_2_34_x86_64.whl</a>
<a href="https://github.com/opencollector/tantivy-py/releases/download/oc-0.16.0-dev0/tantivy_oc_fork-0.16.0.dev0-cp312-cp312-macosx_10_12_x86_64.whl#sha256=52519d1d7761421e8da17fc53eb7d82e7d3ae2532a191cbb74c16dbee01fa061">tantivy_oc_fork-0.16.0.dev0-cp312-cp312-macosx_10_12_x86_64.whl</a>
<a href="https://github.com/opencollector/tantivy-py/releases/download/oc-0.16.0-dev0/tantivy_oc_fork-0.16.0.dev0-cp312-cp312-macosx_10_13_x86_64.whl#sha256=6784d66c25f147918f5c130418b509653fbd474ca3fdc4881b1105738025ebe1">tantivy_oc_fork-0.16.0.dev0-cp312-cp312-macosx_10_13_x86_64.whl</a>
<a href="https://github.com/opencollector/tantivy-py/releases/download/oc-0.16.0-dev0/tantivy_oc_fork-0.16.0.dev0-cp312-cp312-macosx_10_14_x86_64.whl#sha256=7cc8612acb6944347b0cba984d6b8c9bde6b7c8e2d3407da933dfbf7847a149a">tantivy_oc_fork-0.16.0.dev0-cp312-cp312-macosx_10_14_x86_64.whl</a>
<a href="https://github.com/opencollector/tantivy-py/releases/download/oc-0.16.0-dev0/tantivy_oc_fork-0.16.0.dev0-cp312-cp312-manylinux_2_34_aarch64.whl#sha256=bfc63bed7a7f79d6cb719018086f6b57911eef14c1da33ba4acef786103efd91">tantivy_oc_fork-0.16.0.dev0-cp312-cp312-manylinux_2_34_aarch64.whl</a>
<a href="https://github.com/opencollector/tantivy-py/releases/download/oc-0.16.0-dev0/tantivy_oc_fork-0.16.0.dev0-cp312-cp312-manylinux_2_34_x86_64.whl#sha256=7dd88197e370025f151cb2641278e61708d98a528d15302855bf98fc45393966">tantivy_oc_fork-0.16.0.dev0-cp312-cp312-manylinux_2_34_x86_64.whl</a>
<a href="https://github.com/opencollector/tantivy-py/releases/download/oc-0.16.0-dev0/tantivy_oc_fork-0.16.0.dev0-cp313-cp313-macosx_10_12_x86_64.whl#sha256=8d5032a688a0126bf1dd8051db72078cc55e8dc1fa4c9c0306fe3cae572e2038">tantivy_oc_fork-0.16.0.dev0-cp313-cp313-macosx_10_12_x86_64.whl</a>
<a href="https://github.com/opencollector/tantivy-py/releases/download/oc-0.16.0-dev0/tantivy_oc_fork-0.16.0.dev0-cp313-cp313-macosx_10_13_x86_64.whl#sha256=2ad2e9f8ddb40504ac271a7e4fd40863f512213478d92bc536bc181132c355ae">tantivy_oc_fork-0.16.0.dev0-cp313-cp313-macosx_10_13_x86_64.whl</a>
<a href="https://github.com/opencollector/tantivy-py/releases/download/oc-0.16.0-dev0/tantivy_oc_fork-0.16.0.dev0-cp313-cp313-macosx_10_14_x86_64.whl#sha256=77698d29a5731550d1a2f3c76da9100e503ab5dc520fe0f225f73cf636a9b399">tantivy_oc_fork-0.16.0.dev0-cp313-cp313-macosx_10_14_x86_64.whl</a>
<a href="https://github.com/opencollector/tantivy-py/releases/download/oc-0.16.0-dev0/tantivy_oc_fork-0.16.0.dev0-cp313-cp313-manylinux_2_34_aarch64.whl#sha256=96e92785f3587881ca9810196de0a15b58bb48a519fdc450b5fb6bab6e2b64c7">tantivy_oc_fork-0.16.0.dev0-cp313-cp313-manylinux_2_34_aarch64.whl</a>
<a href="https://github.com/opencollector/tantivy-py/releases/download/oc-0.16.0-dev0/tantivy_oc_fork-0.16.0.dev0-cp313-cp313-manylinux_2_34_x86_64.whl#sha256=e55e319b1e2e5c6b2e56248c1707bff539048be7404fa17b1b8b2643fd3f7b0e">tantivy_oc_fork-0.16.0.dev0-cp313-cp313-manylinux_2_34_x86_64.whl</a>
<a href="https://github.com/opencollector/tantivy-py/releases/download/oc-0.16.0-dev0/tantivy_oc_fork-0.16.0.dev0-cp313-cp313t-macosx_10_12_x86_64.whl#sha256=e32f2892858d5edd65bb22980ea8d7af34772bad0c35e6f6b673eadb9513ce24">tantivy_oc_fork-0.16.0.dev0-cp313-cp313t-macosx_10_12_x86_64.whl</a>
<a href="https://github.com/opencollector/tantivy-py/releases/download/oc-0.16.0-dev0/tantivy_oc_fork-0.16.0.dev0-cp313-cp313t-macosx_10_13_x86_64.whl#sha256=4d1b9008dca11d0114def1750a40cc67c32a8088ed81fc35f5d97085ac0266fe">tantivy_oc_fork-0.16.0.dev0-cp313-cp313t-macosx_10_13_x86_64.whl</a>
<a href="https://github.com/opencollector/tantivy-py/releases/download/oc-0.16.0-dev0/tantivy_oc_fork-0.16.0.dev0-cp313-cp313t-macosx_10_14_x86_64.whl#sha256=f2c1e8ccdff12cf26265dc94c70d42032eff756bab985f0b6eacd4e2c08f388b">tantivy_oc_fork-0.16.0.dev0-cp313-cp313t-macosx_10_14_x86_64.whl</a>
<a href="https://github.com/opencollector/tantivy-py/releases/download/oc-0.16.0-dev0/tantivy_oc_fork-0.16.0.dev0-cp313-cp313t-manylinux_2_34_aarch64.whl#sha256=4f7601fb8594f898ba05ebcdb1f089fd1cd90b086c9bb1283ee8a03089b6fe10">tantivy_oc_fork-0.16.0.dev0-cp313-cp313t-manylinux_2_34_aarch64.whl</a>
<a href="https://github.com/opencollector/tantivy-py/releases/download/oc-0.16.0-dev0/tantivy_oc_fork-0.16.0.dev0-cp313-cp313t-manylinux_2_34_x86_64.whl#sha256=275675665412cf4ec457f6d2d2562be081c9431dfbfd4ee8d4142d8f6d60da1c">tantivy_oc_fork-0.16.0.dev0-cp313-cp313t-manylinux_2_34_x86_64.whl</a>
</body>
</html>

0 comments on commit ffc5d16

Please sign in to comment.