-
Notifications
You must be signed in to change notification settings - Fork 39
Use hatchling instead of setuptools #626
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
Use hatchling instead of setuptools #626
Conversation
69b769d to
b5d0407
Compare
dhellmann
left a comment
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.
This is much closer to what I was expecting. A few comments inline.
pyproject.toml
Outdated
| scripts.check = [ | ||
| "mypy -p fromager", | ||
| "mypy tests/", | ||
| ] |
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 think this could be a second command in the linter env, couldn't it?
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.
We already have mypy check in workflows/check.yaml however the [tool.hatch.envs.mypy] section will be useful for
- Enabling developers to run MyPy locally in the same way CI does.
- Serving as the configuration for the MyPy environment if/when you update your CI workflow to use hatch commands.
64ae734 to
07c38e6
Compare
|
How about you split the PR into two, one for replacing We like to move more projects away from setuptools, because it has become a liability. Upstream has been introducing breaking changes and bugs a bunch of times. I'd like to use your work as a blueprint to promote |
|
@tiran Agree. I will split this PR in to two. |
b0b20f0 to
6909b69
Compare
7bd7051 to
5ee64de
Compare
dhellmann
left a comment
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'm going to wait for CI to finish before approving, but this looks OK to me.
Fixes python-wheel-build#619 Signed-off-by: Lalatendu Mohanty <lmohanty@redhat.com>
2ae1346 to
5e47f8b
Compare
|
The PR looks good to me. Thanks @LalatenduMohanty |
…pt-2-using-hatch Use hatchling instead of setuptools Signed-off-by: Lalatendu Mohanty <lmohanty@redhat.com>
…pt-2-using-hatch Use hatchling instead of setuptools Signed-off-by: Lalatendu Mohanty <lmohanty@redhat.com>
…pt-2-using-hatch Use hatchling instead of setuptools Signed-off-by: Lalatendu Mohanty <lmohanty@redhat.com>
Fixes #619
A different approach as compared to #618