Commit graph

7 commits

Author SHA1 Message Date
Ori Livneh 4f46b00108 create_pygmentize_bundle: use pypi's JSON API
The old XML-RPC API is considered deprecated and is now rate limited,
such that making two queries in quick succession (like this script does)
hits the limit. Fix by using the JSON API.

While we're here, use the SHA256 sum instead of MD5.

Change-Id: Ib2156649e234d974cc4fc75807a5d140aa99bd44
2020-11-23 14:06:42 -08:00
Ori Livneh c4ea314470 Fix for create_pygmentize_bundle Python 3 compat
We only support Python 3, but we're still looking for a Wheel file with
python_version starting with 'py2'. This is currently OK because
Pygments is released as a py2.py3 wheel, but it will break when they
remove support for Python 2, which will happen eventually.

Change-Id: Ib1a56e6c179af3831446d3234276cfde55fffdcc
2020-02-14 10:12:35 -05:00
Kunal Mehta 4bd5a881ff Fix create_pygmentize_bundle
If the bdist_wheel release was not first, then it would throw an
exception without looking at the other packages.

Change-Id: Iac1f94f1401c4a6a8ec8691a558024800b0e7269
2019-01-09 14:43:22 -08:00
Kunal Mehta e50bce1036 Run Pygments using Python 3
Python 2 is dying, <https://pythonclock.org/>, it's time to move on.

The create_pygmentize_bundle script now requires Python 3 to run, and will
generate a bundle with a python3 shebang. Technically the bundle is still
compatible with Python 2 as long as the shebang is modified.

Bug: T182851
Change-Id: Ifb9d0abf092e2c08d9a638a7dda3bda0bc808789
2017-12-27 18:51:19 -08:00
Kunal Mehta 50ce659e51 Update create_pygmentize_bundle for package changes
On <https://pypi.python.org/pypi/Pygments/2.2.0>, the python_version
field is now "py2.py3".

Change-Id: I07e615b4b25a79c0b8dde4d3ce07b54a746ddbd8
2017-01-29 01:38:57 -08:00
Ori Livneh 99d336d567 Update VERSION file automatically when updating pygmentize bundle
Make the create_pygmentize_bundle script automatically update VERSION.

Change-Id: I48654aa71d9ccc08f866415c1a81b3e80cc95be2
2016-03-03 11:44:01 -08:00
Ori Livneh 648744325c Bundle Pygments 2.0.2
Include Pygments 2.0.2 as an executable zip bundle. Also include a script to
automate the process of creating such bundles and to make it reproducible and
verifiable.

Change-Id: I67e6f804e493f065311164c610dc541a5779654e
2015-06-22 22:54:42 +00:00