spotify-cli icon indicating copy to clipboard operation
spotify-cli copied to clipboard

Add 3.10 support by fixing PyInquirer dependency

Open vinlin24 opened this issue 3 years ago • 0 comments

Users with Python 3.10+ installed face issue #23 caused by the PyInquirer dependency. However, I noticed that this issue is only present in the PyPI release. The official GitHub repository, although not updated for a while, is ahead of this release and supports 3.10, so I simply changed the dependency in setup.py to pull from this repo instead of from PyPI. Expectedly, this affects the files:

  • setup.py
  • cli/commands/auth.py
  • cli/commands/devices.py

I also made a change to cli/spotify.py since the --version flag implemented by click.version_info would fail to detect the package name. I don't know if this issue is unique to my development environment, but I updated the decorator just in case. Users still see the same output, spotify-cli, version X.Y.Z.

vinlin24 avatar Sep 19 '22 02:09 vinlin24