asweigart / pyperclip

Python module for cross-platform clipboard functions.
https://pypi.python.org/pypi/pyperclip
BSD 3-Clause "New" or "Revised" License
1.6k stars 193 forks source link

Deprecation warning when installing pyperclip under Python 3.11.0 #232

Open bjkeefe opened 1 year ago

bjkeefe commented 1 year ago

Probably you're already aware of this, but just in case not ...

I just installed Python 3.11.0, and next went to install pyperclip, using pip 22.3. Got a deprecation warning from pip about having to use a legacy method. See attached screenshot. Basically, it looks like pip wants you to use a project.toml file and a wheel package.

hth! And thanks, as always, for pyperclip.

pyperclip-warning

hugovk commented 1 year ago

I believe you can work around this locally by installing wheel yourself.

But both your suggestions are good, and see https://github.com/asweigart/pyperclip/issues/213 for uploading a wheel to PyPI.

bjkeefe commented 1 year ago

Thanks, @hugovk. I am happy enough for the moment to have pyperclip installed. I just thought @asweigart might want to know about this for his own packaging purposes.

dougransom commented 1 year ago

This issue could easily be resolved by replacing setuptools with flit as the build system.