changeset 222:8ac8e29c7a1f

hglib: extend tox configuration for python 3
author Mathias De Mare <mathias.de_mare@nokia.com>
date Wed, 08 Mar 2023 20:06:02 +0100
parents a2afbf236ca8
children 3f9dd44be8c2
files tox.ini
diffstat 1 files changed, 23 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/tox.ini	Thu Mar 09 14:00:02 2023 +0100
+++ b/tox.ini	Wed Mar 08 20:06:02 2023 +0100
@@ -1,9 +1,15 @@
+# note: you can use pyenv to install the necessary python versions missing on your system
+# --> pyenv install 2.7 3.6 3.7 3.8 3.9 3.10 3.11
+# --> pyenv global 2.7 3.6 3.7 3.8 3.9 3.10 3.11
 [tox]
-envlist = hg37,hg38,hg39,hg40,hg41,hg42,hg43,hg44,hg45,hg46,hg47,hg48,hg49,hg50,hg51,hg52
+# test_merge_prompt_cb hangs for python3 before hg53
+# python 2.7 is listed here to easily still test pre-hg53
+envlist = py{27}-hg{37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52},
+          py{36,37,38,39,310}-hg{53,54,55,56,57,58,59},
+          py{36,37,38,39,310,311}-hg{60,61,62,63}
 
 [testenv]
 deps=
-    nose
     hg37: Mercurial==3.7.3
     hg38: Mercurial==3.8.3
     hg39: Mercurial==3.8.3
@@ -20,5 +26,19 @@
     hg50: Mercurial==5.0.2
     hg51: Mercurial==5.1.2
     hg52: Mercurial==5.2.1
+    hg53: Mercurial==5.3.2
+    hg54: Mercurial==5.4.2
+    hg55: Mercurial==5.5.2
+    hg56: Mercurial==5.6.1
+    hg57: Mercurial==5.7.1
+    hg58: Mercurial==5.8
+    hg59: Mercurial==5.9.3
+    hg60: Mercurial==6.0.3
+    hg61: Mercurial==6.1.4
+    hg62: Mercurial==6.2.3
+    hg63: Mercurial==6.3.3
 
-commands=nosetests {posargs}
+setenv =
+    HGPYTHON3 = 1
+
+commands={envpython} -m unittest discover