copr-matrix-common/0001-Add-test-extra.patch

46 lines
906 B
Diff
Raw Normal View History

2022-01-26 23:19:51 +00:00
From a24740f61299cfc628715212def51318bde00c7b Mon Sep 17 00:00:00 2001
From: "Kai A. Hiller" <V02460@gmail.com>
Date: Wed, 26 Jan 2022 21:55:09 +0100
Subject: [PATCH 1/2] Add test extra
---
setup.cfg | 5 +++--
tox.ini | 2 +-
2 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/setup.cfg b/setup.cfg
index d54b7a4..75f55d6 100644
--- a/setup.cfg
+++ b/setup.cfg
@@ -23,11 +23,12 @@ matrix_common = py.typed
[options.extras_require]
-dev =
- # for tests
+test =
tox
twisted
aiounittest
+dev =
+ %(test)s
# for type checking
mypy == 0.910
# for linting
diff --git a/tox.ini b/tox.ini
index 291e9b2..952b7ea 100644
--- a/tox.ini
+++ b/tox.ini
@@ -15,7 +15,7 @@ isolated_build = true
# creates a symlink to the project directory instead of unpacking the sdist.
usedevelop=true
-extras = dev
+extras = test
commands =
python -m twisted.trial tests
--
2.34.1