Skip to content

Create check of built packages #494

@ArBridgeman

Description

@ArBridgeman

Summary

Some of the projects using the PTB upload distribution packages to PyPi. As we've run into issues before with this, it would be useful to add a step in the CI where we test that the packages do not have known errors. Like in
exasol/script-languages-container-tool#307, we could create a step and corresponding nox task that:

# to create the build files
poetry build
# to analyze the build files 
poetry run -- twine check ./dist/*

Checking ./dist/exasol_script_languages_container_tool-3.4.0-py3-none-any.whl: FAILED
ERROR    `long_description` has syntax errors in markup and would not be rendered on PyPI.                                                                                                         
         line 168: Error: Unknown interpreted text role "doc".                                                                                                                                     
Checking ./dist/exasol_script_languages_container_tool-3.4.0.tar.gz: FAILED
ERROR    `long_description` has syntax errors in markup and would not be rendered on PyPI.                                                                                                         
         line 168: Error: Unknown interpreted text role "doc". 

Any errors produced by poetry build and poetry run -- twine check ./dist/* would result in a red build.

Metadata

Metadata

Labels

featureProduct feature

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions