Staging instance, all changes can be removed at any time

Skip to content

Add a pyproject.toml file to target py37 for black

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](https://forge.softwareheritage.org/D3103 'view original for D3103 on Phabricator').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](https://forge.softwareheritage.org/D3103 'view original for D3103 on Phabricator').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      ----------------------------------------

Migrated from D3103 (view on Phabricator)

Merge request reports

Loading