Patchwork [Bug,6198] New: pyproject.toml breaks test-install.t

login
register
mail settings
Submitter mercurial-bugs@mercurial-scm.org
Date Oct. 9, 2019, 4:07 a.m.
Message ID <bug-6198-285@https.bz.mercurial-scm.org/>
Download mbox | patch
Permalink /patch/42130/
State Not Applicable
Headers show

Comments

mercurial-bugs@mercurial-scm.org - Oct. 9, 2019, 4:07 a.m.
https://bz.mercurial-scm.org/show_bug.cgi?id=6198

            Bug ID: 6198
           Summary: pyproject.toml breaks test-install.t
           Product: Mercurial
           Version: default branch
          Hardware: PC
                OS: Linux
            Status: UNCONFIRMED
          Severity: feature
          Priority: wish
         Component: Mercurial
          Assignee: bugzilla@mercurial-scm.org
          Reporter: pierre-yves.david@ens-lyon.org
                CC: mercurial-devel@mercurial-scm.org

Our CI reported a non-obvious crash that I can reliably reproduce locally on
various machine.

bisect points at:

changeset:   71088:929678eb4cbd
user:        Augie Fackler <augie@google.com>
date:        Sun Oct 06 09:35:14 2019 -0400
summary:     black: add a pyproject.toml that contains our black settings

+  New python executable in $TESTTMP/installenv/bin/python2
+  Also creating executable in $TESTTMP/installenv/bin/python
+  Installing setuptools, pip, wheel...
+  done.
+  Processing /home/jenkins/workspace/MercurialPy2/mercurial
+    Installing build dependencies: started
+    Installing build dependencies: finished with status 'error'
+    Complete output from command $TESTTMP/installenv/bin/python2
$TESTTMP/installenv/local/lib/python2.7/site-packages/pip install
--ignore-installed --no-user --prefix /tmp/pip-build-env-jRKnjW/overlay
--no-warn-script-location --no-binary :none: --only-binary :none: --no-index --
setuptools>=40.8.0 wheel:
+    DEPRECATION: Python 2.7 will reach the end of its life on January 1st,
2020. Please upgrade your Python as Python 2.7 won't be maintained after that
date. A future version of pip will drop support for Python 2.7.
+    Collecting setuptools>=40.8.0
+      Could not find a version that satisfies the requirement
setuptools>=40.8.0 (from versions: )
+    No matching distribution found for setuptools>=40.8.0
+    
+    ----------------------------------------
 #endif

ERROR: test-install.t output changed

Patch

--- /home/jenkins/workspace/MercurialPy2/mercurial/tests/test-install.t
+++ /home/jenkins/workspace/MercurialPy2/mercurial/tests/test-install.t.err
@@ -255,26 +255,25 @@ 
   $ ./installenv/*/pip install --no-index $TESTDIR/.. >> pip.log
   DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020.
Please upgrade your Python as Python 2.7 won't be maintained after that date. A
future version of pip will drop support for Python 2.7. (?)
   DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020.
Please upgrade your Python as Python 2.7 won't be maintained after that date. A
future version of pip will drop support for Python 2.7. More details about
Python 2 support in pip, can be found at
https://pip.pypa.io/en/latest/development/release-process/#python-2-support (?)
+  Command "$TESTTMP/installenv/bin/python2
$TESTTMP/installenv/local/lib/python2.7/site-packages/pip install
--ignore-installed --no-user --prefix /tmp/pip-build-env-jRKnjW/overlay
--no-warn-script-location --no-binary :none: --only-binary :none: --no-index --
setuptools>=40.8.0 wheel" failed with error code 1 in None
+  [1]
   $ ./installenv/*/hg debuginstall || cat pip.log
-  checking encoding (ascii)...
-  checking Python executable (*) (glob)
-  checking Python version (2.*) (glob) (no-py3 !)
-  checking Python version (3.*) (glob) (py3 !)
-  checking Python lib (*)... (glob)
-  checking Python security support (*) (glob)
-    TLS 1.2 not supported by Python install; network connections lack modern
security (?)
-    SNI not supported by Python install; may have connectivity issues with
some servers (?)
-  checking Mercurial version (*) (glob)
-  checking Mercurial custom build (*) (glob)
-  checking module policy (*) (glob)
-  checking installed modules (*/mercurial)... (glob)
-  checking registered compression engines (*) (glob)
-  checking available compression engines (*) (glob)
-  checking available compression engines for wire protocol (*) (glob)
-  checking "re2" regexp engine \((available|missing)\) (re)
-  checking templates
($TESTTMP/installenv/*/site-packages/mercurial/templates)... (glob)
-  checking default template
($TESTTMP/installenv/*/site-packages/mercurial/templates/map-cmdline.default)
(glob)
-  checking commit editor... (*) (glob)
-  checking username (test)
-  no problems detected
+  $TESTTMP.sh: 95: $TESTTMP.sh: ./installenv/*/hg: not found
+  checking Python version (3.*) (glob) (py3 !)
+    TLS 1.2 not supported by Python install; network connections lack modern
security (?)
+    SNI not supported by Python install; may have connectivity issues with
some servers (?)