Skip to content

Commit

Permalink
Merge pull request #60 from bbc/jamesba-2.7-bugfix
Browse files Browse the repository at this point in the history
Bugfixes for 2.7.0 which correct errors in downstream package builds
  • Loading branch information
jamesba authored Nov 6, 2019
2 parents 408a454 + 8968aae commit b33fe76
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Mediagrains Library Changelog

## 2.7.1
- Bugfix: Restore behaviour whereby `gsf.GSFEncoder.dump` calls `gsf.GSFEncoder.start_dump` and `gsf.GSFEncoder.end_dump`
(this matters if subclasses have overridden these methods)

## 2.7.0
- Dropped all support for Python2.7
- Moved python3.6 specific submodules in tree
Expand Down
4 changes: 2 additions & 2 deletions mediagrains/gsf.py
Original file line number Diff line number Diff line change
Expand Up @@ -1514,8 +1514,8 @@ def add_grains(self,
def dump(self):
"""Dump the whole contents of this encoder to the file in one go,
replacing anything that's already there."""
with self:
pass
self.start_dump(all_at_once=True)
self.end_dump(all_at_once=True)

@deprecated(version="2.7.0", reason="This mechanism is deprecated, use a context manager instead")
def start_dump(self, all_at_once=False):
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
]

setup(name="mediagrains",
version="2.7.0",
version="2.7.1",
python_requires='>=3.6.0',
description="Simple utility for grain-based media",
url='https://github.com/bbc/rd-apmm-python-lib-mediagrains',
Expand Down

0 comments on commit b33fe76

Please sign in to comment.