Compare commits
16 Commits
deb/bookwo
...
deb/trixie
| Author | SHA1 | Date | |
|---|---|---|---|
| 8381514640 | |||
| a9168d8851 | |||
| f7b54b9605 | |||
| fa8f590019 | |||
| 89179e49e7 | |||
| 47b91a1e42 | |||
| 4778c6f362 | |||
| 2022da671e | |||
| 25af28e97c | |||
| 02cabfeb1a | |||
| 54b54b42d7 | |||
| 21799aa247 | |||
| c5c5598fb7 | |||
| 9e47cb72d5 | |||
| ff2286f44b | |||
| d982f42ae7 |
31
Cargo.toml
31
Cargo.toml
@@ -1,23 +1,18 @@
|
||||
[package]
|
||||
name = "gt-tool"
|
||||
version = "3.0.0"
|
||||
version = "3.0.1"
|
||||
edition = "2024"
|
||||
license = "GPL-3.0-only"
|
||||
description = "CLI tools for interacting with the Gitea API. Mainly for attaching files to releases."
|
||||
# homepage = "" I have no website for a project home page :(
|
||||
repository = "https://git.gelvin.dev/robert/gt-tool"
|
||||
readme = "README.md"
|
||||
|
||||
[dependencies]
|
||||
clap = { version = "4.0.7", features = ["derive", "env"] }
|
||||
colored = "2.0.0"
|
||||
itertools = "0.10.0"
|
||||
reqwest = { version = "0.11.13", features = ["json", "stream", "multipart"] }
|
||||
serde = { version = "1.0.152", features = ["derive"] }
|
||||
tokio = { version = "1.24.2", features = ["macros", "rt-multi-thread"] }
|
||||
toml = "0.5"
|
||||
|
||||
# Packages available in Debian (Sid)
|
||||
# clap = "4.5.23"
|
||||
# reqwest = "0.12.15"
|
||||
# tokio = "1.43.1"
|
||||
|
||||
# Debian (Bookworm)
|
||||
# clap = "4.0.32"
|
||||
# reqwest = "0.11.13"
|
||||
# tokio = "1.24.2"
|
||||
clap = { version = "4.5.23", features = ["derive", "env"] }
|
||||
colored = "2.2.0"
|
||||
itertools = "0.13.0"
|
||||
reqwest = { version = "0.12.15", features = ["json", "stream", "multipart"] }
|
||||
serde = { version = "1.0.217", features = ["derive"] }
|
||||
tokio = { version = "1.43.1", features = ["macros", "rt-multi-thread"] }
|
||||
toml = "0.8.19"
|
||||
|
||||
1
debian/cargo-checksum.json
vendored
Normal file
1
debian/cargo-checksum.json
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"package":"62e0ece55a4e0150ab3a3f7f5299e6eb113134975100cddde5a68dfcbb5e1a5c","files":{}}
|
||||
23
debian/changelog
vendored
23
debian/changelog
vendored
@@ -1,3 +1,26 @@
|
||||
gt-tool (3.0.1-2) unstable; urgency=medium
|
||||
|
||||
* Fix: debian/copyright was using old package name.
|
||||
* Add a cargo-checksum.json, remove its fake
|
||||
* Remove bogus pre-step inserts
|
||||
* Strip out all the imports and exports
|
||||
* Drop a copyright notice (!)
|
||||
* Adopt debian/control contents from debcargo output
|
||||
* Adopt debcargo auto-gen'd testing stuff
|
||||
|
||||
-- Robert Garrett <robertgarrett404@gmail.com> Thu, 13 Nov 2025 22:07:35 -0600
|
||||
|
||||
gt-tool (3.0.1-1) unstable; urgency=medium
|
||||
|
||||
* Update dependency versions for Debian 13 "Trixie"
|
||||
* Add metadata required for publishing to crates.io
|
||||
* Remove the comments tracking Debian-specific deps
|
||||
* Mark v3.0.1 patch
|
||||
* Update gbp.conf debian-branch to "deb/trixie"
|
||||
* Drop entirety of old patch set
|
||||
|
||||
-- Robert Garrett <robertgarrett404@gmail.com> Thu, 13 Nov 2025 17:12:26 -0600
|
||||
|
||||
gt-tool (3.0.0-1) unstable; urgency=medium
|
||||
|
||||
* Make the README title singular
|
||||
|
||||
73
debian/control
vendored
73
debian/control
vendored
@@ -1,28 +1,83 @@
|
||||
Source: gt-tool
|
||||
Maintainer: Robert Garrett <robertgarrett404@gmail.com>
|
||||
Section: misc
|
||||
Section: rust
|
||||
Priority: optional
|
||||
Standards-Version: 4.6.2
|
||||
Build-Depends:
|
||||
debhelper-compat (= 13),
|
||||
dh-cargo,
|
||||
librust-clap-dev,
|
||||
librust-colored-dev,
|
||||
librust-itertools-dev,
|
||||
librust-reqwest-dev,
|
||||
librust-serde-dev,
|
||||
librust-tokio-dev,
|
||||
librust-toml-dev,
|
||||
dh-sequence-cargo
|
||||
Build-Depends-Arch:
|
||||
cargo:native,
|
||||
rustc:native,
|
||||
libstd-rust-dev,
|
||||
librust-clap-4+default-dev (>= 4.5.23-~~),
|
||||
librust-clap-4+derive-dev (>= 4.5.23-~~),
|
||||
librust-clap-4+env-dev (>= 4.5.23-~~),
|
||||
librust-colored-2+default-dev (>= 2.2.0-~~),
|
||||
librust-itertools-0.13+default-dev,
|
||||
librust-reqwest-0.12+default-dev (>= 0.12.15-~~),
|
||||
librust-reqwest-0.12+json-dev (>= 0.12.15-~~),
|
||||
librust-reqwest-0.12+multipart-dev (>= 0.12.15-~~),
|
||||
librust-reqwest-0.12+stream-dev (>= 0.12.15-~~),
|
||||
librust-serde-1+default-dev (>= 1.0.217-~~),
|
||||
librust-serde-1+derive-dev (>= 1.0.217-~~),
|
||||
librust-tokio-1+default-dev (>= 1.43.1-~~),
|
||||
librust-tokio-1+macros-dev (>= 1.43.1-~~),
|
||||
librust-tokio-1+rt-multi-thread-dev (>= 1.43.1-~~),
|
||||
librust-toml-0.8+default-dev (>= 0.8.19-~~)
|
||||
Homepage: https://git.gelvin.dev/robert/gt-tool
|
||||
Vcs-Git: https://git.gelvin.dev/robert/gt-tool
|
||||
Vcs-Browser: https://git.gelvin.dev/robert/gt-tool
|
||||
Rules-Requires-Root: no
|
||||
X-Cargo-Crate: gt-tool
|
||||
|
||||
Package: librust-gt-tool-dev
|
||||
Architecture: any
|
||||
Multi-Arch: same
|
||||
Depends:
|
||||
${misc:Depends},
|
||||
librust-clap-4+default-dev (>= 4.5.23-~~),
|
||||
librust-clap-4+derive-dev (>= 4.5.23-~~),
|
||||
librust-clap-4+env-dev (>= 4.5.23-~~),
|
||||
librust-colored-2+default-dev (>= 2.2.0-~~),
|
||||
librust-itertools-0.13+default-dev,
|
||||
librust-reqwest-0.12+default-dev (>= 0.12.15-~~),
|
||||
librust-reqwest-0.12+json-dev (>= 0.12.15-~~),
|
||||
librust-reqwest-0.12+multipart-dev (>= 0.12.15-~~),
|
||||
librust-reqwest-0.12+stream-dev (>= 0.12.15-~~),
|
||||
librust-serde-1+default-dev (>= 1.0.217-~~),
|
||||
librust-serde-1+derive-dev (>= 1.0.217-~~),
|
||||
librust-tokio-1+default-dev (>= 1.43.1-~~),
|
||||
librust-tokio-1+macros-dev (>= 1.43.1-~~),
|
||||
librust-tokio-1+rt-multi-thread-dev (>= 1.43.1-~~),
|
||||
librust-toml-0.8+default-dev (>= 0.8.19-~~)
|
||||
Provides:
|
||||
librust-gt-tool+default-dev (= ${binary:Version}),
|
||||
librust-gt-tool-3-dev (= ${binary:Version}),
|
||||
librust-gt-tool-3+default-dev (= ${binary:Version}),
|
||||
librust-gt-tool-3.0-dev (= ${binary:Version}),
|
||||
librust-gt-tool-3.0+default-dev (= ${binary:Version}),
|
||||
librust-gt-tool-3.0.1-dev (= ${binary:Version}),
|
||||
librust-gt-tool-3.0.1+default-dev (= ${binary:Version})
|
||||
Description: CLI tools for interacting with the Gitea API - Rust source code
|
||||
Mainly for attaching files to releases.
|
||||
.
|
||||
Source code for Debianized Rust crate "gt-tool"
|
||||
|
||||
Package: gt-tool
|
||||
Architecture: any
|
||||
Depends:
|
||||
${misc:Depends},
|
||||
${shlibs:Depends},
|
||||
${cargo:Depends}
|
||||
Recommends:
|
||||
${cargo:Recommends}
|
||||
Suggests:
|
||||
${cargo:Suggests}
|
||||
Provides:
|
||||
${cargo:Provides}
|
||||
Built-Using: ${cargo:Built-Using}
|
||||
Static-Built-Using: ${cargo:Static-Built-Using}
|
||||
Description: CLI tools for interacting with the Gitea API.
|
||||
Use interactively to talk to your Gitea instance, or automatically via a CI/CD
|
||||
pipeline. Currently supports:
|
||||
|
||||
15
debian/copyright
vendored
15
debian/copyright
vendored
@@ -1,5 +1,5 @@
|
||||
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
|
||||
Upstream-Name: gt-tools
|
||||
Upstream-Name: gt-tool
|
||||
Upstream-Contact: Robert Garrett <robertgarrett404@gmail.com>
|
||||
Source: https://git.gelvin.dev/robert/gt-tool
|
||||
|
||||
@@ -11,19 +11,6 @@ Files: debian/*
|
||||
Copyright: 2025 Robert Garrett <robertgarrett404@gmail.com>
|
||||
License: GPL-3+
|
||||
|
||||
Files: debian/rules
|
||||
Copyright:
|
||||
Johannes Schauer Marin Rodrigues <josch@debian.org>
|
||||
2025 Robert Garrett <robertgarrett404@gmail.com>
|
||||
License: GPL-3+
|
||||
Comment:
|
||||
The debian/rules file is lifted directly from the tuigreet package. It was
|
||||
linked in the Debian Rust Team Book as a pretty simple example package. The
|
||||
only change I've made is to remove the documentation generation target.
|
||||
.
|
||||
https://salsa.debian.org/debian/tuigreet/-/blob/master/debian/rules?ref_type=heads
|
||||
|
||||
|
||||
License: GPL-3+
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
|
||||
2
debian/gbp.conf
vendored
2
debian/gbp.conf
vendored
@@ -2,5 +2,5 @@
|
||||
compression = xz
|
||||
compression-level = 9
|
||||
upstream-tag = v%(version)s
|
||||
debian-branch = deb/bookworm
|
||||
debian-branch = deb/trixie
|
||||
|
||||
|
||||
@@ -1,23 +0,0 @@
|
||||
From: Robert Garrett <robertgarrett404@gmail.com>
|
||||
Date: Sun, 1 Jun 2025 17:59:20 -0500
|
||||
Subject: Rust edition downgrade to 2021
|
||||
|
||||
Debian Bookworm uses Rust 1.63 which only supports up to the 2021
|
||||
edition.
|
||||
---
|
||||
Cargo.toml | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/Cargo.toml b/Cargo.toml
|
||||
index 39341a1..4ec2031 100644
|
||||
--- a/Cargo.toml
|
||||
+++ b/Cargo.toml
|
||||
@@ -1,7 +1,7 @@
|
||||
[package]
|
||||
name = "gt-tool"
|
||||
version = "3.0.0"
|
||||
-edition = "2024"
|
||||
+edition = "2021"
|
||||
|
||||
[dependencies]
|
||||
clap = { version = "4.0.7", features = ["derive", "env"] }
|
||||
@@ -1,39 +0,0 @@
|
||||
From: Robert Garrett <robertgarrett404@gmail.com>
|
||||
Date: Fri, 4 Jul 2025 09:36:52 -0500
|
||||
Subject: Lift the empty-body string outside the let-if
|
||||
|
||||
The if-else block that selects between the body of the Release or a
|
||||
placeholder is returning references to variables that only exist
|
||||
*inside* the body of the if-else blocks. Newer Rust versions seem to
|
||||
understand the intent and do The Right Thing anyway (or they have some
|
||||
other rule for how if-else block scopes work).
|
||||
|
||||
Manually lifting the variable to an outer scope resolves the problem.
|
||||
---
|
||||
src/structs/release.rs | 7 +++++--
|
||||
1 file changed, 5 insertions(+), 2 deletions(-)
|
||||
|
||||
diff --git a/src/structs/release.rs b/src/structs/release.rs
|
||||
index 9ed537e..3c4a434 100644
|
||||
--- a/src/structs/release.rs
|
||||
+++ b/src/structs/release.rs
|
||||
@@ -1,3 +1,5 @@
|
||||
+use std::io::empty;
|
||||
+
|
||||
use colored::Colorize;
|
||||
use serde::{Deserialize, Serialize};
|
||||
|
||||
@@ -27,10 +29,11 @@ impl Release {
|
||||
let published = "Published:".bright_green();
|
||||
let created = "Created:".green().dimmed();
|
||||
let author = "Author:".blue();
|
||||
+ let empty_body = String::from("(empty body)").dimmed();
|
||||
let body = if !self.body.is_empty() {
|
||||
- &self.body.white()
|
||||
+ self.body.white()
|
||||
} else {
|
||||
- &String::from("(empty body)").dimmed()
|
||||
+ empty_body
|
||||
};
|
||||
|
||||
format!(
|
||||
2
debian/patches/series
vendored
2
debian/patches/series
vendored
@@ -1,2 +0,0 @@
|
||||
0001-Rust-edition-downgrade-to-2021.patch
|
||||
0002-Lift-the-empty-body-string-outside-the-let-if.patch
|
||||
25
debian/rules
vendored
25
debian/rules
vendored
@@ -1,26 +1,7 @@
|
||||
#!/usr/bin/make -f
|
||||
|
||||
export DEB_BUILD_MAINT_OPTIONS = hardening=+all
|
||||
DPKG_EXPORT_BUILDFLAGS = 1
|
||||
include /usr/share/dpkg/default.mk
|
||||
include /usr/share/rustc/architecture.mk
|
||||
export DEB_HOST_RUST_TYPE
|
||||
export PATH:=/usr/share/cargo/bin:$(PATH)
|
||||
export CARGO=/usr/share/cargo/bin/cargo
|
||||
export CARGO_HOME=$(CURDIR)/debian/cargo_home
|
||||
export CARGO_REGISTRY=$(CURDIR)/debian/cargo_registry
|
||||
export DEB_CARGO_CRATE=$(DEB_SOURCE)_$(DEB_VERSION_UPSTREAM)
|
||||
|
||||
%:
|
||||
dh $@ --buildsystem=cargo
|
||||
dh $@ --buildsystem cargo
|
||||
|
||||
execute_after_dh_auto_clean:
|
||||
$(CARGO) clean
|
||||
rm -rf $(CARGO_HOME)
|
||||
rm -rf $(CARGO_REGISTRY)
|
||||
rm -f debian/cargo-checksum.json
|
||||
|
||||
execute_before_dh_auto_configure:
|
||||
$(CARGO) prepare-debian $(CARGO_REGISTRY) --link-from-system
|
||||
rm -f Cargo.lock
|
||||
touch debian/cargo-checksum.json
|
||||
override_dh_auto_test:
|
||||
dh_auto_test -- test --all
|
||||
|
||||
14
debian/tests/control
vendored
Normal file
14
debian/tests/control
vendored
Normal file
@@ -0,0 +1,14 @@
|
||||
Test-Command: /usr/share/cargo/bin/cargo-auto-test gt-tool 3.0.1 --all-targets --all-features
|
||||
Features: test-name=rust-gt-tool:@
|
||||
Depends: dh-cargo (>= 31), rustc, @
|
||||
Restrictions: allow-stderr, skip-not-installable
|
||||
|
||||
Test-Command: /usr/share/cargo/bin/cargo-auto-test gt-tool 3.0.1 --all-targets
|
||||
Features: test-name=librust-gt-tool-dev:default
|
||||
Depends: dh-cargo (>= 31), rustc, @
|
||||
Restrictions: allow-stderr, skip-not-installable
|
||||
|
||||
Test-Command: /usr/share/cargo/bin/cargo-auto-test gt-tool 3.0.1 --all-targets --no-default-features
|
||||
Features: test-name=librust-gt-tool-dev:
|
||||
Depends: dh-cargo (>= 31), rustc, @
|
||||
Restrictions: allow-stderr, skip-not-installable
|
||||
Reference in New Issue
Block a user