h4 / lywsd02

MIT License
169 stars 34 forks source link

lywsd02-0.0.9-py3.11.egg is deprecated message #37

Open standby24x7 opened 10 months ago

standby24x7 commented 10 months ago

OS: Fedora 37 python 3.11 pip 23.3.1 Install latest lywsd02 from git (HEAD: 364b228922540babc )

Symptom After I install lywsd02 from latest source, everytime I execute pip,
it makes following warning message.

$ pip list |more DEPRECATION: Loading egg at /usr/local/lib/python3.11/site-packages/lywsd02-0.0.9-py3.11.egg is deprecated. pip 24.3 will enforce this behaviour change. A possible replacement is to use pip for package installation.. Discussion can be found at https://github.com/pypa/pip/issues/12330

How to reproduce the issue (1) git clone https://github.com/h4/lywsd02.git (2) cd lywsd02 (3) sudo python ./setup.py (4) pip list

Expected result: pip doesn't produce any warning messages.

Actual result : pip produces warning messages.

FYI https://github.com/pypa/pip/issues/12330

pip has dropped support for installing .egg distributions when it stopped invoking setup.py install. At some point pip will abandon support for detecting and uninstalling legacy .egg distributions too.

If you reach this issue from the pip deprecation message, it is likely that your Python environment has distributions that have been installed with setup.py install, easy_install, or an older pip version.

If installing module using setup.py cause this message, I hope you will create a newer version and upload it to https://pypi.org/project/lywsd02/