sapcc/redfish-exporter

Use standard Python Project layout

Opened this issue · 1 comments

To distribute this project further through the means of PyPi, downstream Linux distributions and the likes it is recommended to use a project layout that the Python build systems can support.

One of the most recommended ones is the src-layout.

When attempting to build an RPM out of this project this fails with the following message:

[   22s] + /usr/bin/python3.10 -mpip wheel --verbose --progress-bar off --disable-pip-version-check --use-pep517 --no-build-isolation --no-deps --wheel-dir ./build .
[   22s] ERROR: Directory '.' is not installable. Neither 'setup.py' nor 'pyproject.toml' found.
[   22s] error: Bad exit status from /var/tmp/rpm-tmp.ULsuyp (%build)

I am working on this already.