-
Notifications
You must be signed in to change notification settings - Fork 126
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
migrate to https://github.com/hynek/build-and-inspect-python-package/ #524
base: main
Are you sure you want to change the base?
Conversation
RonnyPfannschmidt
commented
Aug 17, 2024
- migrate to pyproject.toml tooling
- migrate to https://github.com/hynek/build-and-inspect-python-package/
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.
LGTM!
Left a few suggestions.
.github/workflows/main.yml
Outdated
run: python -m build --sdist --wheel --outdir dist/ | ||
|
||
name: Packages | ||
path: dist | ||
- name: Publish package | ||
uses: pypa/[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.
While at it let's try the new attestations support:
uses: pypa/gh-action-pypi-publish@v1.9.0 | |
uses: pypa/gh-action-pypi-publish@v1.10.1 | |
with: | |
attestations: true |
pyproject.toml
Outdated
[project] | ||
name = "pluggy" | ||
license = {text = "MIT"} | ||
authors = [{name = "Holger Krekel", 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.
While at it should we update this? Not sure to what exactly though...
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 up for being on the hook
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 up for being on the hook
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 was thinking more if it is appropriate to add pytest core team <[email protected]>
or something like that.
pyproject.toml
Outdated
name = "pluggy" | ||
license = {text = "MIT"} | ||
authors = [{name = "Holger Krekel", email = "[email protected]"}] | ||
classifiers = ["Development Status :: 6 - Mature", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Operating System :: POSIX", "Operating System :: Microsoft :: Windows", "Operating System :: MacOS :: MacOS X", "Topic :: Software Development :: Testing", "Topic :: Software Development :: Libraries", "Topic :: Utilities", "Programming Language :: Python :: Implementation :: CPython", "Programming Language :: Python :: Implementation :: PyPy", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3 :: Only", "Programming Language :: Python :: 3.8", "Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.11"] |
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.
classifiers = ["Development Status :: 6 - Mature", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Operating System :: POSIX", "Operating System :: Microsoft :: Windows", "Operating System :: MacOS :: MacOS X", "Topic :: Software Development :: Testing", "Topic :: Software Development :: Libraries", "Topic :: Utilities", "Programming Language :: Python :: Implementation :: CPython", "Programming Language :: Python :: Implementation :: PyPy", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3 :: Only", "Programming Language :: Python :: 3.8", "Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.11"] | |
classifiers = [ | |
"Development Status :: 6 - Mature", | |
"Intended Audience :: Developers", | |
"License :: OSI Approved :: MIT License", | |
"Operating System :: POSIX", | |
"Operating System :: Microsoft :: Windows", | |
"Operating System :: MacOS :: MacOS X", | |
"Topic :: Software Development :: Testing", | |
"Topic :: Software Development :: Libraries", | |
"Topic :: Utilities", "Programming Language :: Python :: Implementation :: CPython", | |
"Programming Language :: Python :: Implementation :: PyPy", "Programming Language :: Python :: 3", | |
"Programming Language :: Python :: 3 :: Only", | |
"Programming Language :: Python :: 3.8", | |
"Programming Language :: Python :: 3.9", | |
"Programming Language :: Python :: 3.10", | |
"Programming Language :: Python :: 3.11", | |
"Programming Language :: Python :: 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.
The pyproject.toml migration LGTM, I'm not qualified to review the rest. Maybe adding pyproject.fmt first in pre-commit would be great.
4816b4b
to
0723def
Compare
@RonnyPfannschmidt gentle ping here. |
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.
LGTM!
with: | ||
fetch-depth: 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.
Out of curiosity, why is this needed?
And if is needed, why we don't use fetch-depth=0 in the test
job?
@@ -93,9 +103,11 @@ jobs: | |||
|
|||
steps: | |||
- uses: actions/checkout@v4 | |||
- name: Download built packages from the build-package job. |
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.
- name: Download built packages from the build-package job. | |
- name: Download built packages from the check-package job. |
fetch-depth: 0 | ||
|
||
- uses: actions/setup-python@v5 | ||
- name: Download built packages from the build-package job. |
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.
- name: Download built packages from the build-package job. | |
- name: Download built packages from the check-package job. |
Probably worth updating the title/description of the PR before merging. |