python-beautifulsoup4/tox.patch

46 lines
1.1 KiB
Diff

From c9f9b09140a0921694432ad33ad542a7e8a37894 Mon Sep 17 00:00:00 2001
From: Terje Rosten <terje.rosten@ntnu.no>
Date: Thu, 13 Apr 2023 19:01:57 +0200
Subject: [PATCH] Add missing tox.ini file
---
tox.ini | 26 ++++++++++++++++++++++++++
1 file changed, 26 insertions(+)
create mode 100644 tox.ini
diff --git a/tox.ini b/tox.ini
new file mode 100644
index 0000000..f793655
--- /dev/null
+++ b/tox.ini
@@ -0,0 +1,26 @@
+[tox]
+env_list =
+ py{36, 37, 38, 39, 310, 311},bare,docs
+minversion = 3.28.0
+skip_missing_interpreters = true
+
+[testenv]
+package = wheel
+wheel_build_env = .pkg
+description = run the tests with all dependencies installed
+deps = lxml
+ html5lib
+ soupsieve>=1.2
+ pytest>=6
+commands = pytest {tty:--color=yes} {posargs}
+
+[testenv:docs]
+basepython = python3
+description = build the documentation
+deps = sphinx
+commands = sphinx-build -b html doc/source doc/build/html
+
+[testenv:bare]
+description = run the tests on the oldest supported version of Python, without any dependencies installed
+basepython = python3.6
+deps = pytest>=6
--
2.39.2