-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Change the command for package building in release CI workflow #9229
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
Conversation
@@ -226,7 +226,7 @@ jobs: | |||
|
|||
- name: Build package | |||
run: | | |||
python setup.py sdist bdist_wheel | |||
python -m build |
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.
Don't we need to install this in the Install dependencies
step above?
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 needs a install of build or a pipx call
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 added build to the Install dependencies
step.
.github/workflows/main.yml
Outdated
@@ -222,11 +222,11 @@ jobs: | |||
- name: Install dependencies | |||
run: | | |||
python -m pip install --upgrade pip | |||
pip install --upgrade wheel setuptools setuptools_scm[toml]>=6 tox | |||
pip install --upgrade wheel setuptools build setuptools_scm[toml]>=6 tox |
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.
Technically we should not install setuptools explicitly, neither setuptools_scm
I think
pip install --upgrade wheel setuptools build setuptools_scm[toml]>=6 tox | |
pip install --upgrade wheel build tox |
Can you confirm @RonnyPfannschmidt ?
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.
wheel
is specified in the pyproject.toml, maybe we don't need to install it explicitly either?
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 @king-alexander, LGTM!
Closes #9225.