zensical 0.0.18__cp310-abi3-musllinux_1_2_aarch64.whl → 0.0.19__cp310-abi3-musllinux_1_2_aarch64.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.
zensical/config.py CHANGED
@@ -26,8 +26,8 @@ from __future__ import annotations
26
26
  import hashlib
27
27
  import importlib
28
28
  import os
29
- from pathlib import Path
30
29
  import pickle
30
+ from pathlib import Path
31
31
  from typing import IO, Any
32
32
  from urllib.parse import urlparse
33
33
 
@@ -480,9 +480,10 @@ def _list_sources(config: dict, config_file: str) -> list[tuple[str, int]]:
480
480
  .get("paths", ())
481
481
  )
482
482
  files_with_hash = []
483
+ root = Path(config_file).parent.resolve()
483
484
  for python_path in python_paths:
484
- path = Path(config_file).parent.joinpath(python_path).resolve()
485
- if path.is_dir():
485
+ path = root.joinpath(python_path).resolve()
486
+ if path.is_dir() and path.is_relative_to(root):
486
487
  for subpath in path.rglob("*"):
487
488
  # Path.rglob can't do patterns, so we need to filter here
488
489
  if subpath.suffix in {
@@ -492,8 +493,8 @@ def _list_sources(config: dict, config_file: str) -> list[tuple[str, int]]:
492
493
  ".so",
493
494
  ".dll",
494
495
  }:
495
- files_with_hash.extend(
496
- [(str(subpath), int(os.path.getmtime(subpath)))]
496
+ files_with_hash.append( # noqa: PERF401
497
+ (str(subpath), int(os.path.getmtime(subpath)))
497
498
  )
498
499
  return sorted(files_with_hash)
499
500
 
zensical/zensical.abi3.so CHANGED
Binary file
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: zensical
3
- Version: 0.0.18
3
+ Version: 0.0.19
4
4
  Classifier: Development Status :: 3 - Alpha
5
5
  Classifier: Environment :: Web Environment
6
6
  Classifier: License :: OSI Approved :: MIT License
@@ -4,7 +4,7 @@ zensical/bootstrap/.github/workflows/docs.yml,sha256=rYf6oFlXSbHZIHcXN32mWfZrURz
4
4
  zensical/bootstrap/docs/index.md,sha256=ddq9pOrxxsVt8zPGfil9weliOPAsgJIsVOWCPTdG4_w,3694
5
5
  zensical/bootstrap/docs/markdown.md,sha256=BNxNcz3Md-pPtt4YtLbOkoPxFgnkeicvgoxovsoa9GE,1220
6
6
  zensical/bootstrap/zensical.toml,sha256=7DzhSlf_X-ufLdbj_bVirWgEI75SbyyCuqcVIYqYCDs,12813
7
- zensical/config.py,sha256=ka02p-EalJURebImlw34ufjK9U_M_JLVeYFjdh9Zk7E,31345
7
+ zensical/config.py,sha256=IxGkOZUnsN9-HXie-jMqO4tB6ogU-qo0l5vMmyjY5OI,31416
8
8
  zensical/extensions/__init__.py,sha256=3uHh72Hsf5KSt2GyzIRVhDHvLniL0Kijr5OS_UDZhYw,1187
9
9
  zensical/extensions/emoji.py,sha256=QY5ImL_UDgb-LoZ-t2g0G07qY7DW9gsW3EV6L64TuKs,3837
10
10
  zensical/extensions/links.py,sha256=u47VEMfuDgwMFxwuzDiI0gAMMQ-vGwDsZm9I4r7bMXg,5583
@@ -16380,11 +16380,11 @@ zensical/templates/partials/toc.html,sha256=EHfE9Z6jajRE6E-gTmQQFq9PFdI4XIy8WkI5
16380
16380
  zensical/templates/partials/top.html,sha256=mPb5rC6_bvlDtiwLB4Gjc8wDyn4JWc_GDZw8cGAVcic,277
16381
16381
  zensical/templates/redirect.html,sha256=ORC54fXpsh3J-pxXz50GfmzT2wa24sTIu37Wgdj17BI,503
16382
16382
  zensical/templates/sitemap.xml,sha256=GpA0Y6QBlrgkmS2mSHTAYVZBg7-s7fMVB_oLmZPd_yg,336
16383
- zensical/zensical.abi3.so,sha256=bJe-fOpVKFipr1uFcRmebQv1XGIULDCNvPESr7RY3c0,8130609
16383
+ zensical/zensical.abi3.so,sha256=bBmSdCGl6NRcqJBT4z2YsYZIK_bXy1jd8EuyHhMyfBo,8130689
16384
16384
  zensical/zensical.pyi,sha256=-pSVzz325mmNxQjuLvyDQKP4E4PD8T0VVm2jX6oOYM8,1716
16385
- zensical-0.0.18.dist-info/METADATA,sha256=3wajQzNJezQx3M6hyB0cEmcZqtAO2xMfEk2gvfNNjDY,3954
16386
- zensical-0.0.18.dist-info/WHEEL,sha256=Ks4MlrbXuBUzn0Sg1pSlfobz-J5L_KK83ofsy7dBTdk,108
16387
- zensical-0.0.18.dist-info/entry_points.txt,sha256=I2AENFHeltJ6FMpjQ3QqTCH9Asl9ibOE2WzewVyFgSw,45
16388
- zensical-0.0.18.dist-info/licenses/LICENSE.md,sha256=rARObbe6CAafY1r8F1mwrhGn1H95FEpMzdFvyUukfR4,1075
16385
+ zensical-0.0.19.dist-info/METADATA,sha256=6Yjype1HKSMH8HBvL6fhdExfULJbIZIHnWZUkObtF44,3954
16386
+ zensical-0.0.19.dist-info/WHEEL,sha256=Ks4MlrbXuBUzn0Sg1pSlfobz-J5L_KK83ofsy7dBTdk,108
16387
+ zensical-0.0.19.dist-info/entry_points.txt,sha256=I2AENFHeltJ6FMpjQ3QqTCH9Asl9ibOE2WzewVyFgSw,45
16388
+ zensical-0.0.19.dist-info/licenses/LICENSE.md,sha256=rARObbe6CAafY1r8F1mwrhGn1H95FEpMzdFvyUukfR4,1075
16389
16389
  zensical.libs/libgcc_s-9d28dc04.so.1,sha256=cDdYlELDp5rj3KWVY9FiKfpcxIKjlSh_FTU9hX4f-cM,789673
16390
- zensical-0.0.18.dist-info/RECORD,,
16390
+ zensical-0.0.19.dist-info/RECORD,,