Upgrade to pyproject.toml#78
Upgrade to pyproject.toml#78CharlieAtSchneider wants to merge 13 commits intoschneider-electric:masterfrom
Conversation
|
This is the first step in a series of PRs. In the current state, it doesn't work properly. The next PR will address that |
|
There's still way too much going on at once for my taste.
Most of these things are very useful, even though I disagree with some (perhaps misguided!). It's much easier to make progress with the non-controversial stuff if you keep them separate from the bigger changes.
This is also a bit of a red flag -- smaller changes should make it easier to keep mainline working at all times. |
|
Alright, I removed some of the changes. However, the transition between build systems inherently requires a lot of changes. I don't think I can reduce it any further for one logical commit. The dependency to uv is something we have used internally at Schneider for a while now. It simplifies a lot of things when working in the Python ecosystem:
And you don't really need to use uv. pyproject.toml is standardized, and only uv_build (replacing setup.py) makes use of uv. I think it's rather elegant. Simply one command to run everything, similar to something like Cargo for Rust. We use it a lot at Schneider to speed up our CI too. (lot's of slow pip commands quickly adds up) Regarding the hard dependency on new dependencies, that's just me being used to packaging Rust, where newer dependencies always are better, unlike Python, where that can hinder usability for others using the library. Regarding the red flag - I never got pyas1ate to work. It crashes whenever I run |
|
Also, good thing you mentioned pyasn1 is only a dev dependency - now that is reflected in pyproject.toml too! |
|
I could remove uv pretty easily, but I would need to change the build system to something like hatch for that to work. |
|
uv is now removed as a development dependency. As a result, the project currently lacks any kind of build system. The next PR will fix that |
|
Please update the LICENSE.txt file to a BSD-3 standard license. Thx |
I guess I've never had that problem. I've used I don't want to stand in the way of improvement, especially since I no longer use |
|
@mickaelgouet-se I think it's already correctly licensed? Am I missing something? That text looks like a BSD license to me |
|
Alright, I think the last set of commits added some compromises that makes everyone happy! Now there are instructions on how to test and build the project. (tests still fails though, but not because of any changes I have made) |
@nyameen-se can you please help? I believe you raised this concern |
Right, I was expecting to see BSD 3 Clause in the license file, but according to the text, it is BSD 3 Clause. This example repo has the first line of the |
|
I'm going to drop out of review, I don't seem to be getting my point across about more focused patches. Enjoy! Please do keep me in the loop for functional changes to the parser/code generator, I might remember something relevant there. |
No description provided.