Bug 2062187 - pysvn fails to build with Python 3.11: DeprecationWarning: Use setlocale(), getpreferredencoding(False) and getlocale() instead of getdefaultlocale()
Summary: pysvn fails to build with Python 3.11: DeprecationWarning: Use setlocale(), g...
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: pysvn
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Caitlyn O'Hanna
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
: 2098794 (view as bug list)
Depends On:
Blocks: PYTHON3.11 F37FTBFS F37FailsToInstall
TreeView+ depends on / blocked
 
Reported: 2022-03-09 10:51 UTC by Tomáš Hrnčiar
Modified: 2022-06-21 16:06 UTC (History)
5 users (show)

Fixed In Version: pysvn-1.9.18-1.fc37
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-06-21 16:06:32 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Tomáš Hrnčiar 2022-03-09 10:51:45 UTC
pysvn fails to build with Python 3.11.0a6.

Info: Against   test-01.unix.new.log
Error: Test failed - test-01.unix.new.log
Error: --------------------------------------------------------------------------------
Error:         Result(16)  insert <workdir>/Examples/Client/svn_cmd.py:75: DeprecationWarning: Use setlocale(), getpreferredencoding(False) and getlocale() instead
Error:         Result(17)  insert   language_code, encoding = locale.getdefaultlocale()
Error: --------------------------------------------------------------------------------

The locale.getdefaultlocale() function is deprecated and will be removed in Python 3.13. Use locale.setlocale(), locale.getpreferredencoding(False) and locale.getlocale() functions instead. (Contributed by Victor Stinner in bpo-46659.)

https://bugs.python.org/issue46659
https://docs.python.org/3.11/whatsnew/3.11.html

For the build logs, see:
https://copr-be.cloud.fedoraproject.org/results/@python/python3.11/fedora-rawhide-x86_64/03648264-pysvn/

For all our attempts to build pysvn with Python 3.11, see:
https://copr.fedorainfracloud.org/coprs/g/python/python3.11/package/pysvn/

Testing and mass rebuild of packages is happening in copr. You can follow these instructions to test locally in mock if your package builds with Python 3.11:
https://copr.fedorainfracloud.org/coprs/g/python/python3.11/

Let us know here if you have any questions.

Python 3.11 is planned to be included in Fedora 37. To make that update smoother, we're building Fedora packages with all pre-releases of Python 3.11.
A build failure prevents us from testing all dependent packages (transitive [Build]Requires), so if this package is required a lot, it's important for us to get it fixed soon.
We'd appreciate help from the people who know this package best, but if you don't want to work on this now, let us know so we can try to work around it on our side.

Comment 1 Miro Hrončok 2022-06-20 10:16:20 UTC
*** Bug 2098794 has been marked as a duplicate of this bug. ***


Note You need to log in before you can comment on or make changes to this bug.