Skip to content

Releases: jwodder/inplace

v1.0.0 — Type annotations and breaking changes

12 Oct 22:25
v1.0.0
Compare
Choose a tag to compare
  • Support Python 3.10, 3.11, and 3.12
  • Drop support for Python 3.6 and 3.7
  • Breaking: The move_first argument has been removed. Only the move_first=False semantics are retained.
  • Removed the readall() method. I don't think it ever worked.
  • Breaking: The delay_open argument and open() method have been removed. Filehandles will now always be created at the moment an in-place instance is constructed, just like when calling the standard library's open().
  • Breaking: When the input path points to a symlink and backup_ext is given, the backup extension will now be appended to the resolved path rather than to the pre-resolved path.
  • Added type annotations
  • InPlaceText and InPlaceBytes (deprecated in v0.4.0) have been removed Added read1() and readinto1() methods for binary mode
  • The InPlace constructor now immediately raises a ValueError if backup is the empty string

v0.5.0 — Better Windows support

20 Feb 20:46
v0.5.0
Compare
Choose a tag to compare
  • Support Python 3.8 and 3.9
  • Drop support for Python 2.7, 3.4, and 3.5
  • Support move_first on Windows
  • Get tests to pass on Windows
  • Use jaraco.windows to handle symlinks on Windows on versions of Python prior to 3.8

v0.4.0 — Unify classes

05 Oct 15:36
v0.4.0
Compare
Choose a tag to compare
  • Breaking: Combined all classes' functionality into a single InPlace class that uses a mode argument to determine whether to operate in text or binary mode.
  • InPlaceBytes and InPlaceText are now deprecated and will be removed in a future version; please use InPlace with mode='b' or mode='t' instead.
  • Support fsencoded-bytes as file paths under Python 3

v0.3.0 — Better symlink support

28 Jun 15:10
v0.3.0
Compare
Choose a tag to compare
  • Handling of symbolic links is changed: Now, if in_place is asked to operate on a symlink link.txt that points to realfile.txt, it will act as though it was asked to operate on realfile.txt instead, and the path link.txt will only be used when combining with backup_ext to construct a backup file path
  • Drop support for Python 2.6 and 3.3

v0.2.0 — Renamed InPlace to InPlaceText

23 Feb 16:47
v0.2.0
Compare
Choose a tag to compare
  • Renamed InPlace to InPlaceText and added a new InPlace class for reading & writing str objects (whatever those happen to be in the current Python)
  • Bugfix: If the given file does not exist and move_first is True, an empty file will no longer be left behind in the nonexistent file's place.
  • Specifying both backup and backup_ext will now produce a ValueError
  • Specifying an empty backup_ext will now produce a ValueError

v0.1.1 — Rename to "in_place"

27 Jan 23:39
v0.1.1
Compare
Choose a tag to compare

I could have sworn I had already checked PyPI for name conflicts...

v0.1.0 — Initial release

27 Jan 22:53
v0.1.0
Compare
Choose a tag to compare