File tree Expand file tree Collapse file tree 2 files changed +15
-0
lines changed Expand file tree Collapse file tree 2 files changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -87,3 +87,5 @@ release token commit tag:
87
87
just release-upload-distributions {{ token}} ${datetime } {{ tag}}
88
88
just release-set-latest-release {{ tag}}
89
89
90
+ download-stats :
91
+ build/ venv.*/ bin/ python3 -c ' import pythonbuild.utils as u; u.release_download_statistics()'
Original file line number Diff line number Diff line change @@ -577,3 +577,16 @@ def validate_python_json(info, extension_modules):
577
577
"Missing license annotations for extension %s for library files %s"
578
578
% (name , ", " .join (sorted (local_links )))
579
579
)
580
+
581
+
582
+ def release_download_statistics ():
583
+ with urllib .request .urlopen (
584
+ "https://api.github.com/repos/indygreg/python-build-standalone/releases"
585
+ ) as fh :
586
+ data = json .load (fh )
587
+
588
+ for release in data :
589
+ tag = release ["tag_name" ]
590
+
591
+ for asset in release ["assets" ]:
592
+ print ("%d\t %s\t %s" % (asset ["download_count" ], tag , asset ["name" ]))
You can’t perform that action at this time.
0 commit comments