Commit graph

11 commits

Author SHA1 Message Date
Simon Howard
7dae0bc532 makejson: De-dupe some code
The `freedoom1.wad` and `freedoom2.wad` files are shipped in the same
.zip, so we can just construct the URL once and be done with it.
2025-06-11 15:40:41 -04:00
Simon Howard
f6b286f195 makejson: Add SHA3, BLAKE2b, deprecate MD5
The MD5 hash algorithm has been deprecated industry-wide for many years
now and we should stop using it. As a replacement, add SHA3 and BLAKE2b.
We keep the MD5 hash for now but with a TODO to remove entirely it in a
future release.
2025-06-11 15:40:41 -04:00
Simon Howard
8d62f506ee makejson: Use .startswith, not is
More specifically, the use of `is` here appears to be a bug, since that
operator tests for operator identity. The correct operator to use is
`==`, but in this context using `.startswith()` better expresses what
we're actually checking.
2025-06-11 15:40:39 -04:00
Mike Swanson
79aa1e75b5 scripts/makejson: append newline to the end of the file 2019-09-17 19:25:32 -07:00
Mike Swanson
096f3418a6 scripts makefile: add back leading "v" to hardcoded version string
This reverts the code changes from
2019-09-05T02:46:59Z!mikeonthecomputer@gmail.com.  Keeps the "v" from
appearing in file names, while still being a bit nice to see on the
title screen.
2019-09-17 16:36:00 -07:00
Mike Swanson
6eef9be73a use python3 only for building
Python 2 is very near end-of-life, and Python3-compatible changes to a
few scripts introduced compatibility problems with 2.7 again.  It went
unnoticed for me since my system symlinks "python" to "python3", but
it broke the build on systems where that symlink is still python2.  At
this point in time, I feel it is worth targetting modern Python and
forgetting about 2.7.
2019-09-06 14:43:50 -07:00
Mike Swanson
180a11807b Retire VERSION file, put value into Makefile 2019-09-04 19:46:59 -07:00
Mike Swanson
4701d8f351 Blacken all Python files
Using the black code reformatter, pass it over all our Python files.
This allows for a consistent style across the code base.

Exception: lumps/dmxgus/stats.py, for readability.
2019-09-04 19:36:23 -07:00
Mike Swanson
8835afef5f Copyright date bump and apply SPDX tags.
The tags are shorthand for the license of each file and avoid
copying the full license text into each one (and avoids having
to manually update the dates in each one...).
2017-02-15 16:41:53 -08:00
Mike Swanson
c2e7f4a3ec makejson: fix the download URLs
Zalewa noted that the download URLs were incorrect; the subdirectory
is download, rather than downloads.
2015-06-06 18:05:39 -07:00
Mike Swanson
863a08b0d4 Add json generator script and makefile target 2014-10-07 15:40:12 -07:00