Skip to content

Commit 2cca42d

Browse files
committed
release 1.43.0
1 parent 65406a7 commit 2cca42d

File tree

9 files changed

+15
-6
lines changed

9 files changed

+15
-6
lines changed

CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,13 @@
22

33
The `pycldf` package adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
44

5-
## unreleased
5+
## [1.43.0] - 2025-08-04
66

77
- Switch from `pybtex` to `simplepybtex`.
88
- Make `Dataset.add_sources` accept a `BibliographyData` object from either `pybtex` or `simplepybtex`.
99
- More informative error message when `Dataset.add_sources` gets the wrong type of object.
1010

11+
1112
## [1.42.0] - 2025-04-07
1213

1314
- Make sure all local media files are copied with `Dataset.copy` as well.

docs/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
author = 'Robert Forkel'
2323

2424
# The full version, including alpha/beta/rc tags
25-
release = '1.42.1.dev0'
25+
release = '1.43.0'
2626

2727

2828
# -- General configuration ---------------------------------------------------

setup.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[metadata]
22
name = pycldf
3-
version = 1.42.1.dev0
3+
version = 1.43.0
44
author = Robert Forkel
55
author_email = robert_forkel@eva.mpg.de
66
description = A python library to read and write CLDF datasets

src/pycldf/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@
44
from pycldf.terms import *
55

66
# flake8: noqa
7-
__version__ = "1.42.1.dev0"
7+
__version__ = "1.43.0"

src/pycldf/sources.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ def _add_entries(self, data, **kw):
228228
' `pybtex.database.BibliographyData`,'
229229
' or `simplepybtex.database.BibliographyData`;'
230230
f' got {type(data)}')
231-
raise TypeError(data)
231+
raise TypeError(msg)
232232

233233
for key, entry in entries:
234234
if kw.get('_check_id', False) and not ID_PATTERN.match(key):

tests/test_cli.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,3 +165,4 @@ def test_createdb_locator(data, tmp_path):
165165
cu = conn.cursor()
166166
cu.execute('select count(*) from mediatable')
167167
assert cu.fetchone()[0] > 0
168+
conn.close()

tests/test_dataset.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -999,3 +999,7 @@ def test_Dataset_validate_trailing_separator_for_source(structuredataset_with_ex
999999
ds.validate(log=logging.getLogger(__name__))
10001000
assert len(caplog.records) == 1
10011001
assert 'empty reference' in caplog.records[0].msg
1002+
1003+
1004+
def test_Dataset_cached_rows(structuredataset_with_examples):
1005+
assert structuredataset_with_examples.cached_rows('ExampleTable')

tests/test_db.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,8 @@ def conn():
3030
("e", 1),
3131
]
3232
cur.executemany("INSERT INTO test VALUES(?, ?)", values)
33-
return con
33+
yield con
34+
con.close()
3435

3536

3637
def test_query(conn):

tests/test_ext_sql.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,5 @@ def test_get_database(structuredataset_with_examples, tmp_path):
77
tmp_path,
88
)
99
assert res.query('select count(*) from exampletable')[0][0] > 1
10+
if getattr(res, '_connection'):
11+
res._connection.close()

0 commit comments

Comments
 (0)