Python
El módulo test.support fue reubicado
En este lanzamiento, el módulo test.support fue movido desde el subpaquete python3-libs al python3-test.
Este cambio tiene como objetivo descubrir qué paquetes dependen de test.support y que partes de este módulo son útiles y se podrían mover a la biblioteca estándar.
La compatibilidad con Python 2 se eliminó de Sphinx
Los paquetes y subpaquetes que suministran soporte a Python 2 para Sphinx se han quitado. Vea detalles en Sección Utilidades del Sistema.
Python significa Python 3
En los nombres de paquete y comandos Python significará Python 3, esto es, los usuarios que instalen y ejecuten Python o paquetes Python sin especificar una versión obtendrán Python 3. Como resultado, el nombre Python no se referirá a un software que no se mantendrá aguas arriba durante la mayor parte de la vida útil de Fedora 31 y se retirará de Fedora 32.
Los nuevo cambios principales incluyen:
-
Running python will run
python3. -
Running pytest will run the
Python 3version ofpytest, and similarly forpydoc,pylint, and so on. -
The
dnf install pythonwill installPackage-x-generic-16.pngpython3, and similarly for otherpython-*provides, that is,dnf install python-requestswill installPackage-x-generic-16.pngpython3-requests. -
Packages with
Python 3modules will provide the unversionedpython-name. -
The
/usr/bin/pythoncommand will be a symbolic link to/usr/bin/python3living in the Package-x-generic-16.pngpython-unversioned-command subpackage of Package-x-generic-16.pngpython3. -
Pythonpackage maintainers need no change, but there are several exceptions, such as:-
Packages with ambiguous names.
-
Packages with ambiguous provides.
-
Packages with missing
%python_provide. -
Packages with Python versioned commands and tools.
-
Packages that need unversioned
Pythonto bePython 2.
-
-
Custom scripts with python shebangs will invoke
Python 3by default, whereas previosuly they invokedPython 2by default.
The final upstream release of Python 2 is planned for January 2020. No further fixes will be made upstream. Most of Fedora 31’s lifetime is after that date. Python 2 will be maintained only by its Fedora maintainers.
|
Python 3.8 is now available
Version 3.8 of the Python programming language and interpreter is now available in Fedora. You can install it from the python38 package.
Note that the Python stack still uses Python 3.7 by default.
Python 3.8 has also been released as an asynchronous update for Fedora 30 and 29.
For more information, see:
-
An article describing how you can install multiple Python versions in Fedora: https://developer.fedoraproject.org/tech/languages/python/multiple-pythons.html
-
The Python 3.8 release notes: https://docs.python.org/3.8/whatsnew/3.8.html
Want to help? Learn how to contribute to Fedora Docs ›