codeannex 0.3.1__tar.gz → 0.3.2__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.
- {codeannex-0.3.1 → codeannex-0.3.2}/PKG-INFO +1 -1
- {codeannex-0.3.1 → codeannex-0.3.2}/codeannex/__main__.py +18 -4
- {codeannex-0.3.1 → codeannex-0.3.2}/codeannex.egg-info/PKG-INFO +1 -1
- {codeannex-0.3.1 → codeannex-0.3.2}/pyproject.toml +1 -1
- {codeannex-0.3.1 → codeannex-0.3.2}/LICENSE +0 -0
- {codeannex-0.3.1 → codeannex-0.3.2}/README.md +0 -0
- {codeannex-0.3.1 → codeannex-0.3.2}/codeannex/__init__.py +0 -0
- {codeannex-0.3.1 → codeannex-0.3.2}/codeannex/core/__init__.py +0 -0
- {codeannex-0.3.1 → codeannex-0.3.2}/codeannex/core/config.py +0 -0
- {codeannex-0.3.1 → codeannex-0.3.2}/codeannex/core/pdf_builder.py +0 -0
- {codeannex-0.3.1 → codeannex-0.3.2}/codeannex/interface/__init__.py +0 -0
- {codeannex-0.3.1 → codeannex-0.3.2}/codeannex/interface/cli.py +0 -0
- {codeannex-0.3.1 → codeannex-0.3.2}/codeannex/io/__init__.py +0 -0
- {codeannex-0.3.1 → codeannex-0.3.2}/codeannex/io/file_utils.py +0 -0
- {codeannex-0.3.1 → codeannex-0.3.2}/codeannex/io/git_utils.py +0 -0
- {codeannex-0.3.1 → codeannex-0.3.2}/codeannex/renderer/__init__.py +0 -0
- {codeannex-0.3.1 → codeannex-0.3.2}/codeannex/renderer/fonts.py +0 -0
- {codeannex-0.3.1 → codeannex-0.3.2}/codeannex/renderer/highlight.py +0 -0
- {codeannex-0.3.1 → codeannex-0.3.2}/codeannex/renderer/text_utils.py +0 -0
- {codeannex-0.3.1 → codeannex-0.3.2}/codeannex.egg-info/SOURCES.txt +0 -0
- {codeannex-0.3.1 → codeannex-0.3.2}/codeannex.egg-info/dependency_links.txt +0 -0
- {codeannex-0.3.1 → codeannex-0.3.2}/codeannex.egg-info/entry_points.txt +0 -0
- {codeannex-0.3.1 → codeannex-0.3.2}/codeannex.egg-info/requires.txt +0 -0
- {codeannex-0.3.1 → codeannex-0.3.2}/codeannex.egg-info/top_level.txt +0 -0
- {codeannex-0.3.1 → codeannex-0.3.2}/setup.cfg +0 -0
|
@@ -112,11 +112,25 @@ def main():
|
|
|
112
112
|
if fp.resolve() in (script_path, output_path): continue
|
|
113
113
|
except: pass
|
|
114
114
|
if not fp.is_file(): continue
|
|
115
|
+
|
|
115
116
|
ext = fp.suffix.lower()
|
|
116
|
-
if ext == ".svg":
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
elif
|
|
117
|
+
if ext == ".svg":
|
|
118
|
+
included += [(fp, "image"), (fp, "text")]
|
|
119
|
+
continue
|
|
120
|
+
elif ext in IMAGE_EXTENSIONS:
|
|
121
|
+
included.append((fp, "image"))
|
|
122
|
+
continue
|
|
123
|
+
elif ext in BINARY_EXTENSIONS:
|
|
124
|
+
rel_path = fp.relative_to(root).as_posix()
|
|
125
|
+
print(f"⚠️ Skipping binary/unsupported file: {rel_path}")
|
|
126
|
+
continue
|
|
127
|
+
|
|
128
|
+
file_type = classify_file(fp)
|
|
129
|
+
if file_type == "text":
|
|
130
|
+
included.append((fp, "text"))
|
|
131
|
+
else:
|
|
132
|
+
rel_path = fp.relative_to(root).as_posix()
|
|
133
|
+
print(f"⚠️ Skipping binary file: {rel_path}")
|
|
120
134
|
|
|
121
135
|
if not included:
|
|
122
136
|
print("❌ No compatible files found."); return
|
|
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "codeannex"
|
|
7
|
-
version = "0.3.
|
|
7
|
+
version = "0.3.2"
|
|
8
8
|
description = "Generates a professional PDF source code annex with Smart Index, Images and Emoji support."
|
|
9
9
|
readme = "README.md"
|
|
10
10
|
license = { text = "MIT" }
|
|
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
|