audiometa-python 1.4.6__py3-none-any.whl → 1.4.7__py3-none-any.whl

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.
@@ -39,7 +39,7 @@ class AudioFileCreator:
39
39
  except (subprocess.CalledProcessError, FileNotFoundError):
40
40
  # Last resort: copy from any available sample file
41
41
  search_format = "mp3" if format_type.lower() in ["id3v1", "id3v2.3", "id3v2.4"] else format_type.lower()
42
- sample_files = list(assets_dir.glob(f"*.{search_format}"))
42
+ sample_files = sorted(assets_dir.glob(f"*.{search_format}"))
43
43
  if sample_files:
44
44
  shutil.copy2(sample_files[0], file_path)
45
45
  else:
@@ -248,29 +248,29 @@ def bitrate_1152_wav(assets_dir: Path) -> Path:
248
248
 
249
249
  @pytest.fixture
250
250
  def size_small_mp3(assets_dir: Path) -> Path:
251
- return assets_dir / "size_small=0.01mo.mp3"
251
+ return assets_dir / "shared" / "size_small=0.01mo.mp3"
252
252
 
253
253
 
254
254
  @pytest.fixture
255
255
  def size_big_mp3(assets_dir: Path) -> Path:
256
- return assets_dir / "size_big=9.98mo.mp3"
256
+ return assets_dir / "shared" / "size_big=9.98mo.mp3"
257
257
 
258
258
 
259
259
  @pytest.fixture
260
260
  def size_small_flac(assets_dir: Path) -> Path:
261
- return assets_dir / "size_small=0.05mo.flac"
261
+ return assets_dir / "shared" / "size_small=0.05mo.flac"
262
262
 
263
263
 
264
264
  @pytest.fixture
265
265
  def size_big_flac(assets_dir: Path) -> Path:
266
- return assets_dir / "size_big=26.6mo.flac"
266
+ return assets_dir / "shared" / "size_big=26.6mo.flac"
267
267
 
268
268
 
269
269
  @pytest.fixture
270
270
  def size_small_wav(assets_dir: Path) -> Path:
271
- return assets_dir / "size_small=0.08mo.wav"
271
+ return assets_dir / "shared" / "size_small=0.08mo.wav"
272
272
 
273
273
 
274
274
  @pytest.fixture
275
275
  def size_big_wav(assets_dir: Path) -> Path:
276
- return assets_dir / "size_big=79.55mo.wav"
276
+ return assets_dir / "shared" / "size_big=79.55mo.wav"
@@ -25,7 +25,7 @@ class TestGetDurationInSec:
25
25
  "shared/duration=277s.mp3",
26
26
  "shared/recording=Y do i - Carmina Burana Remix - 7m52.mp3",
27
27
  "shared/duration=182.mp3",
28
- "size_small=0.01mo.mp3",
28
+ "shared/size_small=0.01mo.mp3",
29
29
  "sample.flac",
30
30
  ],
31
31
  )
@@ -64,7 +64,7 @@ class TestReadMp3GaplessDuration:
64
64
  assert _gapless(assets_dir / relative_path) == pytest.approx(expected, abs=1e-6)
65
65
 
66
66
  def test_file_without_xing_frame_returns_none(self, assets_dir: Path):
67
- assert _gapless(assets_dir / "size_small=0.01mo.mp3") is None
67
+ assert _gapless(assets_dir / "shared/size_small=0.01mo.mp3") is None
68
68
 
69
69
  @pytest.mark.parametrize("encoder", [b"LAME3.100", b"Lavc59.37", b"Lavf60.16", b"L3.99r1"])
70
70
  def test_known_encoder_subtracts_delay_and_padding(self, tmp_path: Path, encoder: bytes):
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: audiometa-python
3
- Version: 1.4.6
3
+ Version: 1.4.7
4
4
  Summary: A comprehensive Python library for reading and writing audio metadata across multiple formats
5
5
  Author: AudioMeta Python Contributors
6
6
  Author-email: Andreas Garcia <garcia.andreas.1991@gmail.com>
@@ -35,7 +35,6 @@ Requires-Dist: autoflake==2.0.0; extra == "dev"
35
35
  Requires-Dist: pydocstringformatter==0.7.5; extra == "dev"
36
36
  Requires-Dist: soundfile==0.10.1; extra == "dev"
37
37
  Requires-Dist: numpy==2.3.4; extra == "dev"
38
- Requires-Dist: bump-my-version==1.3.0; extra == "dev"
39
38
  Provides-Extra: yaml
40
39
  Requires-Dist: PyYAML==6.0; extra == "yaml"
41
40
  Dynamic: license-file
@@ -34,7 +34,7 @@ audiometa/test/helpers/__init__.py,sha256=RJHIB0erNN3W4kXeCLrifQPwHqziw_E0L7gk9q
34
34
  audiometa/test/helpers/technical_info_inspector.py,sha256=tKEQsPzziNLLRNRxhFTZykZJDRROcZq3ZHXLwcj_glM,4698
35
35
  audiometa/test/helpers/temp_file_with_metadata.py,sha256=lFtyjA_mbJ3q2Qh0s4ZWa1XRtQHrPJEggi60gZJfpZo,3182
36
36
  audiometa/test/helpers/common/__init__.py,sha256=1qqVrp0e5t88F1CEX79oBlgJ4i6FlYa7kDI7F65WBm8,226
37
- audiometa/test/helpers/common/audio_file_creator.py,sha256=qFBcBvb_7id805CBMnpnT611haKn3IeR9hxb74tBhTQ,2786
37
+ audiometa/test/helpers/common/audio_file_creator.py,sha256=UdCo7KM38-VMycqHWIrXxDhv8X_So-blFOTt2GHJkrw,2788
38
38
  audiometa/test/helpers/common/external_tool_runner.py,sha256=GlgsTDoi8Ew8tMA3AlFCBSnTXOnAJ0m728NVzX9l7BA,3109
39
39
  audiometa/test/helpers/id3v1/__init__.py,sha256=rLkj7KNdolfrlWmOXwRo7QWOp1f24Fektsuev9crdTc,365
40
40
  audiometa/test/helpers/id3v1/id3v1_header_verifier.py,sha256=GBnIjzTXwaORzfDG8OY9dMI6HJxhB50NQZQNOkhCgBU,571
@@ -60,7 +60,7 @@ audiometa/test/helpers/vorbis/vorbis_metadata_deleter.py,sha256=YEQrzufcoDMvk-Ud
60
60
  audiometa/test/helpers/vorbis/vorbis_metadata_getter.py,sha256=MZeXv3sph4dOwfMhSpEiQ9wghIBfPRqVQy3mtRwU4vM,2743
61
61
  audiometa/test/helpers/vorbis/vorbis_metadata_setter.py,sha256=kxqN2NAaBJTM3EQn74gwsZKyV0PvNiArRfLsL2wZ-Ek,10435
62
62
  audiometa/test/tests/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
63
- audiometa/test/tests/conftest.py,sha256=bBsfH_SNVLYRqWFX1QdqBVghspzX6fOb-z1kle2y5W0,7627
63
+ audiometa/test/tests/conftest.py,sha256=zo_my12qzfpdsJ-k4ug-1XYEi7uaV9GeyywsA9Uus6E,7693
64
64
  audiometa/test/tests/e2e/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
65
65
  audiometa/test/tests/e2e/cli/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
66
66
  audiometa/test/tests/e2e/cli/test_delete.py,sha256=-u0OBWG5q596lWmRFFDGskBkLctLQwNhTGFB3J-1qoU,630
@@ -280,7 +280,7 @@ audiometa/test/tests/integration/real_audio_files/test_writing.py,sha256=MEjIYKx
280
280
  audiometa/test/tests/integration/technical_info/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
281
281
  audiometa/test/tests/integration/technical_info/test_bitrate.py,sha256=YnUhrMQHnNnimcTQdlYlxj0FCwS-IZb9uZjTAwKwK-c,3469
282
282
  audiometa/test/tests/integration/technical_info/test_channels.py,sha256=hCooSh-TwCZvqc8yfCtOLTIxHtyiDcYg4qwR9JK8khg,1413
283
- audiometa/test/tests/integration/technical_info/test_duration_in_sec.py,sha256=0P2h6GdpGj6LlfxksqLCrk9H6y51VKGzpTsmNtbvRJ8,2089
283
+ audiometa/test/tests/integration/technical_info/test_duration_in_sec.py,sha256=QuSHqxS4p3qJCmaFun1vns4owrLhT_gYcaxWQwpi43c,2096
284
284
  audiometa/test/tests/integration/technical_info/test_sample_rate.py,sha256=EGzuehs7GA58WbuUqSwFi2Dg-C5OT_U7t2dHVc5PWrU,1622
285
285
  audiometa/test/tests/integration/technical_info/flac_md5/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
286
286
  audiometa/test/tests/integration/technical_info/flac_md5/conftest.py,sha256=g-z4ibM7rydJG-2G28tvMdMOw1Tk4bWVhdsjXJjkAhI,3863
@@ -388,7 +388,7 @@ audiometa/test/tests/unit/metadata_managers/metadata_field/track_number/__init__
388
388
  audiometa/test/tests/unit/metadata_managers/metadata_field/track_number/test_track_number_validation.py,sha256=LsSbbwLCgvIE26rAW6FZQXdpr13F6NxRiD4WdPcc7dw,1685
389
389
  audiometa/test/tests/unit/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
390
390
  audiometa/test/tests/unit/utils/test_disc_number_read.py,sha256=f4kmunPZmWys4_7i1tpNRSMvFxk4tPOx--5YpvE8rOw,1747
391
- audiometa/test/tests/unit/utils/test_mp3_gapless_duration.py,sha256=0_wE24SyiVz0Kv4hEi09qK_tH0GFbnd9TWHW4ykrrGA,6259
391
+ audiometa/test/tests/unit/utils/test_mp3_gapless_duration.py,sha256=3GnG-Lkiuz8ok_VqkmZDfWO9P1_WUyivMSfMLIknlpE,6266
392
392
  audiometa/test/tests/unit/utils/test_raw_metadata_sanitizer.py,sha256=gDwlSSaGHXDi4yHILAri4710v1-YBIgKr3M3SQS1o5Y,2772
393
393
  audiometa/test/tests/unit/utils/test_unified_metadata_field_schema.py,sha256=XBc9PhFQYjyeoOdQ0RbTYaVDIc8W0IOIF5fhBvJCcsA,3639
394
394
  audiometa/utils/__init__.py,sha256=xqgLC3jfpEEBM-p88ZwqcEM-iduMKtbZG3xba4Iu6z0,67
@@ -411,9 +411,9 @@ audiometa/utils/os_dependencies_checker/config.py,sha256=fYyNTL_xCj6Q3e2_B-yXYvI
411
411
  audiometa/utils/os_dependencies_checker/macos.py,sha256=vc5Jr5StB1bIrvSnUao9GQkj30a2IsriPdO0Cavptso,9913
412
412
  audiometa/utils/os_dependencies_checker/ubuntu.py,sha256=ScIPUok2ZR-c2Eg9B_lLJrGgC24ARY4UYie75_5mtmI,4969
413
413
  audiometa/utils/os_dependencies_checker/windows.py,sha256=ZT1u08ikb7Q1Votkh1UmBoKipiwPakC5YwijJOi9Wo8,8684
414
- audiometa_python-1.4.6.dist-info/licenses/LICENSE,sha256=j1kssByxxoFgs35PBgJX2ReI8uVNNYzPK2hFW84ZVL4,11402
415
- audiometa_python-1.4.6.dist-info/METADATA,sha256=f-lMgLYeuyldWZ2ZJ3Muh4MJoFROcfJ2qPF9AH7NxWk,69473
416
- audiometa_python-1.4.6.dist-info/WHEEL,sha256=mOdXR9C3wMVov7cSY8PY-XCzo3SmmWCHvGQr5csJoao,91
417
- audiometa_python-1.4.6.dist-info/entry_points.txt,sha256=IlcsOEkazYbUdynOAuGQPoDjbejVQuR5xbJs-8jER-E,49
418
- audiometa_python-1.4.6.dist-info/top_level.txt,sha256=1z-X7IN6-DpD3IfQWAMQ5bIz6v2Ltgk1w7zwiXOpqDc,10
419
- audiometa_python-1.4.6.dist-info/RECORD,,
414
+ audiometa_python-1.4.7.dist-info/licenses/LICENSE,sha256=j1kssByxxoFgs35PBgJX2ReI8uVNNYzPK2hFW84ZVL4,11402
415
+ audiometa_python-1.4.7.dist-info/METADATA,sha256=MAHeRi3hgEZfZ3Sze7lYUT7jdMPgpK2J-kOaIn6HRKI,69419
416
+ audiometa_python-1.4.7.dist-info/WHEEL,sha256=mOdXR9C3wMVov7cSY8PY-XCzo3SmmWCHvGQr5csJoao,91
417
+ audiometa_python-1.4.7.dist-info/entry_points.txt,sha256=IlcsOEkazYbUdynOAuGQPoDjbejVQuR5xbJs-8jER-E,49
418
+ audiometa_python-1.4.7.dist-info/top_level.txt,sha256=1z-X7IN6-DpD3IfQWAMQ5bIz6v2Ltgk1w7zwiXOpqDc,10
419
+ audiometa_python-1.4.7.dist-info/RECORD,,