-
Notifications
You must be signed in to change notification settings - Fork 15
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 pyproject toml #115
Conversation
c8fc172
to
5b0f284
Compare
5b0f284
to
e63c2f8
Compare
dependencies = [ | ||
"cadquery == 2.3.1", | ||
] | ||
version = "0.1.0" |
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.
The version key is mandatory, even if it doesn't make much sense for us.
pyproject.toml
Outdated
{ name = "Hannes Badertscher", email = "[email protected]" }, | ||
{ name = "Murray", email = "[email protected]" }, | ||
{ name = "ouabache", email = "[email protected]" }, | ||
{ name = "Raphael Nestler", email = "[email protected]" }, | ||
{ name = "Tubbles", email = "[email protected]" }, | ||
{ name = "U. Bruhin", email = "[email protected]" }, |
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.
I'll remove most contributors and just leave @dbrgn and my as the main authors. U. Bruhin explicitly requested to be removed.
If anyone wants to add themself, they can just do it in a PR and we'll gladly merge it.
ced5630
to
6b40228
Compare
Would it be possible to also configure mypy so we can easily run it locally the same way as on CI? |
Yes I think so. |
6b40228
to
e6bb292
Compare
@ubruhin Done. You can now just call |
Nice! Just one problem: When generating some parts, the output directory
|
Hmm. The proper solution would be to restructure completely to fit a python package style with on folder for the source code. The workaround would be to just exclude some folders manually. I excluded the |
OK the Looks like somehow a package will be created during this command although this repository does not represent a Python package. @rnestler Are you really sure the |
Hmm I tested it on my machine and it didn't create a
I'd argue that it should, since it would make stuff easier.
I guess the upsides are:
Downsides are:
|
Ah true, |
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.
At least it seems to work fine so I think I'm fine with it :)
Sadly flake8 doesn't support pyproject.toml. We could consider moving to ruff.
We'll just mention the main authors for now. If anyone wants to be added they can just make a PR to do so.
We now test all files, just some test modules with less strict options.
If one uses pip install . it will generate a pip installable Python package.
8b93d05
to
d0469bc
Compare
No description provided.