adafruit / Adafruit_CircuitPython_BusDevice

Two helper classes that handle transaction related state for I2C and SPI including locks.
MIT License
108 stars 76 forks source link

“python_requires” should be set with “>=3.4”, as adafruit-circuitpython-busdevice 5.1.4 is not compatible with all Python versions. #81

Closed PyVCEchecker closed 2 years ago

PyVCEchecker commented 2 years ago

Currently, the keyword argument python_requires of setup() is not set, and thus it is assumed that this distribution is compatible with all Python versions. However, I found it is not compatible with Python <3.4. My local Python version is 2.7, and I encounter the following error when executing “pip install adafruit-circuitpython-busdevice”

Collecting adafruit-circuitpython-busdevice
  Downloading adafruit-circuitpython-busdevice-5.1.4.tar.gz (28 kB)
ERROR: Could not find a version that satisfies the requirement Adafruit-Blinka (from adafruit-circuitpython-busdevice) (from versions: none)
ERROR: No matching distribution found for Adafruit-Blinka (from adafruit-circuitpython-busdevice)

Dependencies of this distribution are listed as follows:

"Adafruit-Blinka"

I found that Adafruit-Blinka requires Python>=3.4, which results in installation failure of adafruit-circuitpython-busdevice in Python 2.7.

Way to fix: modify setup() in setup.py, add python_requires keyword argument:

setup(…
     python_requires=">=3.4"
     …)

Thanks for your attention. Best regrads, PyVCEchecker

tekktrik commented 2 years ago

Hi, this library actually went through some changes, and it actually requires Python 3.7+ now. Thanks for finding this!

dhalbert commented 2 years ago

Fixed by #85.