Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

lxa_iobus: move the project from setup.py to pyproject.toml #37

Merged
merged 5 commits into from
Mar 20, 2024

Conversation

hnez
Copy link
Member

@hnez hnez commented Mar 13, 2024

The pyproject.toml format is the new and modern way to package python projects. We still use setuptools under the hood to do the packaging, but configure it in the pyproject.toml.

This change also moves the executable scripts from the bin folder, where they were e.g. not caught by flake8 and black by default, into the python project folder itself.

TODO before merging:

@hnez hnez requested a review from SmithChart March 13, 2024 10:56
@hnez hnez self-assigned this Mar 13, 2024
Copy link
Member

@SmithChart SmithChart left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the changes.

I have not worked with pyproject.toml so I am not the expert to comment on it. But please have a look at my comment.

Makefile Outdated Show resolved Hide resolved
@hnez hnez force-pushed the pyproject-toml branch 4 times, most recently from 99f9784 to f8ead7a Compare March 18, 2024 14:02
@hnez hnez marked this pull request as ready for review March 18, 2024 14:04
@SmithChart
Copy link
Member

#36 has been merged. And there are conflicts. Please rebase.

hnez added 5 commits March 20, 2024 12:58
In some circumstances the pip command and python3 -m pip do not point
to the same piece of software.
If this is the case, then python3 -m pip is always the correct one to
use, so play defensively and do the same.

Signed-off-by: Leonard Göhrs <[email protected]>
The pyproject.toml format is the new and modern way to package python
projects. We still use setuptools under the hood to do the packaging,
but configure it in the pyproject.toml.

This change also moves the executable scripts from the bin folder,
where they were e.g. not caught by ruff by default,
into the python project folder itself.

Signed-off-by: Leonard Göhrs <[email protected]>
This is mostly to check that the respective make target stil works,
but maybe the generated wheels can also come in handy.

Signed-off-by: Leonard Göhrs <[email protected]>
@SmithChart SmithChart merged commit fd7ebb1 into linux-automation:master Mar 20, 2024
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants