Poetry as a build backend #8275
Unanswered
anusonawane
asked this question in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have recently read the article on avoiding direct invocation of setup.py using the new build backend approach(https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html).
I have configured my project as follows in the pyproject.toml:
Utilize the following code to initiate the build process:
poetry build -f wheel
I want to confirm if this setup aligns with the goal of avoiding direct usage of setup.py? just to ensure that my packaging workflow follows the best practices outlined in the article.
Also if this is correct, I want some suggestions on below project structure
Package Structure:
Currently, I'm using the traditional approach with setup.py and building final_module
using the command
python setup.py build bdist_wheel
However, I would like to switch to the modern build backend approach using Poetry
and ensure that I'm following the latest conventions. My
pyproject.toml
file is locatedat the top level (package directory).
pyproject.toml
file is at the top level, how can I configure Poetry to build the final_module subpackage? without creating pyproject.toml in subpackage.Thank you in advance for help.
Beta Was this translation helpful? Give feedback.
All reactions