tox 4.4.5
* tox 4.4.5 * tox: update test Closes #122641. Signed-off-by: Rui Chen <rui@chenrui.dev> Signed-off-by: BrewTestBot <1589480+BrewTestBot@users.noreply.github.com>master
parent
7c099cc9ff
commit
8f52ec0a48
|
@ -3,8 +3,8 @@ class Tox < Formula
|
||||||
|
|
||||||
desc "Generic Python virtualenv management and test command-line tool"
|
desc "Generic Python virtualenv management and test command-line tool"
|
||||||
homepage "https://tox.wiki/en/latest/"
|
homepage "https://tox.wiki/en/latest/"
|
||||||
url "https://files.pythonhosted.org/packages/39/00/3f491691cd6b4497354a3df20485bb5de2f251ded61c5cbea76f2e2cf8a6/tox-4.4.4.tar.gz"
|
url "https://files.pythonhosted.org/packages/a8/e8/0042a7ab15087a540d111b0002977a52392cfcefa0099360c272ad6444c3/tox-4.4.5.tar.gz"
|
||||||
sha256 "e1ef01d9e9503b1218511f74517dc3f0008c8b5e0cc53ab7f51ff3c2ca63b349"
|
sha256 "f9bc83c5da8666baa2a4d4e884bbbda124fe646e4b1c0e412949cecc2b6e8f90"
|
||||||
license "MIT"
|
license "MIT"
|
||||||
|
|
||||||
bottle do
|
bottle do
|
||||||
|
@ -50,8 +50,8 @@ class Tox < Formula
|
||||||
end
|
end
|
||||||
|
|
||||||
resource "platformdirs" do
|
resource "platformdirs" do
|
||||||
url "https://files.pythonhosted.org/packages/cf/4d/198b7e6c6c2b152f4f9f4cdf975d3590e33e63f1920f2d89af7f0390e6db/platformdirs-2.6.2.tar.gz"
|
url "https://files.pythonhosted.org/packages/11/39/702094fc1434a4408783b071665d9f5d8a1d0ba4dddf9dadf3d50e6eb762/platformdirs-3.0.0.tar.gz"
|
||||||
sha256 "e1fea1fe471b9ff8332e229df3cb7de4f53eeea4998d3b6bfff542115e998bd2"
|
sha256 "8a1228abb1ef82d788f74139988b137e78692984ec7b08eaa6c65f1723af28f9"
|
||||||
end
|
end
|
||||||
|
|
||||||
resource "pluggy" do
|
resource "pluggy" do
|
||||||
|
@ -65,8 +65,8 @@ class Tox < Formula
|
||||||
end
|
end
|
||||||
|
|
||||||
resource "virtualenv" do
|
resource "virtualenv" do
|
||||||
url "https://files.pythonhosted.org/packages/7b/19/65f13cff26c8cc11fdfcb0499cd8f13388dd7b35a79a376755f152b42d86/virtualenv-20.17.1.tar.gz"
|
url "https://files.pythonhosted.org/packages/3d/ad/906d59bbcb0e6178989cee52166a8a6651ddaea18b38e728eaac22e61cad/virtualenv-20.19.0.tar.gz"
|
||||||
sha256 "f8b927684efc6f1cc206c9db297a570ab9ad0e51c16fa9e45487d36d1905c058"
|
sha256 "37a640ba82ed40b226599c522d411e4be5edb339a0c0de030c0dc7b646d61590"
|
||||||
end
|
end
|
||||||
|
|
||||||
def install
|
def install
|
||||||
|
@ -86,23 +86,18 @@ class Tox < Formula
|
||||||
end
|
end
|
||||||
|
|
||||||
test do
|
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(".")
|
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]
|
system bin/"tox", "quickstart", "src"
|
||||||
deps=pytest
|
(testpath/"src/test_trivial.py").write <<~EOS
|
||||||
commands=pytest
|
|
||||||
EOS
|
|
||||||
(testpath/"test_trivial.py").write <<~EOS
|
|
||||||
def test_trivial():
|
def test_trivial():
|
||||||
assert True
|
assert True
|
||||||
EOS
|
EOS
|
||||||
assert_match "usage", shell_output("#{bin}/tox --help")
|
chdir "src" do
|
||||||
system bin/"tox"
|
system bin/"tox", "run"
|
||||||
assert_predicate testpath/".tox/py#{pyver}", :exist?
|
end
|
||||||
|
assert_predicate testpath/"src/.tox/py#{pyver}", :exist?
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue