Commit Graph

38 Commits

Author SHA1 Message Date
583cd2b0bb Fix broken extract all files flag 2024-11-18 11:39:13 -08:00
f9c462b94a Improve debug logging
This also includes one fix that I discovered while improving the
logging. Even if a git url was provided, release_gitter was lookig for a
local package declaration (Cargo.toml) to identify the version.

With this change, the url parsing and the local repo logic are split
allowing for more detailed logging as well as avoiding this potential
bug.
2024-11-18 11:36:40 -08:00
b59e908d84 Bump version to v3.0.1
Some checks reported errors
continuous-integration/drone/push Build was killed
continuous-integration/drone/tag Build is passing
2024-11-11 12:50:55 -08:00
3059b36908 Remove conflicting cli arguments 2024-11-11 12:50:32 -08:00
c1dd243035 Bump version to v3.0.0 because of possible breaking change
Some checks reported errors
continuous-integration/drone/push Build was killed
continuous-integration/drone/tag Build is passing
2024-11-11 12:30:32 -08:00
0bb2277e26 BREAKING: Add the ability to download and extract to a temp dir
All checks were successful
continuous-integration/drone/push Build is passing
This also will execute any --exec scripts from the dest directory
2024-11-11 12:29:17 -08:00
6fe0869e8b Bump version to v2.5.2
Some checks reported errors
continuous-integration/drone/push Build was killed
continuous-integration/drone/tag Build is passing
2024-11-07 16:01:05 -08:00
16fb7ca849 Forgot one spot 2024-11-07 16:00:48 -08:00
bcf65ce10f Bump version to v2.5.1
Some checks reported errors
continuous-integration/drone/push Build was killed
continuous-integration/drone/tag Build is passing
2024-11-07 15:39:47 -08:00
4eead212cf Allow format values in exec calls 2024-11-07 15:39:12 -08:00
b9600cb631 Bump version to v2.5.0
Some checks reported errors
continuous-integration/drone/push Build was killed
continuous-integration/drone/tag Build is passing
2024-11-07 11:41:35 -08:00
35b07836e8 Allow templating values into extract file names
All checks were successful
continuous-integration/drone/push Build is passing
2024-11-06 16:21:19 -08:00
564a120bfe Bump version to v2.4.0
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/tag Build is passing
2024-10-31 13:26:05 -07:00
75c37b4aa7 Bump version to v2.3.0
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/tag Build is passing
2024-05-14 14:15:35 -07:00
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
ddf509e9a4 Bump patch version to 2.2.1
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/tag Build is passing
2023-10-31 20:42:28 -07:00
3eb5fb3d75 Bump version to v2.2.0
Some checks failed
continuous-integration/drone/tag Build is failing
continuous-integration/drone/push Build is passing
2023-10-27 15:32:43 -07:00
ff803dbc31 Use hatch dynamic version so that we can increment before test uploads
Some checks failed
continuous-integration/drone/push Build is failing
2023-10-27 14:25:02 -07:00
b0e327e2cd Remove walrus operator to fix for python3.7
All checks were successful
continuous-integration/drone/push Build is passing
Python 3.7 goes into end of support mode tomorrow, 2023-06-27, but will
likely be in wide use for some time after
2023-06-26 16:14:34 -07:00
ab1f25304b Correct some argument help strings
Some checks failed
continuous-integration/drone/push Build is failing
2023-06-12 11:08:45 -07:00
dfc12ed79e Raise exception if trying to extract a member that doesn't exist 2023-06-12 11:08:21 -07:00
0f46808403 Add verbose flag to print version and asset downloaded
All checks were successful
continuous-integration/drone/push Build is passing
2023-06-05 11:45:22 -07:00
d555284a01 Avoid installing pre-release versions unless explicitly asked
All checks were successful
continuous-integration/drone/push Build is passing
2023-05-22 17:09:55 -07:00
869b0b25b4 Fix passing of version when using download_release 2023-05-22 17:05:28 -07:00
d6c0673a1d Use new type annotations introduced in Python 3.10
All checks were successful
continuous-integration/drone/push Build is passing
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
e6a269af3d Add application/x-tar+xz as a known content type 2022-10-11 12:20:08 -07:00
fe0d9059aa Recognize new zip content type
Some checks reported errors
continuous-integration/drone/tag Build was killed
continuous-integration/drone/push Build is failing
2022-08-31 12:26:41 -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
e046c9a92a Add the ability to format in asset name into post download command 2022-06-08 08:50:20 -07:00
61496f3b18 Refactor some method names and Python API 2022-03-10 16:46:13 -08:00
c8607d0207 Add additional recognized content types for extract
Some checks reported errors
continuous-integration/drone/push Build is passing
continuous-integration/drone/tag Build was killed
2022-03-10 16:44:57 -08:00
f36c0b7ff7 Add additional tar/gzip headers 2022-01-10 11:50:07 -08:00
648784b91c Add path argument
All checks were successful
continuous-integration/drone/push Build is passing
This allows specifying a download directory.

Note: This is rhe directory, not name of the downloaded file(s)
2022-01-09 13:27:06 -08:00
020d9f442e Add new fetching of git tags 2022-01-07 11:08:37 -08:00
c2ae14d48c Update pre-commit and get tests passing 2022-01-05 20:27:37 -08:00
764d0f9e3a Initial working 2022-01-05 17:01:44 -08:00