Sam Ford 270313f649
Pypi: Restore regex support
We recently updated the `Pypi` strategy to use the PyPI JSON API and
the default strategy behavior no longer relies on a regex, so the initial implementation didn't include regex handling. This restores
support for a `livecheck` block regex by updating the `DEFAULT_BLOCK`
logic to handle an optional regex. This allows us to use a regex to
omit parts of the `info.version` value without having to duplicate
the default block logic in a `strategy` block only to use a regex.

This isn't currently necessary for any existing formulae using the
`Pypi` strategy but we have a few that needed a custom regex with
the previous strategy approach, so they may need this functionality
in the future. Besides that, restoring regex support to `Pypi`
ensures that `livecheck`/`strategy` blocks work in a fairly
consistent manner across strategies.
2024-12-08 14:29:44 -05:00
..
2024-09-16 05:46:14 +01:00
2024-11-22 21:04:51 -08:00
2024-10-02 10:03:12 -07:00
2024-12-08 14:29:44 -05:00
2024-08-22 21:48:12 -07:00
2024-12-05 14:26:30 -05:00
2024-08-10 17:52:26 -07:00
2024-07-14 08:49:39 -04:00
2024-10-02 10:03:12 -07:00
2024-09-04 22:54:20 +02:00
2024-07-09 20:01:43 -04:00