From 8f52ec0a489510709493636b1b111aa0bf8ed044 Mon Sep 17 00:00:00 2001 From: Dustin Rodrigues Date: Tue, 7 Feb 2023 22:53:20 -0500 Subject: [PATCH] tox 4.4.5 * tox 4.4.5 * tox: update test Closes #122641. Signed-off-by: Rui Chen Signed-off-by: BrewTestBot <1589480+BrewTestBot@users.noreply.github.com> --- Formula/tox.rb | 33 ++++++++++++++------------------- 1 file changed, 14 insertions(+), 19 deletions(-) diff --git a/Formula/tox.rb b/Formula/tox.rb index 014e4c86c12..1dbbbfa15c4 100644 --- a/Formula/tox.rb +++ b/Formula/tox.rb @@ -3,8 +3,8 @@ class Tox < Formula desc "Generic Python virtualenv management and test command-line tool" homepage "https://tox.wiki/en/latest/" - url "https://files.pythonhosted.org/packages/39/00/3f491691cd6b4497354a3df20485bb5de2f251ded61c5cbea76f2e2cf8a6/tox-4.4.4.tar.gz" - sha256 "e1ef01d9e9503b1218511f74517dc3f0008c8b5e0cc53ab7f51ff3c2ca63b349" + url "https://files.pythonhosted.org/packages/a8/e8/0042a7ab15087a540d111b0002977a52392cfcefa0099360c272ad6444c3/tox-4.4.5.tar.gz" + sha256 "f9bc83c5da8666baa2a4d4e884bbbda124fe646e4b1c0e412949cecc2b6e8f90" license "MIT" bottle do @@ -50,8 +50,8 @@ class Tox < Formula end resource "platformdirs" do - url "https://files.pythonhosted.org/packages/cf/4d/198b7e6c6c2b152f4f9f4cdf975d3590e33e63f1920f2d89af7f0390e6db/platformdirs-2.6.2.tar.gz" - sha256 "e1fea1fe471b9ff8332e229df3cb7de4f53eeea4998d3b6bfff542115e998bd2" + url "https://files.pythonhosted.org/packages/11/39/702094fc1434a4408783b071665d9f5d8a1d0ba4dddf9dadf3d50e6eb762/platformdirs-3.0.0.tar.gz" + sha256 "8a1228abb1ef82d788f74139988b137e78692984ec7b08eaa6c65f1723af28f9" end resource "pluggy" do @@ -65,8 +65,8 @@ class Tox < Formula end resource "virtualenv" do - url "https://files.pythonhosted.org/packages/7b/19/65f13cff26c8cc11fdfcb0499cd8f13388dd7b35a79a376755f152b42d86/virtualenv-20.17.1.tar.gz" - sha256 "f8b927684efc6f1cc206c9db297a570ab9ad0e51c16fa9e45487d36d1905c058" + url "https://files.pythonhosted.org/packages/3d/ad/906d59bbcb0e6178989cee52166a8a6651ddaea18b38e728eaac22e61cad/virtualenv-20.19.0.tar.gz" + sha256 "37a640ba82ed40b226599c522d411e4be5edb339a0c0de030c0dc7b646d61590" end def install @@ -86,23 +86,18 @@ class Tox < Formula end test do - ENV["LC_ALL"] = "en_US.UTF-8" + assert_match "usage", shell_output("#{bin}/tox --help") + system bin/"tox" pyver = Language::Python.major_minor_version(Formula["python@3.11"].opt_bin/"python3.11").to_s.delete(".") - (testpath/"tox.ini").write <<~EOS - [tox] - envlist=py#{pyver} - skipsdist=True - [testenv] - deps=pytest - commands=pytest - EOS - (testpath/"test_trivial.py").write <<~EOS + system bin/"tox", "quickstart", "src" + (testpath/"src/test_trivial.py").write <<~EOS def test_trivial(): assert True EOS - assert_match "usage", shell_output("#{bin}/tox --help") - system bin/"tox" - assert_predicate testpath/".tox/py#{pyver}", :exist? + chdir "src" do + system bin/"tox", "run" + end + assert_predicate testpath/"src/.tox/py#{pyver}", :exist? end end