Skip to content

Don't use python setup.py sdist bdist_wheel in release CI workflow #9225

@bluetech

Description

@bluetech

Currently our release CI workflow uses python setup.py sdist bdist_wheel to create the sdist and wheel artifacts which are uploaded to PyPI during a release:

- name: Build package
run: |
python setup.py sdist bdist_wheel

According to this article, invoking setup.py is no longer a good way to do things. In this particular case, the replacement is the build package, so we should switch to that!

How to test this?

Testing this in the pytest PR CI is not going to be possible. Just testing it locally, that the correct packages are generated, in the same place as setup.py would put them, is probably sufficient. But if you want to go the extra mile, you could create a test token on PyPI test instance and run the workflow in your fork (note: you'll need to edit this condition).

Metadata

Metadata

Assignees

No one assigned

    Labels

    good first issueeasy issue that is friendly to new contributortype: infrastructureimprovement to development/releases/CI structure

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions