Skip to content

Commit a35a01f

Browse files
committed
httptap 0.1.1 (new formula)
build(formula): switch to sdist and vendor Python resources for httptap Replace installation from a prebuilt wheel with installation from the source distribution and vendored Python resources. This enables Homebrew to create a virtualenv and install all declared dependencies reliably, improving reproducibility and auditability of the package. Also set a default SOURCE_DATE_EPOCH to ensure deterministic builds. The change adds explicit Python dependency resources and uses the virtualenv installer to manage them, replacing the previous pip-install-from-wheel approach and keeping the existing runtime test intact. build(formula): add wheel-based httptap formula using [email protected] Add a Homebrew formula that installs httptap from a prebuilt wheel via a Python 3.14 virtualenv. Switch from a source-based formula with numerous vendored Python resources to a simpler wheel-based install to reduce maintenance and dependency pinning while preserving the existing test coverage. This simplifies installation and improves determinism by relying on the published wheel and [email protected] runtime. build(formula): use virtualenv_install_with_resources and add rust dependency Replace manual virtualenv creation and pip_install_and_link with virtualenv_install_with_resources to streamline Python package installation and ensure resources are installed and linked correctly. Add rust as a build dependency to satisfy crates-backed wheels or build steps that require Rust. Retains the SOURCE_DATE_EPOCH setting for reproducible builds.
1 parent 8e55946 commit a35a01f

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

Formula/h/httptap.rb

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
class Httptap < Formula
2+
include Language::Python::Virtualenv
3+
4+
desc "HTTP request visualizer with phase-by-phase timing breakdown"
5+
homepage "https://httptap.dev"
6+
url "https://files.pythonhosted.org/packages/6c/6f/58546c6b5bc3d5d219bdeb59546488a0801ff81feaa1c67fae40478aef3b/httptap-0.1.1-py3-none-any.whl"
7+
sha256 "e95fbaeda8a260a109e2a14d1203493f057cabb5523274848bcab1b4863c553f"
8+
license "Apache-2.0"
9+
10+
depends_on "rust" => :build
11+
depends_on "[email protected]"
12+
13+
def install
14+
# The source doesn't have a valid SOURCE_DATE_EPOCH, so here we set default.
15+
ENV["SOURCE_DATE_EPOCH"] = "1451574000"
16+
17+
virtualenv_install_with_resources
18+
end
19+
20+
test do
21+
ENV["NO_COLOR"] = "1"
22+
23+
system bin/"httptap", "--metrics-only", "--json", testpath/"report.json", "https://example.com"
24+
assert_path_exists testpath/"report.json", "JSON report was not created"
25+
end
26+
end

0 commit comments

Comments
 (0)