-
Notifications
You must be signed in to change notification settings - Fork 80
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
Switch to poetry and rename to aiomqtt #210
Conversation
I am busy this week. |
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.
First of all, thank you Felix for taking your time to look into this! :)
Overall it looks great. 👍 I only have some minor comments. Feel free to ask questions. I'll try to elaborate in a timely manner.
I agree with your asyncio-mqtt to aiomqtt rename strategy. 👍 Again, let me know if you need assistance with that. :)
Optional: Prefer "standard" version scheme of PEP 440 for the dependency specifications (e.g., no carets and tildes). PEP 440 is part of PEP 621 and the latter aims to standardize the dependency specification across project management/build systems (poetry, hatch, setuptools, etc.). Might as well hop on board already. :)
8837502
to
bbf6273
Compare
I'd like to make our |
Does any of you have experience with using |
Great idea! 👍 That is one of the more difficult things to maintain manually. PRs usually forget about it or find that its a barrier for contribution.
I'm afraid not. I tried it way back (in another project) but never got a workflow up around it. |
@JonathanPlasse what does this JUnit stuff here and in the test workflow do? Do we still need this? |
Yes, we still need this. |
pre-commit is really starting to annoy me, I just want to test the workflows without pulling in the changes from main |
You can use |
Great to see progress on this issue. 👍 Keep up the good work! :) I have some time the next couple of days to contribute as well. Let me know if you need something from my side. |
6f211dc
to
bb7903c
Compare
Maybe I'm not seeing something, but I can only run the workflows from I'm a bit frustrated with changing the tooling to poetry. This takes a lot more time than I anticipated. Can we remove pre-commit in favor of a script (see Related, the idea to "enable the strict rules and then help contributors fix them" from #217 doesn't work if pre-commit forces contributors to fix things before they commit. If we remove pre-commit I think I can finish this PR with some oversight from Jonathan on the JUnit stuff. Otherwise, I have to pass this on to someone else because I'm missing the time. Independently, I can still update the docs to the new name. |
It's fine with me to disable pre-commit to get the move to poetry done. 👍 If I had to choose between the two, then poetry wins no doubt. :) We have all the checks server-side (via GitHub workflows) anyhow. The idea with pre-commit is that you run the same checks locally first to avoid the wait time (i.e., the wait time for the GitHub workflows to complete). :) That is a nice-to-have feature. We can disable it for now to get things moving. On a side note: Now that we have a poetry-based local environment, we can use that for pre-commit. That is, use |
Also, there is always |
That's a good tip, thanks 🙂 We should definitely add that to the CONTRIBUTING
Right, that's a good thing, I just prefer to run those checks when I want it, and not have them forced on me when I want to commit 😄 Anyways, if I interpret it right, you're for keeping pre-commit as a workflow (which is what is blocking me from testing the updated workflows atm), so I'll focus on replacing all occurrences of "asyncio-mqtt" with "aiomqtt" in the docs, and let someone else finish the move to poetry 😋 |
Ah, I actually didn't realize that we use pre-commit as a driver for our GitHub workflows. 😅 Well, let's get the rename done with. Then we'll tackle the move the poetry in another PR. :) 👍 |
I just looked the GitHub workflow files. I can't see any reference to pre-commit there. Am I missing something? |
This is a GitHub app which must be disabled. |
You should be able to disable it Here |
Ping @frederikaalund in case this got lost 😉 |
Sorr about that! 😅 It did get lost among my other work. I just suspended the pre-commit app. Let me know if you need something more! 👍 |
68c35c8
to
0b90383
Compare
f73c05d
to
0a8bfdf
Compare
@JonathanPlasse, any idea why the PyPy tests keep failing? The other tests work fine, and I can't wrap my head around the (Solved by pinning the |
60451bc
to
7a0e253
Compare
7a0e253
to
54ebb37
Compare
This is finally finished! @frederikaalund, can you rename the repository on GitHub? I've updated all the links and mentions to the new name, that's the only thing missing. @mossblaser, thank you again for generously liberating the aiomqtt name! 🎉 😎 |
Done! Thank you @empicano for (yet another) great contribution to asyncio-mqtt! 😄👍 And thanks to @mossblaser for the aiomqtt name. :) Makes me nostalgic, because mossblaser's aiomqtt was my original motivation for asyncio-mqtt. |
Hah, glad to hear it led to less hacky things!
I'd welcome a suitable message to be inserted into my old aiomqtt repo's readme pointing people to your project if you'd be happy to suggest some suitable words?
…On Tue, 13 Jun 2023, at 6:29 PM, Frederik Aalund wrote:
> This is finally finished! @frederikaalund <https://github.com/frederikaalund>, can you rename the repository on GitHub?
>
Done!
Thank you @empicano <https://github.com/empicano> for (yet another) great contribution to asyncio-mqtt! 😄👍
And thanks to @mossblaser <https://github.com/mossblaser> for the aiomqtt name. :) Makes me nostalgic, because mossblaser's aiomqtt was my original motivation for asyncio-mqtt.
—
Reply to this email directly, view it on GitHub <#210 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AABPH2UDEL2RHTWG3RNLVGLXLCPRHANCNFSM6AAAAAAXSHKCI4>.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
I already like the current You might prefer aiomqtt section. :) Thank you for that, btw. |
Finally found some time for this! @frederikaalund, @JonathanPlasse, if you could look over the
pyproject.toml
that would be great, in particular, I'm not sure if I configured thepoetry-dynamic-versioning
right.I published it on Test PyPI: https://test.pypi.org/project/aiomqtt-test/0.16.1.post59
In this PR I still want to update all references from asyncio-mqtt to aiomqtt in the documentation and the code. When the PR is merged I would release
0.17.0
both under the aiomqtt and the asyncio-mqtt names. For asyncio-mqtt I would add a log warning explaining the rename and the migration and publish it manually. Then I would change the name of the repository on GitHub (which also updates the URL of the documentation).Contrary to what I proposed in #202 I would make this the last release for asyncio-mqtt. The rename doesn't break anything for asyncio-mqtt users that want to stay with the old name, and the migration should be straightforward. Also, I admit that I don't know how to publish to two names automatically and expect this to be unnecessarily complex.
Let me know what you think! 😊