audformat 1.3.0__tar.gz → 1.3.1__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (90) hide show
  1. {audformat-1.3.0 → audformat-1.3.1}/.github/workflows/test.yml +3 -0
  2. {audformat-1.3.0 → audformat-1.3.1}/CHANGELOG.rst +8 -0
  3. {audformat-1.3.0 → audformat-1.3.1}/PKG-INFO +2 -2
  4. {audformat-1.3.0 → audformat-1.3.1}/audformat/core/utils.py +6 -24
  5. {audformat-1.3.0 → audformat-1.3.1}/audformat.egg-info/PKG-INFO +2 -2
  6. {audformat-1.3.0 → audformat-1.3.1}/audformat.egg-info/requires.txt +1 -1
  7. {audformat-1.3.0 → audformat-1.3.1}/pyproject.toml +1 -1
  8. {audformat-1.3.0 → audformat-1.3.1}/.github/workflows/doc.yml +0 -0
  9. {audformat-1.3.0 → audformat-1.3.1}/.github/workflows/linter.yml +0 -0
  10. {audformat-1.3.0 → audformat-1.3.1}/.github/workflows/publish.yml +0 -0
  11. {audformat-1.3.0 → audformat-1.3.1}/.gitignore +0 -0
  12. {audformat-1.3.0 → audformat-1.3.1}/.pre-commit-config.yaml +0 -0
  13. {audformat-1.3.0 → audformat-1.3.1}/CONTRIBUTING.rst +0 -0
  14. {audformat-1.3.0 → audformat-1.3.1}/LICENSE +0 -0
  15. {audformat-1.3.0 → audformat-1.3.1}/README.rst +0 -0
  16. {audformat-1.3.0 → audformat-1.3.1}/audformat/__init__.py +0 -0
  17. {audformat-1.3.0 → audformat-1.3.1}/audformat/core/__init__.py +0 -0
  18. {audformat-1.3.0 → audformat-1.3.1}/audformat/core/attachment.py +0 -0
  19. {audformat-1.3.0 → audformat-1.3.1}/audformat/core/column.py +0 -0
  20. {audformat-1.3.0 → audformat-1.3.1}/audformat/core/common.py +0 -0
  21. {audformat-1.3.0 → audformat-1.3.1}/audformat/core/conftest.py +0 -0
  22. {audformat-1.3.0 → audformat-1.3.1}/audformat/core/database.py +0 -0
  23. {audformat-1.3.0 → audformat-1.3.1}/audformat/core/define.py +0 -0
  24. {audformat-1.3.0 → audformat-1.3.1}/audformat/core/errors.py +0 -0
  25. {audformat-1.3.0 → audformat-1.3.1}/audformat/core/index.py +0 -0
  26. {audformat-1.3.0 → audformat-1.3.1}/audformat/core/media.py +0 -0
  27. {audformat-1.3.0 → audformat-1.3.1}/audformat/core/rater.py +0 -0
  28. {audformat-1.3.0 → audformat-1.3.1}/audformat/core/scheme.py +0 -0
  29. {audformat-1.3.0 → audformat-1.3.1}/audformat/core/split.py +0 -0
  30. {audformat-1.3.0 → audformat-1.3.1}/audformat/core/table.py +0 -0
  31. {audformat-1.3.0 → audformat-1.3.1}/audformat/core/testing.py +0 -0
  32. {audformat-1.3.0 → audformat-1.3.1}/audformat/core/typing.py +0 -0
  33. {audformat-1.3.0 → audformat-1.3.1}/audformat/define/__init__.py +0 -0
  34. {audformat-1.3.0 → audformat-1.3.1}/audformat/errors/__init__.py +0 -0
  35. {audformat-1.3.0 → audformat-1.3.1}/audformat/testing/__init__.py +0 -0
  36. {audformat-1.3.0 → audformat-1.3.1}/audformat/utils/__init__.py +0 -0
  37. {audformat-1.3.0 → audformat-1.3.1}/audformat.egg-info/SOURCES.txt +0 -0
  38. {audformat-1.3.0 → audformat-1.3.1}/audformat.egg-info/dependency_links.txt +0 -0
  39. {audformat-1.3.0 → audformat-1.3.1}/audformat.egg-info/top_level.txt +0 -0
  40. {audformat-1.3.0 → audformat-1.3.1}/benchmarks/benchmark_union.py +0 -0
  41. {audformat-1.3.0 → audformat-1.3.1}/docs/accessing-data.rst +0 -0
  42. {audformat-1.3.0 → audformat-1.3.1}/docs/api/audformat.define.rst +0 -0
  43. {audformat-1.3.0 → audformat-1.3.1}/docs/api/audformat.errors.rst +0 -0
  44. {audformat-1.3.0 → audformat-1.3.1}/docs/api/audformat.rst +0 -0
  45. {audformat-1.3.0 → audformat-1.3.1}/docs/api/audformat.testing.rst +0 -0
  46. {audformat-1.3.0 → audformat-1.3.1}/docs/api/audformat.utils.rst +0 -0
  47. {audformat-1.3.0 → audformat-1.3.1}/docs/api-src/audformat.define.rst +0 -0
  48. {audformat-1.3.0 → audformat-1.3.1}/docs/api-src/audformat.errors.rst +0 -0
  49. {audformat-1.3.0 → audformat-1.3.1}/docs/api-src/audformat.rst +0 -0
  50. {audformat-1.3.0 → audformat-1.3.1}/docs/api-src/audformat.testing.rst +0 -0
  51. {audformat-1.3.0 → audformat-1.3.1}/docs/api-src/audformat.utils.rst +0 -0
  52. {audformat-1.3.0 → audformat-1.3.1}/docs/changelog.rst +0 -0
  53. {audformat-1.3.0 → audformat-1.3.1}/docs/combine-tables.rst +0 -0
  54. {audformat-1.3.0 → audformat-1.3.1}/docs/conf.py +0 -0
  55. {audformat-1.3.0 → audformat-1.3.1}/docs/contributing.rst +0 -0
  56. {audformat-1.3.0 → audformat-1.3.1}/docs/create-database.rst +0 -0
  57. {audformat-1.3.0 → audformat-1.3.1}/docs/data-conventions.rst +0 -0
  58. {audformat-1.3.0 → audformat-1.3.1}/docs/data-example.rst +0 -0
  59. {audformat-1.3.0 → audformat-1.3.1}/docs/data-format.rst +0 -0
  60. {audformat-1.3.0 → audformat-1.3.1}/docs/data-header.rst +0 -0
  61. {audformat-1.3.0 → audformat-1.3.1}/docs/data-introduction.rst +0 -0
  62. {audformat-1.3.0 → audformat-1.3.1}/docs/data-misc-tables.rst +0 -0
  63. {audformat-1.3.0 → audformat-1.3.1}/docs/data-tables.rst +0 -0
  64. {audformat-1.3.0 → audformat-1.3.1}/docs/emodb-example.rst +0 -0
  65. {audformat-1.3.0 → audformat-1.3.1}/docs/genindex.rst +0 -0
  66. {audformat-1.3.0 → audformat-1.3.1}/docs/index.rst +0 -0
  67. {audformat-1.3.0 → audformat-1.3.1}/docs/install.rst +0 -0
  68. {audformat-1.3.0 → audformat-1.3.1}/docs/map-scheme.rst +0 -0
  69. {audformat-1.3.0 → audformat-1.3.1}/docs/pics/audformat-database.dot +0 -0
  70. {audformat-1.3.0 → audformat-1.3.1}/docs/pics/audformat-misc-table.dot +0 -0
  71. {audformat-1.3.0 → audformat-1.3.1}/docs/pics/audformat-table.dot +0 -0
  72. {audformat-1.3.0 → audformat-1.3.1}/docs/requirements.txt +0 -0
  73. {audformat-1.3.0 → audformat-1.3.1}/docs/update-database.rst +0 -0
  74. {audformat-1.3.0 → audformat-1.3.1}/requirements.txt +0 -0
  75. {audformat-1.3.0 → audformat-1.3.1}/setup.cfg +0 -0
  76. {audformat-1.3.0 → audformat-1.3.1}/tests/conftest.py +0 -0
  77. {audformat-1.3.0 → audformat-1.3.1}/tests/requirements.txt +0 -0
  78. {audformat-1.3.0 → audformat-1.3.1}/tests/test_attachment.py +0 -0
  79. {audformat-1.3.0 → audformat-1.3.1}/tests/test_column.py +0 -0
  80. {audformat-1.3.0 → audformat-1.3.1}/tests/test_common.py +0 -0
  81. {audformat-1.3.0 → audformat-1.3.1}/tests/test_database.py +0 -0
  82. {audformat-1.3.0 → audformat-1.3.1}/tests/test_database_get.py +0 -0
  83. {audformat-1.3.0 → audformat-1.3.1}/tests/test_eq.py +0 -0
  84. {audformat-1.3.0 → audformat-1.3.1}/tests/test_errors.py +0 -0
  85. {audformat-1.3.0 → audformat-1.3.1}/tests/test_index.py +0 -0
  86. {audformat-1.3.0 → audformat-1.3.1}/tests/test_misc_table.py +0 -0
  87. {audformat-1.3.0 → audformat-1.3.1}/tests/test_scheme.py +0 -0
  88. {audformat-1.3.0 → audformat-1.3.1}/tests/test_table.py +0 -0
  89. {audformat-1.3.0 → audformat-1.3.1}/tests/test_utils.py +0 -0
  90. {audformat-1.3.0 → audformat-1.3.1}/tests/test_utils_concat.py +0 -0
