diff --git a/CHANGELOG.md b/CHANGELOG.md index 4738b9f..73cff7b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -22,6 +22,10 @@ Versioning](https://semver.org/spec/v2.0.0.html). `WHEEL` file is corrupted or wrong, the `.wheeldata` will be set to `None`, as opposed to `.metadata` as was the case previously. Thanks to [mboisson](https://github.com/mboisson) for spotting this and the fix. +- Writing a `.dist-info/RECORD` file in a subdirectory of the archive will no + longer trigger an `AssertionError`. This should help with vendoring packages + inside wheels. Thanks to [mboisson](https://github.com/mboisson) for + providing a fix. ## [0.0.8] - 2021-08-03 ### Changed diff --git a/tests/test_wheels_with_vendoring.py b/tests/test_wheels_with_vendoring.py new file mode 100644 index 0000000..0d0283a --- /dev/null +++ b/tests/test_wheels_with_vendoring.py @@ -0,0 +1,10 @@ +import pytest + + +def test_allows_writing_record_files_in_subdirectories(wf): + try: + wf.writestr("some/subdir/.dist-info/RECORD", "additional record file") + except Exception as exc: + pytest.fail( + f"Write failed, indicating inability to write RECORD in subdirs: {exc!r}" + )