Page MenuHomeSolus

Update python-pyusb to 1.1.0 and drop python2 support
AbandonedPublic

Authored by algent on Oct 21 2020, 5:03 PM.

Details

Reviewers
JoshStrobl
Group Reviewers
Triage Team
Summary

No changelog available upstream. See git comparison here

Packager notes:
python-pyusb is required only by yubikey-manager which is built with python3.

Signed-off-by: Algent Albrahimi <algent@protonmail.com>

Test Plan
  • Rebuild yubikey-manager and run ykman.
  • Run this example script with elevated privileges:
import usb.core

#Testing with USB Mouse
dev=usb.core.find(idVendor=0x093a,idProduct=0x2510)
ep=dev[0].interfaces()[0].endpoints()[0]
i=dev[0].interfaces()[0].bInterfaceNumber
dev.reset()

if dev.is_kernel_driver_active(i):
    dev.detach_kernel_driver(i)
    
dev.set_configuration()
eaddr=ep.bEndpointAddress

r=dev.read(eaddr,1024)
print(len(r))

Diff Detail

Repository
R2674 python-pyusb
Branch
master
Lint
No Linters Available
Unit
No Unit Test Coverage

Event Timeline

algent created this revision.Oct 21 2020, 5:03 PM
algent requested review of this revision.Oct 21 2020, 5:03 PM
algent edited the summary of this revision. (Show Details)Oct 21 2020, 5:04 PM
JoshStrobl requested changes to this revision.Oct 22 2020, 2:57 PM
JoshStrobl added a subscriber: JoshStrobl.

Did you test this with a yubikey? Otherwise you probably shouldn't be touching this.

This revision now requires changes to proceed.Oct 22 2020, 2:57 PM
algent abandoned this revision.Oct 22 2020, 6:37 PM

No, I don't have a yubikey.