entangled-cli 2.1.8__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.
- {entangled_cli-2.1.8 → entangled_cli-2.1.10}/PKG-INFO +2 -1
- {entangled_cli-2.1.8 → entangled_cli-2.1.10}/entangled/commands/stitch.py +3 -8
- {entangled_cli-2.1.8 → entangled_cli-2.1.10}/entangled/commands/sync.py +2 -8
- {entangled_cli-2.1.8 → entangled_cli-2.1.10}/entangled/commands/tangle.py +2 -4
- {entangled_cli-2.1.8 → entangled_cli-2.1.10}/entangled/config/templates.py +7 -0
- {entangled_cli-2.1.8 → entangled_cli-2.1.10}/entangled/filedb.py +11 -6
- {entangled_cli-2.1.8 → entangled_cli-2.1.10}/pyproject.toml +1 -1
- {entangled_cli-2.1.8 → entangled_cli-2.1.10}/LICENSE +0 -0
- {entangled_cli-2.1.8 → entangled_cli-2.1.10}/README.md +0 -0
- {entangled_cli-2.1.8 → entangled_cli-2.1.10}/entangled/__init__.py +0 -0
- {entangled_cli-2.1.8 → entangled_cli-2.1.10}/entangled/code_reader.py +0 -0
- {entangled_cli-2.1.8 → entangled_cli-2.1.10}/entangled/commands/__init__.py +0 -0
- {entangled_cli-2.1.8 → entangled_cli-2.1.10}/entangled/commands/brei.py +0 -0
- {entangled_cli-2.1.8 → entangled_cli-2.1.10}/entangled/commands/new.py +0 -0
- {entangled_cli-2.1.8 → entangled_cli-2.1.10}/entangled/commands/status.py +0 -0
- {entangled_cli-2.1.8 → entangled_cli-2.1.10}/entangled/commands/watch.py +0 -0
- {entangled_cli-2.1.8 → entangled_cli-2.1.10}/entangled/config/__init__.py +0 -0
- {entangled_cli-2.1.8 → entangled_cli-2.1.10}/entangled/config/language.py +0 -0
- {entangled_cli-2.1.8 → entangled_cli-2.1.10}/entangled/config/version.py +0 -0
- {entangled_cli-2.1.8 → entangled_cli-2.1.10}/entangled/construct.py +0 -0
- {entangled_cli-2.1.8 → entangled_cli-2.1.10}/entangled/document.py +0 -0
- {entangled_cli-2.1.8 → entangled_cli-2.1.10}/entangled/errors/__init__.py +0 -0
- {entangled_cli-2.1.8 → entangled_cli-2.1.10}/entangled/errors/internal.py +0 -0
- {entangled_cli-2.1.8 → entangled_cli-2.1.10}/entangled/errors/user.py +0 -0
- {entangled_cli-2.1.8 → entangled_cli-2.1.10}/entangled/hooks/__init__.py +0 -0
- {entangled_cli-2.1.8 → entangled_cli-2.1.10}/entangled/hooks/base.py +0 -0
- {entangled_cli-2.1.8 → entangled_cli-2.1.10}/entangled/hooks/build.py +0 -0
- {entangled_cli-2.1.8 → entangled_cli-2.1.10}/entangled/hooks/quarto_attributes.py +0 -0
- {entangled_cli-2.1.8 → entangled_cli-2.1.10}/entangled/hooks/shebang.py +0 -0
- {entangled_cli-2.1.8 → entangled_cli-2.1.10}/entangled/hooks/task.py +0 -0
- {entangled_cli-2.1.8 → entangled_cli-2.1.10}/entangled/logging.py +0 -0
- {entangled_cli-2.1.8 → entangled_cli-2.1.10}/entangled/main.py +0 -0
- {entangled_cli-2.1.8 → entangled_cli-2.1.10}/entangled/markdown_reader.py +0 -0
- {entangled_cli-2.1.8 → entangled_cli-2.1.10}/entangled/parsing.py +0 -0
- {entangled_cli-2.1.8 → entangled_cli-2.1.10}/entangled/properties.py +0 -0
- {entangled_cli-2.1.8 → entangled_cli-2.1.10}/entangled/py.typed +0 -0
- {entangled_cli-2.1.8 → entangled_cli-2.1.10}/entangled/status.py +0 -0
- {entangled_cli-2.1.8 → entangled_cli-2.1.10}/entangled/tangle.py +0 -0
- {entangled_cli-2.1.8 → entangled_cli-2.1.10}/entangled/text_location.py +0 -0
- {entangled_cli-2.1.8 → entangled_cli-2.1.10}/entangled/transaction.py +0 -0
- {entangled_cli-2.1.8 → entangled_cli-2.1.10}/entangled/utility.py +0 -0
- {entangled_cli-2.1.8 → 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.
|
|
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
|
-
|
|
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
|
-
|
|
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
|
|
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
|
]
|
|
@@ -166,12 +166,17 @@ class FileDB:
|
|
|
166
166
|
db = FileDB.read()
|
|
167
167
|
undead = list(filter(lambda p: not p.exists(), db.files))
|
|
168
168
|
for path in undead:
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
169
|
+
if path in db.managed:
|
|
170
|
+
logging.warning(
|
|
171
|
+
"File `%s` in DB seems not to exist, but this file is managed.\n"
|
|
172
|
+
"This may happen every now and then with certain editors that "
|
|
173
|
+
"delete a file before writing.", path
|
|
174
|
+
)
|
|
175
|
+
else:
|
|
176
|
+
logging.warning(
|
|
177
|
+
"File `%s` is in database but doesn't seem to exist.\n"
|
|
178
|
+
"Run `entangled tangle -r` to recreate the database.", path
|
|
179
|
+
)
|
|
175
180
|
return db
|
|
176
181
|
|
|
177
182
|
FileDB.path().parent.mkdir(parents=True, exist_ok=True)
|
|
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
|
|
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
|
|
File without changes
|