Page MenuHomeSoftware Heritage

jobs/swh-packages: Add swh-py-template build jobs
ClosedPublic

Authored by anlambert on Jun 23 2021, 2:00 PM.

Details

Summary

tox and sphinx can be sucessfully executed for that template
package now so we can add it to the list of build packages on Jenkins.

It enables to submit Phabricator diffs on the repository without having
a persistent draft state.

(swh) ✔ ~/swh/swh-environment/swh-py-template [master|⚑ 1] 
13:51 $ tox -r
GLOB sdist-make: /home/anlambert/swh/swh-environment/swh-py-template/setup.py
black recreate: /home/anlambert/swh/swh-environment/swh-py-template/.tox/black
black installdeps: black==19.10b0
black installed: appdirs==1.4.4,attrs==21.2.0,black==19.10b0,click==8.0.1,importlib-metadata==4.5.0,pathspec==0.8.1,regex==2021.4.4,toml==0.10.2,typed-ast==1.4.3,typing-extensions==3.10.0.0,zipp==3.4.1
black run-test-pre: PYTHONHASHSEED='2542803393'
black run-test: commands[0] | /home/anlambert/swh/swh-environment/swh-py-template/.tox/black/bin/python -m black --check swh
All done! ✨ 🍰 ✨
6 files would be left unchanged.
flake8 recreate: /home/anlambert/swh/swh-environment/swh-py-template/.tox/flake8
flake8 installdeps: flake8
flake8 installed: flake8==3.9.2,importlib-metadata==4.5.0,mccabe==0.6.1,pycodestyle==2.7.0,pyflakes==2.3.1,typing-extensions==3.10.0.0,zipp==3.4.1
flake8 run-test-pre: PYTHONHASHSEED='2542803393'
flake8 run-test: commands[0] | /home/anlambert/swh/swh-environment/swh-py-template/.tox/flake8/bin/python -m flake8
mypy recreate: /home/anlambert/swh/swh-environment/swh-py-template/.tox/mypy
mypy installdeps: mypy
mypy inst: /home/anlambert/swh/swh-environment/swh-py-template/.tox/.tmp/package/1/swh.foo-0.1.dev83+ge0b767a.zip
mypy installed: aiohttp==3.7.4.post0,aiohttp-utils==3.1.1,async-timeout==3.0.1,attrs==21.2.0,blinker==1.4,certifi==2021.5.30,chardet==4.0.0,click==8.0.1,Deprecated==1.2.12,Flask==2.0.1,gunicorn==20.1.0,idna==2.10,importlib-metadata==4.5.0,iniconfig==1.1.1,iso8601==0.1.14,itsdangerous==2.0.1,Jinja2==3.0.1,MarkupSafe==2.0.1,msgpack==1.0.2,multidict==5.1.0,mypy==0.910,mypy-extensions==0.4.3,packaging==20.9,pluggy==0.13.1,py==1.10.0,pyparsing==2.4.7,pytest==6.2.4,python-mimeparse==1.6.0,PyYAML==5.4.1,requests==2.25.1,sentry-sdk==1.1.0,swh.core==0.14.3,swh.foo @ file:///home/anlambert/swh/swh-environment/swh-py-template/.tox/.tmp/package/1/swh.foo-0.1.dev83%2Bge0b767a.zip,toml==0.10.2,typed-ast==1.4.3,typing-extensions==3.10.0.0,urllib3==1.26.5,Werkzeug==2.0.1,wrapt==1.12.1,yarl==1.6.3,zipp==3.4.1
mypy run-test-pre: PYTHONHASHSEED='2542803393'
mypy run-test: commands[0] | mypy swh
Success: no issues found in 6 source files
py3 recreate: /home/anlambert/swh/swh-environment/swh-py-template/.tox/py3
py3 installdeps: pytest-cov
py3 inst: /home/anlambert/swh/swh-environment/swh-py-template/.tox/.tmp/package/1/swh.foo-0.1.dev83+ge0b767a.zip
py3 installed: aiohttp==3.7.4.post0,aiohttp-utils==3.1.1,async-timeout==3.0.1,attrs==21.2.0,blinker==1.4,certifi==2021.5.30,chardet==4.0.0,click==8.0.1,coverage==5.5,Deprecated==1.2.12,Flask==2.0.1,gunicorn==20.1.0,idna==2.10,importlib-metadata==4.5.0,iniconfig==1.1.1,iso8601==0.1.14,itsdangerous==2.0.1,Jinja2==3.0.1,MarkupSafe==2.0.1,msgpack==1.0.2,multidict==5.1.0,packaging==20.9,pluggy==0.13.1,py==1.10.0,pyparsing==2.4.7,pytest==6.2.4,pytest-cov==2.12.1,python-mimeparse==1.6.0,PyYAML==5.4.1,requests==2.25.1,sentry-sdk==1.1.0,swh.core==0.14.3,swh.foo @ file:///home/anlambert/swh/swh-environment/swh-py-template/.tox/.tmp/package/1/swh.foo-0.1.dev83%2Bge0b767a.zip,toml==0.10.2,typing-extensions==3.10.0.0,urllib3==1.26.5,Werkzeug==2.0.1,wrapt==1.12.1,yarl==1.6.3,zipp==3.4.1
py3 run-test-pre: PYTHONHASHSEED='2542803393'
py3 run-test: commands[0] | pytest --doctest-modules /home/anlambert/swh/swh-environment/swh-py-template/.tox/py3/lib/python3.7/site-packages/swh/foo --cov=/home/anlambert/swh/swh-environment/swh-py-template/.tox/py3/lib/python3.7/site-packages/swh/foo --cov-branch
============================================================================================== test session starts ===============================================================================================
platform linux -- Python 3.7.3, pytest-6.2.4, py-1.10.0, pluggy-0.13.1
cachedir: .tox/py3/.pytest_cache
rootdir: /home/anlambert/swh/swh-environment/swh-py-template, configfile: pytest.ini
plugins: cov-2.12.1, swh.core-0.14.3
collected 1 item                                                                                                                                                                                                 

.tox/py3/lib/python3.7/site-packages/swh/foo/tests/test_nothing.py .                                                                                                                                       [100%]

----------- coverage: platform linux, python 3.7.3-final-0 -----------
Name                                                                 Stmts   Miss Branch BrPart  Cover
------------------------------------------------------------------------------------------------------
.tox/py3/lib/python3.7/site-packages/swh/foo/__init__.py                 0      0      0      0   100%
.tox/py3/lib/python3.7/site-packages/swh/foo/bar.py                      0      0      0      0   100%
.tox/py3/lib/python3.7/site-packages/swh/foo/cli.py                      9      1      0      0    89%
.tox/py3/lib/python3.7/site-packages/swh/foo/tests/__init__.py           0      0      0      0   100%
.tox/py3/lib/python3.7/site-packages/swh/foo/tests/test_nothing.py       2      0      0      0   100%
------------------------------------------------------------------------------------------------------
TOTAL                                                                   11      1      0      0    91%


=============================================================================================== 1 passed in 0.36s ================================================================================================
____________________________________________________________________________________________________ summary _____________________________________________________________________________________________________
  black: commands succeeded
  flake8: commands succeeded
  mypy: commands succeeded
  py3: commands succeeded
  congratulations :)
(swh) ✔ ~/swh/swh-environment/swh-py-template [master|⚑ 1] 
13:51 $ tox -e sphinx
sphinx create: /home/anlambert/swh/swh-environment/swh-py-template/.tox/sphinx
sphinx installdeps: -egit+https://forge.softwareheritage.org/source/swh-docs#egg=swh.docs
sphinx develop-inst: /home/anlambert/swh/swh-environment/swh-py-template
sphinx installed: aiohttp==3.7.4.post0,aiohttp-utils==3.1.1,alabaster==0.7.12,async-timeout==3.0.1,attrs==21.2.0,Babel==2.9.1,blinker==1.4,certifi==2021.5.30,chardet==4.0.0,click==8.0.1,Deprecated==1.2.12,docutils==0.16,Flask==2.0.1,gunicorn==20.1.0,idna==2.10,imagesize==1.2.0,importlib-metadata==4.5.0,iniconfig==1.1.1,iso8601==0.1.14,itsdangerous==2.0.1,Jinja2==3.0.1,markdown-it-py==1.1.0,MarkupSafe==2.0.1,mdit-py-plugins==0.2.8,msgpack==1.0.2,multidict==5.1.0,myst-parser==0.15.1,packaging==20.9,pluggy==0.13.1,py==1.10.0,Pygments==2.9.0,pyparsing==2.4.7,pytest==6.2.4,python-mimeparse==1.6.0,pytz==2021.1,PyYAML==5.4.1,requests==2.25.1,sentry-sdk==1.1.0,six==1.16.0,snowballstemmer==2.1.0,Sphinx==4.0.2,sphinx-celery==2.0.0,sphinx-click==3.0.1,sphinx-reredirects==0.0.1,sphinx-rtd-theme==0.5.2,sphinx-tabs==3.1.0,sphinxcontrib-applehelp==1.0.2,sphinxcontrib-devhelp==1.0.2,sphinxcontrib-htmlhelp==2.0.0,sphinxcontrib-httpdomain==1.7.0,sphinxcontrib-images==0.9.3,sphinxcontrib-jsmath==1.0.1,sphinxcontrib-programoutput==0.17,sphinxcontrib-qthelp==1.0.3,sphinxcontrib-serializinghtml==1.1.5,swh.core==0.14.3,-e git+https://forge.softwareheritage.org/source/swh-docs@18d174df09f7a62a707d89c80f1ec48e65ee319a#egg=swh.docs,-e git+https://forge.softwareheritage.org/source/swh-py-template.git@e0b767a08207bcd4cf7d5139dd57b75fe1f69ee6#egg=swh.foo,toml==0.10.2,typing-extensions==3.10.0.0,urllib3==1.26.5,Werkzeug==2.0.1,wrapt==1.12.1,yarl==1.6.3,zipp==3.4.1
sphinx run-test-pre: PYTHONHASHSEED='4009107275'
sphinx run-test: commands[0] | make -I ../.tox/sphinx/src/swh-docs/swh/ -C docs
make: Entering directory '/home/anlambert/swh/swh-environment/swh-py-template/docs'
sphinx-build -b html . _build/html -W
Sphinx v4.0.2 en cours d'exécution
chargement des traductions [en]... fait
Chargement de l'environnement pickled... échoué
échec : __new__() missing 1 required positional argument: 'aliased'
Initiated sphinxcontrib-images backend: `sphinxcontrib_images_lightbox2.lightbox2:LightBox2`
myst v0.15.1: MdParserConfig(renderer='sphinx', commonmark_only=False, enable_extensions=['dollarmath'], dmath_allow_labels=True, dmath_allow_space=True, dmath_allow_digits=True, dmath_double_inline=False, update_mathjax=True, mathjax_classes='tex2jax_process|mathjax_process|math|output_area', disable_syntax=[], url_schemes=['http', 'https', 'mailto', 'ftp'], heading_anchors=None, heading_slug_func=None, html_meta=[], footnote_transition=True, substitutions=[], sub_delimiters=['{', '}'], words_per_minute=200)
Construction en cours [mo] : cibles périmées pour les fichiers po 0
Construction [html] : cibles périmées pour les fichiers sources 7
Mise à jour de l'environnement : [nouvelle configuration] 7 ajouté(s), 0 modifié(s), 0 supprimé(s)
Lecture des sources... [ 14%] README
Lecture des sources... [ 28%] apidoc/modules
Lecture des sources... [ 42%] apidoc/swh
Lecture des sources... [ 57%] apidoc/swh.foo
Lecture des sources... [ 71%] apidoc/swh.foo.bar
Lecture des sources... [ 85%] apidoc/swh.foo.cli
Lecture des sources... [100%] index

Copying static files for sphinxcontrib-images...[ 11%] lightbox2/css/lightbox.css
Copying static files for sphinxcontrib-images...[ 22%] lightbox2/js/jquery-1.11.0.min.js
Copying static files for sphinxcontrib-images...[ 33%] lightbox2/js/lightbox.min.js
Copying static files for sphinxcontrib-images...[ 44%] lightbox2-customize/jquery-noconflict.js
Copying static files for sphinxcontrib-images...[ 55%] lightbox2/js/lightbox.min.map
Copying static files for sphinxcontrib-images...[ 66%] lightbox2/img/close.png
Copying static files for sphinxcontrib-images...[ 77%] lightbox2/img/next.png
Copying static files for sphinxcontrib-images...[ 88%] lightbox2/img/prev.png
Copying static files for sphinxcontrib-images...[100%] lightbox2/img/loading.gif

Recherche des fichiers périmés... aucun résultat
Environnement de sérialisation... fait
Vérification de la cohérence... fait
Document en préparation... fait
Écriture... [ 14%] README
Écriture... [ 28%] apidoc/modules
Écriture... [ 42%] apidoc/swh
Écriture... [ 57%] apidoc/swh.foo
Écriture... [ 71%] apidoc/swh.foo.bar
Écriture... [ 85%] apidoc/swh.foo.cli
Écriture... [100%] index

Génération des index... genindex py-modindex fait
écriture des pages additionnelles... search fait
copying static files... fait
Copie des fichiers complémentaires... fait
Export de l'index de recherche dans English (code: en)... fait
Export de l'inventaire des objets... fait
La compilation a réussi.

Les pages HTML sont dans _build/html.
Creating redirect file 'swh-deposit/spec-api.html' pointing to '{new_target}' that replaces '{doc}'.
Creating redirect file 'swh-deposit/metadata.html' pointing to '{new_target}' that replaces '{doc}'.
Creating redirect file 'swh-deposit/specs/blueprint.html' pointing to '{new_target}' that replaces '{doc}'.
Creating redirect file 'swh-deposit/user-manual.html' pointing to '{new_target}' that replaces '{doc}'.
Creating redirect file 'architecture.html' pointing to '{new_target}' that replaces '{doc}'.
Creating redirect file 'mirror.html' pointing to '{new_target}' that replaces '{doc}'.
make: Leaving directory '/home/anlambert/swh/swh-environment/swh-py-template/docs'
____________________________________________________________________________________________________ summary _____________________________________________________________________________________________________
  sphinx: commands succeeded
  congratulations :)

Diff Detail

Repository
rCJSWH Jenkins jobs
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

anlambert created this revision.
olasd added a subscriber: olasd.

Wow, I'm surprised that the templated garbage in setup.py still yields a working package :-)

This revision is now accepted and ready to land.Jun 23 2021, 2:02 PM