<div dir="ltr"><div>This POC outlines the pros and cons nicely. Thanks for sharing it. Not being able to work in editable mode tells me we can't fully adopt poetry currently, but maybe others fill differently.</div><div><br></div><div>I would like to discuss unblocking the automated release machinery goal. To do that in the best way possible, I believe we need to move the requirements out of setup.py and to their own requirements.txt file. I have a few motivations:</div><div>* bump2version can't operate on setup.py correctly when there are other versions in there. See PR convo here: <a href="https://github.com/pulp/pulp_file/pull/390#discussion_r423272806">https://github.com/pulp/pulp_file/pull/390#discussion_r423272806</a></div><div>* tools like pip can't natively inspect/install the requirements except when installing the package itself<br></div><div><br></div><div>By doing ^, we would be able to continue on the plugin_template version of this <a href="https://github.com/pulp/pulp_file/pull/390">https://github.com/pulp/pulp_file/pull/390</a>  The implications are though that each plugin would need to move it's requirements from setup.py to a dedicated file.<br></div><div><br></div><div>What do you think?  </div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, May 12, 2020 at 6:35 PM Fabricio Aguiar <<a href="mailto:fabricio.aguiar@redhat.com" target="_blank">fabricio.aguiar@redhat.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Due pulp_installer issue <a href="https://pulp.plan.io/issues/6623" target="_blank">https://pulp.plan.io/issues/6623</a> and the epic for plugins: <a href="https://pulp.plan.io/issues/6707" target="_blank">https://pulp.plan.io/issues/6707</a><div><br></div><div>I wanted to try Poetry[1] and see how far I could go.</div><div><br></div><div>So I started a PoC[2] on pulp_file, and I will share the pros and cons</div><div>pros:</div><div>- Manages the dependencies for us (creating a poetry.lock file)</div><div>- Easy to build and publish packages</div><div>- Easy to track dependencies</div><div>- With the latest version of pip, users are able to install using just pip install [3]</div><div><br></div><div>cons:</div><div>- Poetry does not work well in editable mode for multiple plugins [4]</div><div>- Developers need to install poetry to add/remove the dependencies</div><div><br></div><div>This email is not a call for action, I just wanted to share my findings in case other people were thinking about adopting poetry. I didn't explore it too much, so my conclusions may be wrong.</div><div>In case you wanna play with it, take a look at the PR: <a href="https://github.com/pulp/pulp_file/pull/391" target="_blank">https://github.com/pulp/pulp_file/pull/391</a></div><div><br></div><div>[1] <a href="https://python-poetry.org/" target="_blank">https://python-poetry.org/</a></div><div>[2] <a href="https://github.com/pulp/pulp_file/pull/391" target="_blank">https://github.com/pulp/pulp_file/pull/391</a></div><div>[3] <a href="https://github.com/pulp/pulp_file/pull/391#issuecomment-627407691" target="_blank">https://github.com/pulp/pulp_file/pull/391#issuecomment-627407691</a></div><div>[4] <a href="https://github.com/python-poetry/poetry/issues/34#issuecomment-586440285" target="_blank">https://github.com/python-poetry/poetry/issues/34#issuecomment-586440285</a></div><div><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><br>Best regards,</div><div dir="ltr"><span style="color:rgb(0,0,0);font-family:RedHatText,sans-serif;font-size:14px;font-weight:700;text-transform:capitalize">Fabricio</span><span style="color:rgb(0,0,0);font-family:RedHatText,sans-serif;font-size:14px;font-weight:700;text-transform:capitalize"> </span><span style="color:rgb(0,0,0);font-family:RedHatText,sans-serif;font-size:14px;font-weight:700;text-transform:capitalize">Aguiar</span><div>Software Engineer, Pulp Project</div><div><a href="https://www.redhat.com/" style="color:rgb(0,136,206);font-family:RedHatText,sans-serif;font-size:12px;margin:0px" target="_blank">Red Hat Brazil - Latam</a><br></div><div>+55 11 999652368</div><div><img src="https://marketing-outfit-prod-images.s3-us-west-2.amazonaws.com/f5445ae0c9ddafd5b2f1836854d7416a/Logo-RedHat-Email.png" width="96" height="22"></div></div></div></div></div></div></div>
_______________________________________________<br>
Pulp-dev mailing list<br>
<a href="mailto:Pulp-dev@redhat.com" target="_blank">Pulp-dev@redhat.com</a><br>
<a href="https://www.redhat.com/mailman/listinfo/pulp-dev" rel="noreferrer" target="_blank">https://www.redhat.com/mailman/listinfo/pulp-dev</a><br>
</blockquote></div>