[PATCH 5 of 7] hglib: extend tox configuration for python 3

Mathias De Mare mathias.de_mare at nokia.com
Tue Mar 14 08:26:37 UTC 2023


# HG changeset patch
# User Mathias De Mare <mathias.de_mare at nokia.com>
# Date 1678302362 -3600
#      Wed Mar 08 20:06:02 2023 +0100
# Node ID 39d40bcfb312dc51dc609bf2c169dbd38ac41b89
# Parent  709ad0365d0acfa0d0bf93ff2f58efe87d59878c
hglib: extend tox configuration for python 3

diff --git a/tox.ini b/tox.ini
--- a/tox.ini
+++ b/tox.ini
@@ -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 @@ deps=
     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



More information about the Mercurial-devel mailing list