Skip to content

Commit

Permalink
pyusb compatibility: do not use PyUSB 1.2.0
Browse files Browse the repository at this point in the history
see #256
  • Loading branch information
eblot committed Jul 8, 2021
1 parent 845bc79 commit e2a4eac
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion pyftdi/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

#pylint: disable-msg=missing-docstring

__version__ = '0.53.1'
__version__ = '0.53.2'
__title__ = 'PyFtdi'
__description__ = 'FTDI device driver (pure Python)'
__uri__ = 'http://github.com/eblot/pyftdi'
Expand Down
4 changes: 3 additions & 1 deletion pyftdi/doc/installation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -131,12 +131,14 @@ Python dependencies

Dependencies should be automatically installed with PIP.

* pyusb >= 1.0.0
* pyusb >= 1.0.0, < 1.2.0
* pyserial >= 3.0

Do *not* install PyUSB_ from GitHub development branch (``master``, ...).
Always prefer a stable, tagged release.

PyUSB 1.2.0 also broke the backward compatibility of the Device API, so it will
not work with PyFtdi for the time being.

Installing with PIP
```````````````````
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
pyusb>=1.0
pyusb>=1.0, < 1.2.0
pyserial >= 3.0
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
'Topic :: System :: Hardware :: Hardware Drivers',
]
INSTALL_REQUIRES = [
'pyusb >= 1.0.0',
'pyusb >= 1.0.0, < 1.2.0',
'pyserial >= 3.0',
]
TEST_REQUIRES = [
Expand Down

0 comments on commit e2a4eac

Please sign in to comment.