Open isomorphik7 opened 1 year ago
Hello! I am Nyuydine Bill an applicant for outreachy internship, I wish to know if this issue is still relevant so I can start working on it Thanks @clebergnu
Hi @NyuydineBill, thanks for reaching out. Yes, this issue still is relevant. As a matter of fact, it's being addressed right now, but you may also be able to help.
There may be a simple fix to each of the warnings being produced, and if you are able to come up with these fixes, they'd be more than welcome.
But, I've chosen to take on this issue from a different angle: removing the setuptools dependency from Avocado. The reason is that Python 3.12 and later standard installations do not come with setuptools, and having an Avocado installation that depends only on Python itself is very attractive.
The first part of the work is removing Avocado's dependency on pkg_resources
. This is a WIP so you shouldn't worry about it.
But, with the removal of setuptools, we must change the way we describe and perform Avocado's packaging. Converting Avocado's setup.py
to a project.toml
is most probably the way to go, see https://packaging.python.org/en/latest/.
If you want to experient with that, it'd be greatly appreciated.
Describe the bug
When attempting to install Avocado from source using the
./setup.py install --user
command, I encountered several deprecation warnings. These warnings seem to be related to the use of deprecated setuptools features.Steps to reproduce
git clone https://github.com/avocado-framework/avocado.git
)cd avocado
)./setup.py build
./setup.py install --user
Expected behavior
The installation process should complete without any deprecation warnings.
Current behavior
The installation process emits multiple deprecation warnings related to setuptools. These warnings relate to:
setup.py install
being deprecatedavocado.etc.avocado.scripts.job
,avocado.etc.avocado.sysinfo
, andavocado.libexec
being installed as data, which is deprecatedSystem information
Additional information
Despite the warnings, the package appears to install successfully, but I am concerned that these warnings indicate potential future compatibility issues.
Here's a snippet of the warnings: