zestsoftware / zest.releaser

Python software releasing made easy and repeatable
https://zestreleaser.readthedocs.io
GNU General Public License v2.0
198 stars 62 forks source link

Build distributions in an isolated environment. #449

Closed mauritsvanrees closed 3 weeks ago

mauritsvanrees commented 3 weeks ago

Otherwise build cannot install packages needed for the build system, for example hatchling. Fixes issue #448.

I see a few test failures locally, which should only be small differences in the output during release. Let's see if they are there on GitHub as well.

Code is taken from how build does it itself.

mauritsvanrees commented 3 weeks ago

I found out what was going wrong in the tests. This actually has nothing to do with the changes in this PR. The scheduled tests already fail. It took a long time before I saw what the actual diff was. Wwith setuptools>=69.3 sdists get an underscore. Instead of tha.example-0.1.tar.gz you get tha_example-0.1.tar.gz.

Okay, I have updated the tests. See commit 934ffb7a09e7db999a4220c90e9320d505cda1ac for more details.