doc/Storage | 4 ++++ go.mod | 2 +- hr-pkg.tmpl | 2 ++ list.go | 15 +++++++++++++++ list.tmpl | 2 +- main.go | 2 +- metadata.go | 1 + refresh.go | 22 ++++++++++++++++++++++ diff --git a/doc/Storage b/doc/Storage index 481073cc7941b5043972839d30f6a46b75a71be567fd6e1573337c86701e1ad9..76d21a944375f8cc34fe702e5995409ce664339fb10c4c3029fdaf8c26e2bfca 100644 --- a/doc/Storage +++ b/doc/Storage @@ -9,12 +9,14 @@ | +- public-package-0.1.1.tar.gz.blake2b_256 | +- public-package-0.2.tar.gz | +- public-package-0.2.tar.gz.sha256 | +- public-package-0.2.tar.gz.blake2b_256 + | +- public-package-0.2.tar.gz.reqpy +-- private-package | +- .internal | +- .metadata.rec | +- private-package-0.1.tar.gz | +- private-package-0.1.tar.gz.sha256 | +- private-package-0.1.tar.gz.blake2b_256 + | +- private-package-0.1.tar.gz.reqpy |... Each directory is a normalized package name. When you try to list non @@ -46,3 +48,5 @@ PyPI. You have to create it manually. Each packages release file has mtime set to its upload time. Package's serial is a sum of mtime's of the directory and .metadata.rec (if it exists). + +Optional .reqpy file contains the PEP-345's Requires-Python string. diff --git a/go.mod b/go.mod index 206ccdae71dc10da4a43e320e33bfb842152e071be262befae6268193cb483dd..03aeb3de87e5ac8188d89e428db1eb47aa1bded40f90be34f32126e7dde21b57 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module go.stargrave.org/gocheese/v5 +module go.stargrave.org/gocheese/v6 go 1.24.0 diff --git a/hr-pkg.tmpl b/hr-pkg.tmpl index 16fb5478078761f682b214767e25c98a2d05dd74bd73468ae15130cb91a48c7b..389f61859f24aeb5ed679c22badc5f1d39245274512ec1d1f5b5af7e1f7105ed 100644 --- a/hr-pkg.tmpl +++ b/hr-pkg.tmpl @@ -58,6 +58,7 @@
| Filename | Version | +Python | Uploaded | Size | Digests | @@ -66,6 +67,7 @@ {{range .Releases}}{{if .Size}}
|---|---|---|---|---|---|
| {{.Filename}} | {{.Version}} + | {{.ReqPy}} | {{.UploadTimeISO8601}} | {{.Size}} |
+ #{{range $a, $d := .Digests}}{{$a}}={{$d}}{{end -}}"{{with .ReqPy}} data-requires-python="{{.}}"{{end}}>{{.Filename}} {{- end}} |