Skip to content

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

Merged
merged 4 commits into from
Oct 25, 2021

Conversation

king-alexander
Copy link
Contributor

Closes #9225.

@@ -226,7 +226,7 @@ jobs:

- name: Build package
run: |
python setup.py sdist bdist_wheel
python -m build
Copy link
Member

@nicoddemus nicoddemus Oct 22, 2021

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?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor Author

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.

@@ -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
Copy link
Member

@nicoddemus nicoddemus Oct 22, 2021

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

Suggested change
pip install --upgrade wheel setuptools build setuptools_scm[toml]>=6 tox
pip install --upgrade wheel build tox

Can you confirm @RonnyPfannschmidt ?

Copy link
Member

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?

Copy link
Member

@bluetech bluetech left a 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!

@bluetech bluetech merged commit 14e0320 into pytest-dev:main Oct 25, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Don't use python setup.py sdist bdist_wheel in release CI workflow
4 participants