-
Notifications
You must be signed in to change notification settings - Fork 60
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
Modernize #61
Conversation
No longer needed these days.
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.
Great work!
.github/workflows/run-checks.yml
Outdated
- environment: "py38" | ||
python: "3.8" | ||
- environment: "py39" |
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.
No need to change, but realized that matrix.environment
is not used at all, so this matrix could be simplified:
matrix:
python: ["3.8", "3.9", "3.10", "3.11", "3.12"]
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.
Thanks, I also removed the pip upgrade bit since setup-python already does this as I've learned now.
build-backend = "setuptools.build_meta" | ||
|
||
[project] | ||
name = "pytest-{{cookiecutter.plugin_name}}" |
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 do not need any directive for setuptools to work with the src
layout? Neat.
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.
Yes it has "automatic discovery" https://setuptools.pypa.io/en/latest/userguide/package_discovery.html#automatic-discovery
I verified that the sdist and wheel look good (possible I missed something but I don't think so)
`testdir` is soft-deprecated in pytest, `pytester` is the replacement. Fix #51
This PR modernizes things I could see, please see the commits.