Go to file
Dominique Leuenberger 82fc01b8d7 Accepting request 890780 from devel:languages:python:Factory
- Update to 3.8.10:
  - Security
    - bpo-43434: Creating a sqlite3.Connection object now also
      produces a sqlite3.connect auditing event. Previously this
      event was only produced by sqlite3.connect() calls. Patch
      by Erlend E. Aasland.
    - bpo-43472: Ensures interpreter-level audit hooks receive
      the cpython.PyInterpreterState_New event when called
      through the _xxsubinterpreters module.
    - bpo-43075: Fix Regular Expression Denial of Service (ReDoS)
      vulnerability in urllib.request.AbstractBasicAuthHandler.
      The ReDoS-vulnerable regex has quadratic worst-case
      complexity and it allows cause a denial of service when
      identifying crafted invalid RFCs. This ReDoS issue is on
      the client side and needs remote attackers to control the
      HTTP server.
  - Core and Builtins
    - bpo-43105: Importlib now resolves relative paths when
      creating module spec objects from file locations.
    - bpo-42924: Fix bytearray repetition incorrectly copying
      data from the start of the buffer, even if the data is
      offset within the buffer (e.g. after reassigning a slice at
      the start of the bytearray to a shorter byte string).
  - Library
    - bpo-43993: Update bundled pip to 21.1.1.
    - bpo-43937: Fixed the turtle module working with non-default
      root window.
    - bpo-43930: Update bundled pip to 21.1 and setuptools to
      56.0.0
    - bpo-43920: OpenSSL 3.0.0: load_verify_locations() now
      returns a consistent error message when cadata contains no
      valid certificate.
    - bpo-43607: urllib can now convert Windows paths with \\?\
      prefixes into URL paths.
    - bpo-43284: platform.win32_ver derives the windows version
      from sys.getwindowsversion().platform_version which in turn
      derives the version from kernel32.dll (which can be of
      a different version than Windows itself). Therefore change
      the platform.win32_ver to determine the version using the
      platform module’s _syscmd_ver private function to return an
      accurate version.
    - bpo-42248: [Enum] ensure exceptions raised in _missing__
      are released
    - bpo-43799: OpenSSL 3.0.0: define OPENSSL_API_COMPAT 1.1.1
      to suppress deprecation warnings. Python requires OpenSSL
      1.1.1 APIs.
    - bpo-43794: Add ssl.OP_IGNORE_UNEXPECTED_EOF constants
      (OpenSSL 3.0.0)
    - bpo-43789: OpenSSL 3.0.0: Don’t call the password callback
      function a second time when first call has signaled an
      error condition.
    - bpo-43788: The header files for ssl error codes are now
      OpenSSL version-specific. Exceptions will now show correct
      reason and library codes. The make_ssl_data.py script has
      been rewritten to use OpenSSL’s text file with error codes.
    - bpo-43655: tkinter dialog windows are now recognized as
      dialogs by window managers on macOS and X Window.
    - bpo-43534: turtle.textinput() and turtle.numinput() create
      now a transient window working on behalf of the canvas
      window.
    - bpo-43522: Fix problem with hostname_checks_common_name.
      OpenSSL does not copy hostflags from struct SSL_CTX to
      struct SSL.
    - bpo-42967: Allow bytes separator argument in
      urllib.parse.parse_qs and urllib.parse.parse_qsl when
      parsing str query strings. Previously, this raised
      a TypeError.
    - bpo-43176: Fixed processing of a dataclass that inherits
      from a frozen dataclass with no fields. It is now correctly
      detected as an error.
    - bpo-34463: Fixed discrepancy between traceback and the
      interpreter in formatting of SyntaxError with lineno not
      set (traceback was changed to match interpreter).
    - bpo-41735: Fix thread locks in zlib module may go wrong in
      rare case. Patch by Ma Lin.
    - bpo-26053: Fixed bug where the pdb interactive run command
      echoed the args from the shell command line, even if those
      have been overridden at the pdb prompt.
    - bpo-36470: Fix dataclasses with InitVars and replace().
      Patch by Claudiu Popa.
    - bpo-28577: The hosts method on 32-bit prefix length
      IPv4Networks and 128-bit prefix IPv6Networks now returns
      a list containing the single Address instead of an empty
      list.
    - bpo-32745: Fix a regression in the handling of ctypes’
      ctypes.c_wchar_p type: embedded null characters would cause
      a ValueError to be raised. Patch by Zackery Spytz.
  - Documentation
    - bpo-43959: The documentation on the PyContextVar C-API was
      clarified.
    - bpo-43938: Update dataclasses documentation to express that
      FrozenInstanceError is derived from AttributeError.
    - bpo-43739: Fixing the example code in
      Doc/extending/extending.rst to declare and initialize the
      pmodule variable to be of the right type.
  - Tests
    - bpo-43842: Fix a race condition in the SMTP test of
      test_logging. Don’t close a file descriptor (socket) from
      a different thread while asyncore.loop() is polling the
      file descriptor. Patch by Victor Stinner.
    - bpo-43811: Tests multiple OpenSSL versions on GitHub
      Actions. Use ccache to speed up testing.
    - bpo-43791: OpenSSL 3.0.0: Disable testing of legacy
      protocols TLS 1.0 and 1.1. Tests are failing with
      TLSV1_ALERT_INTERNAL_ERROR.
  - IDLE
    - bpo-43655: IDLE dialog windows are now recognized as
      dialogs by window managers on macOS and X Window.
  - C API
    - bpo-43962: _PyInterpreterState_IDIncref() now calls
      _PyInterpreterState_IDInitref() and always increments
      id_refcount. Previously, calling
      _xxsubinterpreters.get_current() could create an
      id_refcount inconsistency when
      a _xxsubinterpreters.InterpreterID object was deallocated.
      Patch by Victor Stinner.
