Skip to content

Commit bc15028

Browse files
authored
Merge pull request Homebrew#196657 from clintonsteiner/pytestBuild
pytest 8.3.3 (new formula)
2 parents 17e93bc + 09fc191 commit bc15028

File tree

1 file changed

+42
-0
lines changed

1 file changed

+42
-0
lines changed

Formula/p/pytest.rb

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
class Pytest < Formula
2+
include Language::Python::Virtualenv
3+
4+
desc "Simple powerful testing with Python"
5+
homepage "https://docs.pytest.org/en/latest/"
6+
url "https://files.pythonhosted.org/packages/8b/6c/62bbd536103af674e227c41a8f3dcd022d591f6eed5facb5a0f31ee33bbc/pytest-8.3.3.tar.gz"
7+
sha256 "70b98107bd648308a7952b06e6ca9a50bc660be218d53c257cc1fc94fda10181"
8+
license "MIT"
9+
10+
bottle do
11+
sha256 cellar: :any_skip_relocation, all: "9092a869dd22676320ecf53825884f579dafb0671b0e86411424f3190a314ebc"
12+
end
13+
14+
depends_on "[email protected]"
15+
16+
resource "iniconfig" do
17+
url "https://files.pythonhosted.org/packages/d7/4b/cbd8e699e64a6f16ca3a8220661b5f83792b3017d0f79807cb8708d33913/iniconfig-2.0.0.tar.gz"
18+
sha256 "2d91e135bf72d31a410b17c16da610a82cb55f6b0477d1a902134b24a455b8b3"
19+
end
20+
21+
resource "packaging" do
22+
url "https://files.pythonhosted.org/packages/51/65/50db4dda066951078f0a96cf12f4b9ada6e4b811516bf0262c0f4f7064d4/packaging-24.1.tar.gz"
23+
sha256 "026ed72c8ed3fcce5bf8950572258698927fd1dbda10a5e981cdf0ac37f4f002"
24+
end
25+
26+
resource "pluggy" do
27+
url "https://files.pythonhosted.org/packages/96/2d/02d4312c973c6050a18b314a5ad0b3210edb65a906f868e31c111dede4a6/pluggy-1.5.0.tar.gz"
28+
sha256 "2cffa88e94fdc978c4c574f15f9e59b7f4201d439195c3715ca9e2486f1d0cf1"
29+
end
30+
31+
def install
32+
virtualenv_install_with_resources
33+
end
34+
35+
test do
36+
(testpath/"test_example.py").write <<~EOS
37+
def test_example():
38+
assert 1 + 1 == 2
39+
EOS
40+
system bin/"pytest", "test_example.py"
41+
end
42+
end

0 commit comments

Comments
 (0)