Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
PyVCEchecker opened this issue Feb 15, 2022 · 2 comments

Comments

@PyVCEchecker
Copy link

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
Copy link
Member

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

@dhalbert
Copy link
Contributor

Fixed by #85.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants