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

Compatibility with Poetry-based projects #1

Open
amotl opened this issue Jan 5, 2023 · 3 comments
Open

Compatibility with Poetry-based projects #1

amotl opened this issue Jan 5, 2023 · 3 comments
Labels
enhancement New feature or request

Comments

@amotl
Copy link

amotl commented Jan 5, 2023

Dear Frank and Martin,

thanks a stack for conceiving this excellent package.

@gutzbenj recently added it to Wetterdienst on behalf of earthobservations/wetterdienst#841, with some minor adjustments to make it compatible with Poetry. So, I wanted to humbly ask if you would accept a corresponding patch to also make others benefit from those improvements?

With kind regards,
Andreas.

@funkyfuture
Copy link
Contributor

funkyfuture commented Jan 5, 2023

ciao, thanks for the feedback.

afaik poetry doesn't support PEP-621 and doesn't intend to do so. looking at the extension you use, it doesn't seem to be too much of an impact on the codebase. but i wonder how the dispatching logic would look like. would it be much effort to demonstrate that in a PR? i'd like the tool generally assume that metadata is provided as said PEP prescribes. but maybe i would find a concrete proposal simple enough to accept it.

in general i would harshly recommend to not use poetry at all. for applications it can be okay, (see this article why one shouldn't pin versions for libraries). in wetterdienst's (grundsätzlich och danke dafür) case you could think about using pip-freeze in conjunction with container image builds for reproducablity. but that's all not my turf.

whatever the outcome, i'm glad that your colleague could easily extend this tool for your needs. addendum: and i'm totally open to provide better hooks for less code duplication on your side.

@funkyfuture funkyfuture added the enhancement New feature or request label Jan 5, 2023
@amotl
Copy link
Author

amotl commented Jan 5, 2023

Hi Frank,

thanks for your prompt and swift response.

In general i would recommend to not use Poetry at all.

After setuptools v64 gained support for --editable installs the other day, we may get rid of Poetry, and I also stopped using it on more recent projects of mine. However, currently, on Wetterdienst, it is still there, and I believe others are using it as well, so it can be chance to improve the scope of cff-from-621, even if I recognize you are not a fan at all ;].

Looking at the extension you use, it doesn't seem to be too much of an impact on the codebase.

Yeah, I think it looks doable without having too much negative implications.

I wonder how the dispatching logic would look like. Would it be much effort to demonstrate that in a PR?

I can give it a try, and then we can judge about the outcome. Thanks!

I'm totally open to provide better hooks for less code duplication on your side.

Sweet, thank you! Let's have a look at an initial patch, and then let's decide if it would be worth the efforts on your end?

Cheers,
Andreas.

@amotl
Copy link
Author

amotl commented Jan 5, 2023

Thanks also for sharing the article Semantic Versioning Will Not Save You. Reading about Hauptversionserhöhungsangst! 1 made my day ;].

Footnotes

  1. https://hynek.me/articles/semver-will-not-save-you/#fn:3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants