Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.
Bug 1959317 - python-execnet with Python 3.10: DeprecationWarning: isSet() is deprecated, use is_set() instead
Summary: python-execnet with Python 3.10: DeprecationWarning: isSet() is deprecated, u...
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: python-execnet
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Miro Hrončok
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: PYTHON3.10 1959305
TreeView+ depends on / blocked
 
Reported: 2021-05-11 09:25 UTC by Miro Hrončok
Modified: 2021-05-11 14:35 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-05-11 14:35:48 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github pytest-dev execnet pull 127 0 None closed Update threading.Event.isSet() calls 2021-05-11 13:28:35 UTC

Description Miro Hrončok 2021-05-11 09:25:37 UTC
execnet emits the following warning on Python 3.10:

  File "/usr/lib64/python3.10/threading.py", line 557, in isSet
    warnings.warn('isSet() is deprecated, use is_set() instead',
DeprecationWarning: isSet() is deprecated, use is_set() instead

https://docs.python.org/3.10/whatsnew/3.10.html#deprecated

"""
The following threading methods are now deprecated:

    threading.currentThread => threading.current_thread()

    threading.activeCount => threading.active_count()

    threading.Condition.notifyAll => threading.Condition.notify_all()

    threading.Event.isSet => threading.Event.is_set()

    threading.Thread.setName => threading.Thread.name

    threading.thread.getName => threading.Thread.name

    threading.Thread.isDaemon => threading.Thread.daemon

    threading.Thread.setDaemon => threading.Thread.daemon
"""


This is just a warning, but other packages might treat it as error and fail to build, see bz1959305.

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.10:
https://copr.fedorainfracloud.org/coprs/g/python/python3.10/

Let us know here if you have any questions.

Python 3.10 will be included in Fedora 35. To make that update smoother, we're building Fedora packages with early pre-releases of Python 3.10.
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 2021-05-11 13:27:19 UTC
This also makes pytest fail to build with 3.10. I'll take it.

Comment 3 Miro Hrončok 2021-05-11 13:57:35 UTC
*** Bug 1959305 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.