Releases: Terseus/python-io-chunks
Releases · Terseus/python-io-chunks
v2.0.0
[2.0.0] - 2022-11-18
Added
- Add isort, black, pre-commit.
- Add typing, mypy.
- Now
RawIOChunkinstances can be closed. - Add
ClosedStreamErrorexception, which inherits fromValueError. - Now
RawIOChunkinstances can be used as a context manager. - Implement
truncateforRawIOChunk. - Add tests to ensure that
RawIOChunkbehaves consistently with all the other
NowRawIOChunkimplementsIOinterface. - Implement
IOinterface forRawIOChunk. - Add
exceptions.py. - Add tox.
Removed
- Remove Python 2 support.
Changed
- Change
README.rsttoREADME.md. - Replace
setup.pywithpyproject.toml. - Renamed
chunks.pytoraw_io_chunk.py. - Changed Sphinx doc to use Markdown with the Myst parser.
Fixed
- Now returns an empty bytes instead of raising
EOFErrorwhen the underlying
stream is empty. - Raise
ValueErrorwhen trying to seek at a negative position. - Prevent to reach negative seek positions.
- Fix hardcoded values in some
ValueErrorraised. - Fix
flake8 .scan the whole.toxandbuilddirectories.