Skip to content

Commit

Permalink
Add a test and a changenote for RECORD in subdirs issue
Browse files Browse the repository at this point in the history
  • Loading branch information
MrMino committed Jul 18, 2024
1 parent 2f03788 commit 5947382
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
10 changes: 10 additions & 0 deletions tests/test_wheels_with_vendoring.py
Original file line number Diff line number Diff line change
@@ -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}"
)

0 comments on commit 5947382

Please sign in to comment.