Page MenuHomeSoftware Heritage

Add a pyproject.toml file to target py37 for black
ClosedPublic

Authored by anlambert on Apr 30 2020, 1:44 PM.

Details

Summary

This file was missing for swh-web.

Nevertheless, the cypress job on Jenkins needs to be updated as PEP 517
does not play well with pip install --user (D3104), see below:

13:46:43    Attempting uninstall: swh.web
13:46:43      Found existing installation: swh.web base-revision-110-D3103.post1
13:46:43      Can't uninstall 'swh.web'. No files were found to uninstall.
13:46:43    Running setup.py develop for swh.web
13:46:43      ERROR: Command errored out with exit status 1:
13:46:43       command: /usr/bin/python3 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/var/lib/jenkins/workspace/DWAPPS/tests-on-diff/setup.py'"'"'; __file__='"'"'/var/lib/jenkins/workspace/DWAPPS/tests-on-diff/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' develop --no-deps --user --prefix=
13:46:43           cwd: /var/lib/jenkins/workspace/DWAPPS/tests-on-diff/
13:46:43      Complete output (30 lines):
13:46:43      running develop
13:46:43      /tmp/pip-build-env-d9xksfe3/overlay/lib/python3.7/site-packages/setuptools/dist.py:472: UserWarning: The version specified ('base-revision-110-D3103.post1') is an invalid version, this may not work as expected with newer versions of setuptools, pip, and PyPI. Please see PEP 440 for more details.
13:46:43        "details." % version
13:46:43      WARNING: The user site-packages directory is disabled.
13:46:43      error: can't create or remove files in install directory
13:46:43      
13:46:43      The following error occurred while trying to add or remove files in the
13:46:43      installation directory:
13:46:43      
13:46:43          [Errno 13] Permission denied: '/usr/local/lib/python3.7/dist-packages/test-easy-install-63.write-test'
13:46:43      
13:46:43      The installation directory you specified (via --install-dir, --prefix, or
13:46:43      the distutils default setting) was:
13:46:43      
13:46:43          /usr/local/lib/python3.7/dist-packages/
13:46:43      
13:46:43      Perhaps your account does not have write access to this directory?  If the
13:46:43      installation directory is a system-owned directory, you may need to sign in
13:46:43      as the administrator or "root" account.  If you do not have administrative
13:46:43      access to this machine, you may wish to choose a different installation
13:46:43      directory, preferably one that is listed in your PYTHONPATH environment
13:46:43      variable.
13:46:43      
13:46:43      For information on other options, you may wish to consult the
13:46:43      documentation at:
13:46:43      
13:46:43        https://setuptools.readthedocs.io/en/latest/easy_install.html
13:46:43      
13:46:43      Please make the appropriate changes for your system and try again.
13:46:43      
13:46:43      ----------------------------------------

Diff Detail

Repository
rDWAPPS Web applications
Branch
master
Lint
No Linters Available
Unit
No Unit Test Coverage
Build Status
Buildable 12213
Build 18522: Phabricator diff pipeline on jenkinsJenkins console · Jenkins
Build 18521: arc lint + arc unit

Event Timeline

This revision is now accepted and ready to land.Apr 30 2020, 1:46 PM

Build has FAILED

Patch application report for D3103 (id=11041)

Rebasing onto 12280e362e...

Current branch diff-target is up to date.
Changes applied before test
commit a69e886ca313f1d37dba80f0eab2e9899cbdb692
Author: Antoine Lambert <antoine.lambert@inria.fr>
Date:   Thu Apr 30 13:38:27 2020 +0200

    Add a pyproject.toml file to target py37 for black

Link to build: https://jenkins.softwareheritage.org/job/DWAPPS/job/tests-on-diff/110/
See console output for more information: https://jenkins.softwareheritage.org/job/DWAPPS/job/tests-on-diff/110/console

Build is green

Patch application report for D3103 (id=11041)

Rebasing onto 12280e362e...

Current branch diff-target is up to date.
Changes applied before test
commit a69e886ca313f1d37dba80f0eab2e9899cbdb692
Author: Antoine Lambert <antoine.lambert@inria.fr>
Date:   Thu Apr 30 13:38:27 2020 +0200

    Add a pyproject.toml file to target py37 for black

See https://jenkins.softwareheritage.org/job/DWAPPS/job/tests-on-diff/111/ for more details.