{"repo":"hynek/build-and-inspect-python-package","free":true,"listed":false,"github":"https://github.com/hynek/build-and-inspect-python-package","clone":"git clone https://github.com/hynek/build-and-inspect-python-package.git","description":"Build and Inspect Python Packages in GitHub Actions","language":null,"stars":221,"topics":["action","github-actions","packaging","python"],"license":"MIT","category":"workflow-automation","readme_excerpt":"Never upload a faulty Python package to PyPI again. build-and-inspect-python-package is a GitHub Action that provides the following functionality to Python package maintainers: Builds your package [^backend]. SOURCE DATE EPOCH is set to the timestamp of the last commit, giving you reproducible builds with meaningful file timestamps. [^backend]: Works with any PEP 517-compatible build backend. This includes Hatchling, Flit, Setuptools, PDM, and Poetry. Uploads the built wheel and the source distribution ( SDist ) as GitHub Actions artifacts , so you can download and inspect them from the Summary view of a run, or [ upload them to PyPI automatically ][automated] once the verification succeeds. Lints the wheel contents using check-wheel-contents . Lints the PyPI README using Twine and uploads it as an GitHub Actions artifact for further manual inspection. To level up your PyPI README game, check out hatch-fancy-pypi-readme ! Prints the tree of both SDist and wheel in the CI output, so you don’t have to download the packages, if you just want to check the content list. Prints and uploads the packaging metadata as a GitHub Actions artifact. Popular use cases Build once – use across jobs To increase the fidelity of your tests to what your users will experience, you can build and store your package as a first step, depend on the step in the remaining steps, and – instead of checking out the source tree – retrieve the built packages and run your tests against that . For example, by u","default_branch":null,"files":null,"tree":[],"storefront":"/r/hynek","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/hynek/build-and-inspect-python-package/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}