On Tuesday, May 4, 2021 at 7:00:55 AM UTC-7 Emmanuel Charpentier wrote: > Trying to list the installed optional packages, I innocently typed : > > charpent@zen-book-flip:~$ sage -optional | grep -v not_instal > > The answer left me stimyed : > > /usr/local/sage-9/local/lib/python3.9/site-packages/sage/misc/package.py:114: > UserWarning: failed to fetch the version of pkg='ore_algebra' at > https://pypi.org/pypi/ore_algebra/json > warnings.warn("failed to fetch the version of pkg={!r} at {}".format(pkg, > url)) > > This, I understand as the impossibility of reaching the repository of > ore-package > "sage-optional" uses PyPI to determine available versions of pip packages (see https://doc.sagemath.org/html/en/developer/packaging.html#package-source-types for the definition).
The ore-algebra project, unfortunately, does not make proper releases; the Sage package is keyed to a particular commit in the project's github. $ cat build/pkgs/ore_algebra/requirements.txt git+https://github.com/mkauers/ore_algebra@6826ac49b4cdf66a563449aced21a2fd1fd085c9#egg=ore_algebra You can help by convincing the project maintainers to follow the best practices for Python packages: making releases and publishing them on PyPI. [package]...............................[latest version] ([version]) > > cmdstanpy...............................? (0.9.75) > cypari2.................................? (2.1.2) > dot2tex.................................2.11.3.p0 (2.11.3.p0) > fricas..................................1.3.6 (1.3.6) > gap_jupyter.............................0.9 (0.9) > gap_packages............................4.11.0.p1 (4.11.0.p1) > json5...................................? (0.9.5) > jupyter_kernel_gap......................? (0.9) > jupyter_kernel_singular.................? (0.9.7) > jupyterlab..............................3.0.9 (2.2.9) > jupyterlab_server.......................? (1.2.0) > kenzo...................................1.1.9 (1.1.9) > libsemigroups...........................1.0.9 (1.0.9) > pandas..................................? (1.2.3) > pysingular..............................0.9.7 (0.9.7) > python_dateutil.........................? (2.8.1) > sagemath_standard.......................? (9.3rc5) > singular_jupyter........................0.9.7 (0.9.7) > tqdm....................................? (4.59.0) > ujson...................................? (4.0.2) > > Some of these results are marked ? as available versions ; this, I > interpret as Python packages installed viapip(either by me (e. g.cmdstanpy`) > or by another installer). > > jupyterlab installed version is 2.2.9, whereas the available version is > 3.0.9.why hasn’t it upgraded during the last Sage upgrade ? > Our jupyterlab package, added in https://trac.sagemath.org/ticket/26059, is a pip package. It uses the following version specification: $ cat build/pkgs/jupyterlab/requirements.txt jupyterlab ~= 2.2.5 I would hope that in the Sage 9.4 series, we can upgrade ipython/jupyter/jupyterlab. There is already a ticket for this task: https://trac.sagemath.org/ticket/31280 – help is welcome. -- You received this message because you are subscribed to the Google Groups "sage-support" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-support+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/sage-support/9293264f-d52c-4ccc-9767-7b6caca19d75n%40googlegroups.com.