47 lines
1.1 KiB
Diff
47 lines
1.1 KiB
Diff
From d44ce30ea0c77dc1f6ad5a5a8c84fccec6109a65 Mon Sep 17 00:00:00 2001
|
|
From: desert-sailor <dxwangk@isoftstone.com>
|
|
Date: Thu, 27 Apr 2023 11:33:09 +0800
|
|
Subject: [PATCH 1/2] add tox config file for test
|
|
|
|
---
|
|
tox.ini | 27 +++++++++++++++++++++++++++
|
|
1 file changed, 27 insertions(+)
|
|
create mode 100644 tox.ini
|
|
|
|
diff --git a/tox.ini b/tox.ini
|
|
new file mode 100644
|
|
index 0000000..6a461aa
|
|
--- /dev/null
|
|
+++ b/tox.ini
|
|
@@ -0,0 +1,27 @@
|
|
+[tox]
|
|
+env_list =
|
|
+ py{36, 37, 38, 39, 310, 311},bare,docs
|
|
+minversion = 3.28.0
|
|
+skip_missing_interpreters = true
|
|
+isolated_build = 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.33.0
|
|
|