-
Notifications
You must be signed in to change notification settings - Fork 3
Switch packaging from setuptools to poetry #6
Switch packaging from setuptools to poetry #6
Conversation
If you're feeling up to it, the dev-guide will need an updated section regarding packaging. Let me know if you want to take a stab at that. |
I can change the things updated here, if there are other necessary changes (maybe to the token part?) I'll leave that to someone else. |
A couple of general comments:
|
I don't have a strong opinion either way on this, happy to switch to
Hmm, do you know if that's true for flit's "new-style metadata", or only the older
I have no experience with tox, is this something you could contribute to? |
That's a spicy discussion, and I found it better to read the blog post here: https://hynek.me/articles/testing-packaging/ The biggest advantage using
This occurs quite often (by accident) unless you
Perhaps that's a reason to recommend poetry over
This was echoed by @ninad-kamat and is being used for PyPRIME. Follow-up PR and discussion points: |
@akaszynski for the dependabot question, I think we just need to try it out.. do you already have a dummy project to test dependabot somewhere, or should I create one? |
Dependabot on github is not exactly the same code as the public https://github.com/dependabot/dependabot-core repo, it's a little behind development, but there is no support for We could look at hosting it ourselves, and I looked into this internally, but it's very much not a plug-and-play solution. |
@akaszynski I did experiment with tox and it is pretty good. I am actually planning to move our CI/CD internally to move to tox. This allows me to use the same command on CI/CD as I would during development and also control the environment where the specific scenario is run. It allows a really easy framework to test different versions of python and have doc, style check, coverage or any other items that we would want to cover under a simple |
Ok, shall we postpone merging this until after tomorrow's discussion? For tox, we should probably open a separate issue to discuss details. |
Separate issue/PR for I like the python approach of
I hope we can at least present our opinion of that approach, especially as it can be hard to settle on a standard given the number of competing and changing approaches out there. |
@akaszynski @greschd @da1910 Created #7 to track the tox discussion. |
Let's wait to merge this until we check out |
I have played around with dependabot a bit here: https://github.com/pyansys/test-dependabot-repo/pulls My takeaways are:
The A general note on poetry is that it does both package building and management of (development) virtual environments. There's a way to use an existing venv, but it's not the default flow. If we want to include dependabot in the template (my opinion: probably yes), I would suggest using poetry with the |
I'm not deadset on Let's go with |
@akaszynski the poetry version (and |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Solid LGTM. Proof will be in the pudding, but I think this is a good standard to have, especially knowing the popularity of poetry
.
Switch the build backend from
setuptools
toflit
, and move the information insetup.py
and therequirements_*.txt
files topyproject.toml
.