Skip to content

Commit f4db427

Browse files
Release prep for version 0.3.4.
Also apply suggestions from code review Co-authored-by: Ben Jeffery <ben.jeffery@gmail.com>
1 parent 40a86b5 commit f4db427

File tree

3 files changed

+14
-14
lines changed

3 files changed

+14
-14
lines changed

python/CHANGELOG.rst

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
--------------------
2-
[0.X.X] - 2021-XX-XX
2+
[0.3.4] - 2020-12-02
33
--------------------
44

5-
**Breaking changes**
5+
Minor bugfix release.
66

7-
**Features**
87

98
**Bugfixes**
109

10+
- Reinstate the unused zlib_compression option to tskit.dump, as msprime < 1.0
11+
still uses it (:user:`jeromekelleher`, :issue:`1067`).
1112

1213
--------------------
1314
[0.3.3] - 2020-11-27

python/tests/test_highlevel.py

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1288,16 +1288,15 @@ def test_dump_load_errors(self):
12881288
with pytest.raises(TypeError):
12891289
func(bad_filename)
12901290

1291-
def test_zlib_compression_warning(self, ts_fixture):
1292-
with tempfile.TemporaryDirectory() as tempdir:
1293-
temp_file = pathlib.Path(tempdir) / "tmp.trees"
1294-
with warnings.catch_warnings(record=True) as w:
1295-
ts_fixture.dump(temp_file, zlib_compression=True)
1296-
assert len(w) == 1
1297-
assert issubclass(w[0].category, RuntimeWarning)
1298-
with warnings.catch_warnings(record=True) as w:
1299-
ts_fixture.dump(temp_file, zlib_compression=False)
1300-
assert len(w) == 0
1291+
def test_zlib_compression_warning(self, ts_fixture, tmp_path):
1292+
temp_file = tmp_path / "tmp.trees"
1293+
with warnings.catch_warnings(record=True) as w:
1294+
ts_fixture.dump(temp_file, zlib_compression=True)
1295+
assert len(w) == 1
1296+
assert issubclass(w[0].category, RuntimeWarning)
1297+
with warnings.catch_warnings(record=True) as w:
1298+
ts_fixture.dump(temp_file, zlib_compression=False)
1299+
assert len(w) == 0
13011300

13021301
def test_tables_sequence_length_round_trip(self):
13031302
for sequence_length in [0.1, 1, 10, 100]:

python/tskit/_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
# Definitive location for the version number.
22
# During development, should be x.y.z.devN
33
# For beta should be x.y.zbN
4-
tskit_version = "0.3.4.dev1"
4+
tskit_version = "0.3.4"

0 commit comments

Comments
 (0)