Skip to content

Commit ab0a890

Browse files
authored
Merge pull request #99 from cldf/simplepybtex
switch to simplepybtex and pull it in explicitly
2 parents d236187 + d70c80e commit ab0a890

4 files changed

Lines changed: 5 additions & 4 deletions

File tree

.github/workflows/python-package.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
runs-on: ubuntu-latest
1313
strategy:
1414
matrix:
15-
python-version: [3.9, "3.10", 3.11, 3.12]
15+
python-version: [3.9, "3.10", 3.11, 3.12, 3.13]
1616

1717
steps:
1818
- uses: actions/checkout@v4

setup.cfg

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ install_requires =
4545
appdirs
4646
pytest
4747
zenodoclient>=0.3
48+
simplepybtex
4849
tqdm
4950

5051
include_package_data = True

src/cldfbench/datadir.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
except ImportError: # pragma: no cover
2727
openpyxl = None
2828

29-
import pybtex.database
29+
import simplepybtex.database
3030
from csvw import dsv
3131
from clldutils.misc import xmlchars, slug
3232
from clldutils.path import TemporaryDirectory
@@ -206,7 +206,7 @@ def read_json(self,
206206

207207
def read_bib(self,
208208
fname: typing.Union[str, pathlib.Path] = 'sources.bib') -> typing.List[Source]:
209-
bib = pybtex.database.parse_string(self.read(fname), bib_format='bibtex')
209+
bib = simplepybtex.database.parse_string(self.read(fname), bib_format='bibtex')
210210
return [Source.from_entry(k, e) for k, e in bib.entries.items()]
211211

212212
def ods2csv(self,

tests/test_cli.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ def test_catalog_from_config(glottolog_dir, tmpds, mocker, tmp_path, fixtures_di
159159

160160
# First case: get a "good" value from comfig:
161161
mocker.patch(
162-
'cldfcatalog.config.appdirs',
162+
'cldfcatalog.config.platformdirs',
163163
mocker.Mock(user_config_dir=mocker.Mock(return_value=str(tmp_path))))
164164
mocker.patch('cldfbench.commands.catconfig.confirm', mocker.Mock(return_value=False))
165165
cli.main(['catconfig', '--glottolog', str(glottolog_dir)])

0 commit comments

Comments
 (0)