@@ -25,6 +25,9 @@ jobs:
25
25
 
26
26
  steps:
27
27
  - uses: actions/checkout@v4
28
+ with:
29
+ fetch-tags: true
30
+ fetch-depth: 50
28
31
 
29
32
  - name: Cache emodb
30
33
  uses: actions/cache@v4
@@ -7,6 +7,14 @@ The format is based on `Keep a Changelog`_,
7
7
  and this project adheres to `Semantic Versioning`_.
8
8
 
9
9
 
10
+ Version 1.3.1 (2024-09-16)
11
+ --------------------------
12
+
13
+ * Changed: replace unmaintained ``iso-639`` dependency
14
+ with ``iso639-lang``
15
+ * Fixed: ensure ``poetry`` can manage ``audformat``
16
+
17
+
10
18
  Version 1.3.0 (2024-07-18)
11
19
  --------------------------
12
20
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: audformat
3
- Version: 1.3.0
3
+ Version: 1.3.1
4
4
  Summary: Python implementation of audformat
5
5
  Author: Johannes Wagner, BahaEddine Abrougui
6
6
  Author-email: Hagen Wierstorf <hwierstorf@audeering.com>, Christian Geng <cgeng@audeering.com>
@@ -51,7 +51,7 @@ Description-Content-Type: text/x-rst
51
51
  License-File: LICENSE
52
52
  Requires-Dist: audeer>=2.0.0
53
53
  Requires-Dist: audiofile>=0.4.0
54
- Requires-Dist: iso-639
54
+ Requires-Dist: iso639-lang
55
55
  Requires-Dist: iso3166
56
56
  Requires-Dist: oyaml
57
57
  Requires-Dist: pandas>=2.1.0
@@ -8,6 +8,7 @@ import sys
8
8
  import typing as typing
9
9
 
10
10
  import iso639
11
+ from iso639.exceptions import InvalidLanguageValue
11
12
  import iso3166
12
13
  import numpy as np
13
14
  import pandas as pd
@@ -1288,32 +1289,13 @@ def map_language(language: str) -> str:
1288
1289
  'eng'
1289
1290
 
1290
1291
  """
1291
- result = None
1292
-
1293
- if len(language) == 2:
1294
- try:
1295
- result = iso639.languages.get(alpha2=language.lower())
1296
- except KeyError:
1297
- pass
1298
- elif len(language) == 3:
1299
- try:
1300
- result = iso639.languages.get(part3=language.lower())
1301
- except KeyError:
1302
- pass
1303
- else:
1304
- try:
1305
- result = iso639.languages.get(name=language.title())
1306
- except KeyError:
1307
- pass
1308
-
1309
- if result is not None:
1310
- result = result.part3
1311
-
1312
- if not result:
1292
+ try:
1293
+ return iso639.Lang(
1294
+ language.title() if len(language) > 3 else language.lower()
1295
+ ).pt3
1296
+ except InvalidLanguageValue:
1313
1297
  raise ValueError(f"'{language}' is not supported by ISO 639-3.")
1314
1298
 
1315
- return result
1316
-
1317
1299
 
1318
1300
  def read_csv(
1319
1301
  *args,
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: audformat
3
- Version: 1.3.0
3
+ Version: 1.3.1
4
4
  Summary: Python implementation of audformat
5
5
  Author: Johannes Wagner, BahaEddine Abrougui
6
6
  Author-email: Hagen Wierstorf <hwierstorf@audeering.com>, Christian Geng <cgeng@audeering.com>
@@ -51,7 +51,7 @@ Description-Content-Type: text/x-rst
51
51
  License-File: LICENSE
52
52
  Requires-Dist: audeer>=2.0.0
53
53
  Requires-Dist: audiofile>=0.4.0
54
- Requires-Dist: iso-639
54
+ Requires-Dist: iso639-lang
55
55
  Requires-Dist: iso3166
56
56
  Requires-Dist: oyaml
57
57
  Requires-Dist: pandas>=2.1.0
@@ -1,6 +1,6 @@
1
1
  audeer>=2.0.0
2
2
  audiofile>=0.4.0
3
- iso-639
3
+ iso639-lang
4
4
  iso3166
5
5
  oyaml
6
6
  pandas>=2.1.0
@@ -33,7 +33,7 @@ requires-python = '>=3.9' # pandas >=2.1.0
33
33
  dependencies = [
34
34
  'audeer >=2.0.0',
35
35
  'audiofile >=0.4.0',
36
- 'iso-639',
36
+ 'iso639-lang',
37
37
  'iso3166',
38
38
  'oyaml',
39
39
  'pandas >=2.1.0', # for pyarrow -> timedelta conversion
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes