Commit Graph

9 Commits

Author SHA1 Message Date
ef7160fe7c Include default system and arch synonyms
Some projects use different system and arch names in their assets.
Sometimes due to convention or differeing tools and systems. For
example, on macOS 13.6, Python will return the system as `Darwin`.
However, some release assets will be named `macOS` or `macos`. Similarly
`arm64` and `aarch64` are used interchangeably.

This patch adds a few lists of synonymous values such that
release-gitter can make an attempt at matching the intended binary.
These lists of synonyms can be expanded to be more complete as time goes
on.

These synonyms are only used if there is no user provided mapping. In
the case that any user provided mapping exists, the map will be the
sole source of truth. Eg. If you provide a map for `Windows=>windows`,
no other values will be mapped and we won't assume that `Darwin=>macos`
anymore.
2024-05-14 14:15:35 -07:00
a6c839a31e Remove typing.Optional from tests 2024-05-14 14:15:35 -07:00
d48daaab10 Update dev requirements
Make sure mypy and type stubs are installed in dev environment. They
are already used for linting.
2022-10-11 12:42:07 -07:00
ab0603d1b9 Improve content type detection
All checks were successful
continuous-integration/drone/push Build is passing
Cycle through detected content types and use the first supported one.

Adds tests to cover cases of priority and exceptions.
2022-10-11 12:20:57 -07:00
8585380eae Fix missing removeprefix in pseudo_builder.py 2022-06-30 19:48:35 -07:00
3f23ddd3cc Support for python3.7 and python3.8
All checks were successful
continuous-integration/drone/push Build is passing
Added tox targets as well
2022-06-30 15:37:24 -07:00
61496f3b18 Refactor some method names and Python API 2022-03-10 16:46:13 -08:00
94b011799d Add tests for version parsing 2022-01-10 11:50:26 -08:00
f36c0b7ff7 Add additional tar/gzip headers 2022-01-10 11:50:07 -08:00