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

Feat: Support for other python package tools and not assuming setup.py is present #114

Open
lsfischer opened this issue May 16, 2023 · 1 comment
Assignees
Labels
type: enhancement New feature or request

Comments

@lsfischer
Copy link

lsfischer commented May 16, 2023

Describe Request:

The command python/dist assumes the presence of a setup.py

python setup.py sdist
python setup.py bdist_wheel

however since PEP-621 pyproject.toml is the preferred way to package python projects.
I suggest a bit of tooling is created to identify which configuration file is in use for a project and not assume a file which is not the standard (even if it is the de facto standard).

Python docs also mention using the build module to generate distribution archives instead

pip install build && python -m build

Examples:

Assuming the existence of setup.py leads to errors for projects that do not include it
image

Supporting Documentation Links:

@lsfischer lsfischer changed the title Support for other python package tools and not assuming setup.py is present Feat: Support for other python package tools and not assuming setup.py is present May 19, 2023
@marboledacci marboledacci added the type: enhancement New feature or request label Oct 11, 2024
@marboledacci
Copy link
Contributor

Hi @lsfischer, the parameter build-tool allows to pass two values, wheel and build, it defaults to wheel. When you pass build, the strategy you mentioned is used: pip install build && python -m build.

If setting build-tool to build doesn't work, please give me more details about the solution you would like.

@marboledacci marboledacci self-assigned this Oct 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants