entangled-cli 2.1.9__tar.gz → 2.1.10__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 (42) hide show
  1. {entangled_cli-2.1.9 → entangled_cli-2.1.10}/PKG-INFO +2 -1
  2. {entangled_cli-2.1.9 → entangled_cli-2.1.10}/entangled/commands/stitch.py +3 -8
  3. {entangled_cli-2.1.9 → entangled_cli-2.1.10}/entangled/commands/sync.py +2 -8
  4. {entangled_cli-2.1.9 → entangled_cli-2.1.10}/entangled/commands/tangle.py +2 -4
  5. {entangled_cli-2.1.9 → entangled_cli-2.1.10}/entangled/config/templates.py +7 -0
  6. {entangled_cli-2.1.9 → entangled_cli-2.1.10}/pyproject.toml +1 -1
  7. {entangled_cli-2.1.9 → entangled_cli-2.1.10}/LICENSE +0 -0
  8. {entangled_cli-2.1.9 → entangled_cli-2.1.10}/README.md +0 -0
  9. {entangled_cli-2.1.9 → entangled_cli-2.1.10}/entangled/__init__.py +0 -0
  10. {entangled_cli-2.1.9 → entangled_cli-2.1.10}/entangled/code_reader.py +0 -0
  11. {entangled_cli-2.1.9 → entangled_cli-2.1.10}/entangled/commands/__init__.py +0 -0
  12. {entangled_cli-2.1.9 → entangled_cli-2.1.10}/entangled/commands/brei.py +0 -0
  13. {entangled_cli-2.1.9 → entangled_cli-2.1.10}/entangled/commands/new.py +0 -0
  14. {entangled_cli-2.1.9 → entangled_cli-2.1.10}/entangled/commands/status.py +0 -0
  15. {entangled_cli-2.1.9 → entangled_cli-2.1.10}/entangled/commands/watch.py +0 -0
  16. {entangled_cli-2.1.9 → entangled_cli-2.1.10}/entangled/config/__init__.py +0 -0
  17. {entangled_cli-2.1.9 → entangled_cli-2.1.10}/entangled/config/language.py +0 -0
  18. {entangled_cli-2.1.9 → entangled_cli-2.1.10}/entangled/config/version.py +0 -0
  19. {entangled_cli-2.1.9 → entangled_cli-2.1.10}/entangled/construct.py +0 -0
  20. {entangled_cli-2.1.9 → entangled_cli-2.1.10}/entangled/document.py +0 -0
  21. {entangled_cli-2.1.9 → entangled_cli-2.1.10}/entangled/errors/__init__.py +0 -0
  22. {entangled_cli-2.1.9 → entangled_cli-2.1.10}/entangled/errors/internal.py +0 -0
  23. {entangled_cli-2.1.9 → entangled_cli-2.1.10}/entangled/errors/user.py +0 -0
  24. {entangled_cli-2.1.9 → entangled_cli-2.1.10}/entangled/filedb.py +0 -0
  25. {entangled_cli-2.1.9 → entangled_cli-2.1.10}/entangled/hooks/__init__.py +0 -0
  26. {entangled_cli-2.1.9 → entangled_cli-2.1.10}/entangled/hooks/base.py +0 -0
  27. {entangled_cli-2.1.9 → entangled_cli-2.1.10}/entangled/hooks/build.py +0 -0
  28. {entangled_cli-2.1.9 → entangled_cli-2.1.10}/entangled/hooks/quarto_attributes.py +0 -0
  29. {entangled_cli-2.1.9 → entangled_cli-2.1.10}/entangled/hooks/shebang.py +0 -0
  30. {entangled_cli-2.1.9 → entangled_cli-2.1.10}/entangled/hooks/task.py +0 -0
  31. {entangled_cli-2.1.9 → entangled_cli-2.1.10}/entangled/logging.py +0 -0
  32. {entangled_cli-2.1.9 → entangled_cli-2.1.10}/entangled/main.py +0 -0
  33. {entangled_cli-2.1.9 → entangled_cli-2.1.10}/entangled/markdown_reader.py +0 -0
  34. {entangled_cli-2.1.9 → entangled_cli-2.1.10}/entangled/parsing.py +0 -0
  35. {entangled_cli-2.1.9 → entangled_cli-2.1.10}/entangled/properties.py +0 -0
  36. {entangled_cli-2.1.9 → entangled_cli-2.1.10}/entangled/py.typed +0 -0
  37. {entangled_cli-2.1.9 → entangled_cli-2.1.10}/entangled/status.py +0 -0
  38. {entangled_cli-2.1.9 → entangled_cli-2.1.10}/entangled/tangle.py +0 -0
  39. {entangled_cli-2.1.9 → entangled_cli-2.1.10}/entangled/text_location.py +0 -0
  40. {entangled_cli-2.1.9 → entangled_cli-2.1.10}/entangled/transaction.py +0 -0
  41. {entangled_cli-2.1.9 → entangled_cli-2.1.10}/entangled/utility.py +0 -0
  42. {entangled_cli-2.1.9 → entangled_cli-2.1.10}/entangled/version.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: entangled-cli
3
- Version: 2.1.9
3
+ Version: 2.1.10
4
4
  Summary: Literate Programming toolbox
5
5
  Home-page: https://entangled.github.io/
6
6
  License: Apache 2
@@ -11,6 +11,7 @@ Classifier: License :: Other/Proprietary License
11
11
  Classifier: Programming Language :: Python :: 3
12
12
  Classifier: Programming Language :: Python :: 3.11
13
13
  Classifier: Programming Language :: Python :: 3.12
14
+ Classifier: Programming Language :: Python :: 3.13
14
15
  Requires-Dist: argh (>=0.30,<0.31)
15
16
  Requires-Dist: brei (>=0.2.3,<0.3.0)
16
17
  Requires-Dist: copier (>=9,<10)
@@ -9,6 +9,7 @@ from ..config import config
9
9
  from ..document import ReferenceMap, Content, PlainText, ReferenceId
10
10
  from ..transaction import transaction, TransactionMode
11
11
  from ..errors.user import UserError
12
+ from .tangle import get_input_files
12
13
 
13
14
 
14
15
  def stitch_markdown(reference_map: ReferenceMap, content: list[Content]) -> str:
@@ -32,14 +33,8 @@ def stitch(*, force: bool = False, show: bool = False):
32
33
  from ..markdown_reader import read_markdown_file
33
34
  from ..code_reader import CodeReader
34
35
  from ..hooks import get_hooks
35
-
36
- include_file_list = chain.from_iterable(map(Path(".").glob, config.watch_list))
37
- exclude_file_list = list(
38
- chain.from_iterable(map(Path(".").glob, config.ignore_list))
39
- )
40
- input_file_list = [
41
- path for path in include_file_list if not path in exclude_file_list
42
- ]
36
+
37
+ input_file_list = get_input_files()
43
38
  hooks = get_hooks()
44
39
 
45
40
  if show:
@@ -6,7 +6,7 @@ import logging
6
6
 
7
7
  from ..filedb import file_db
8
8
  from ..config import config
9
- from .stitch import stitch
9
+ from .stitch import stitch, get_input_files
10
10
  from .tangle import tangle
11
11
 
12
12
 
@@ -16,13 +16,7 @@ def _stitch_then_tangle():
16
16
 
17
17
 
18
18
  def sync_action() -> Optional[Callable[[], None]]:
19
- include_file_list = set(
20
- chain.from_iterable(map(Path().glob, config.watch_list))
21
- )
22
- exclude_file_list = set(
23
- chain.from_iterable(map(Path().glob, config.ignore_list))
24
- )
25
- input_file_list = include_file_list - exclude_file_list
19
+ input_file_list = get_input_files()
26
20
 
27
21
  with file_db(readonly=True) as db:
28
22
  changed = set(db.changed())
@@ -14,11 +14,9 @@ from ..errors.user import UserError
14
14
 
15
15
  def get_input_files() -> list[Path]:
16
16
  include_file_list = chain.from_iterable(map(Path(".").glob, config.watch_list))
17
- exclude_file_list = list(
18
- chain.from_iterable(map(Path(".").glob, config.ignore_list))
19
- )
20
17
  input_file_list = [
21
- path for path in include_file_list if not path in exclude_file_list
18
+ path for path in include_file_list
19
+ if not any(path.match(pat) for pat in config.ignore_list)
22
20
  ]
23
21
  return input_file_list
24
22
 
@@ -26,4 +26,11 @@ templates: list[Template] = [
26
26
  "python, mkdocs",
27
27
  "Fast, simple project documentation for Python",
28
28
  ),
29
+ Template(
30
+ "pandoc",
31
+ "Pandoc",
32
+ "gh:entangled/template-pandoc",
33
+ "pandoc",
34
+ "Supports HTML and PDF output, numbered equations and citations."
35
+ )
29
36
  ]
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "entangled-cli"
3
- version = "2.1.9"
3
+ version = "2.1.10"
4
4
  description = "Literate Programming toolbox"
5
5
  repository = "https://github.com/entangled/entangled.py"
6
6
  homepage = "https://entangled.github.io/"
File without changes
File without changes