- Reapplied patches:
  - CVE-2019-5010-null-defer-x509-cert-DOS.patch
  - F00102-lib64.patch
  - SUSE-FEDORA-multilib.patch
  - bpo-31046_ensurepip_honours_prefix.patch
  - python-3.3.0b1-fix_date_time_compiler.patch
- Make sure to close the import_failed.map file after the exception
  has been raised in order to avoid ResourceWarnings when the
  failing import is part of a try...except block.

OBS-URL: https://build.opensuse.org/request/show/890780
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python38?expand=0&rev=13
2021-05-12 17:31:05 +00:00
_multibuild osc copypac from project:devel:languages:python:Factory package:python3 revision:376, using expand 2020-07-10 07:12:09 +00:00
.gitattributes osc copypac from project:devel:languages:python:Factory package:python3 revision:376, using expand 2020-07-10 07:12:09 +00:00
.gitignore osc copypac from project:devel:languages:python:Factory package:python3 revision:376, using expand 2020-07-10 07:12:09 +00:00
baselibs.conf - Update pre_checkin.sh and regenerate 2020-07-10 10:55:28 +00:00
bpo34022-stop_hash-based_invalidation_w_SOURCE_DATE_EPOCH.patch Update patches 2020-11-09 12:28:44 +00:00
bpo36302-sort-module-sources.patch osc copypac from project:devel:languages:python:Factory package:python3 revision:376, using expand 2020-07-10 07:12:09 +00:00
bpo-31046_ensurepip_honours_prefix.patch - Update to 3.8.10: 2021-05-05 15:36:38 +00:00
CVE-2019-5010-null-defer-x509-cert-DOS.patch - Update to 3.8.10: 2021-05-05 15:36:38 +00:00
distutils-reproducible-compile.patch osc copypac from project:devel:languages:python:Factory package:python3 revision:376, using expand 2020-07-10 07:12:09 +00:00
F00102-lib64.patch - Update to 3.8.10: 2021-05-05 15:36:38 +00:00
F00251-change-user-install-location.patch osc copypac from project:devel:languages:python:Factory package:python3 revision:376, using expand 2020-07-10 07:12:09 +00:00
idle3.appdata.xml osc copypac from project:devel:languages:python:Factory package:python3 revision:376, using expand 2020-07-10 07:12:09 +00:00
idle3.desktop osc copypac from project:devel:languages:python:Factory package:python3 revision:376, using expand 2020-07-10 07:12:09 +00:00
import_failed.map - Update pre_checkin.sh and regenerate 2020-07-10 10:55:28 +00:00
import_failed.py Accepting request 889802 from home:bnavigator:branches:devel:languages:python:Factory 2021-05-02 17:07:37 +00:00
macros.python3 Accepting request 869854 from home:bnavigator:branches:devel:languages:python:Factory 2021-02-05 23:09:58 +00:00
PACKAGING-NOTES osc copypac from project:devel:languages:python:Factory package:python3 revision:376, using expand 2020-07-10 07:12:09 +00:00
pre_checkin.sh - Update pre_checkin.sh and regenerate 2020-07-10 10:55:28 +00:00
python3-imp-returntype.patch osc copypac from project:devel:languages:python:Factory package:python3 revision:376, using expand 2020-07-10 07:12:09 +00:00
python38.changes - Update to 3.8.10: 2021-05-05 15:36:38 +00:00
python38.spec - Update to 3.8.10: 2021-05-05 15:36:38 +00:00
python-3.3.0b1-fix_date_time_compiler.patch - Update to 3.8.10: 2021-05-05 15:36:38 +00:00
python-3.3.0b1-localpath.patch osc copypac from project:devel:languages:python:Factory package:python3 revision:376, using expand 2020-07-10 07:12:09 +00:00
python-3.3.0b1-test-posix_fadvise.patch osc copypac from project:devel:languages:python:Factory package:python3 revision:376, using expand 2020-07-10 07:12:09 +00:00
Python-3.8.10.tar.xz - Update to 3.8.10: 2021-05-05 15:36:38 +00:00
Python-3.8.10.tar.xz.asc - Update to 3.8.10: 2021-05-05 15:36:38 +00:00
python.keyring Update python.keyring 2020-09-01 14:04:15 +00:00
README.SUSE osc copypac from project:devel:languages:python:Factory package:python3 revision:376, using expand 2020-07-10 07:12:09 +00:00
skip_random_failing_tests.patch Fix patches 2020-12-22 08:46:18 +00:00
skipped_tests.py - Update pre_checkin.sh and regenerate 2020-07-10 10:55:28 +00:00
sphinx-update-removed-function.patch - Add patch sphinx-update-removed-function.patch to no longer call 2020-12-05 17:29:43 +00:00
subprocess-raise-timeout.patch - Update to 3.8.8: 2021-02-19 16:53:23 +00:00
SUSE-FEDORA-multilib.patch - Update to 3.8.10: 2021-05-05 15:36:38 +00:00

Python 3 in SUSE
==============

* Subpackages *

Python 3 is split into several subpackages, based on external dependencies.
The main package 'python3' has soft dependencies on all subpackages needed to
assemble the standard library; however, these might not all be installed by default.

If you attempt to import a module that is currently not installed, an ImportError is thrown,
with instructions to install the missing subpackage. Installing the subpackage might result
in installing libraries that the subpackage requires to function.


* ensurepip *

The 'ensurepip' module from Python 3 standard library (PEP 453) is supposed to deploy
a bundled copy of the pip installer. This makes no sense in a managed distribution like SUSE.
Instead, you need to install package 'python3-pip'. Usually this will be installed automatically
with 'python3'.

Using 'ensurepip' when pip is not installed will result in an ImportError with instructions
to install 'python3-pip'.


* Documentation *

You can find documentation in seprarate packages: python3-doc and
python3-doc-pdf. These contan following documents:

    Tutorial, What's New in Python, Global Module Index, Library Reference,
    Macintosh Module Reference, Installing Python Modules, Distributing Python
    Modules, Language Reference, Extending and Embedding, Python/C API,
    Documenting Python 

The python3-doc package constains many text files from source tarball.


* Interactive mode *

Interactive mode is by default enhanced with of history and command completion.
If you don't like these features, you can unset the PYTHONSTARTUP variable
in your .profile or disable it system wide in /etc/profile.d/python.sh.