foundrytools-cli 2.1.0__tar.gz → 2.1.1__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.
- {foundrytools_cli-2.1.0 → foundrytools_cli-2.1.1}/PKG-INFO +2 -2
- {foundrytools_cli-2.1.0 → foundrytools_cli-2.1.1}/pyproject.toml +3 -3
- foundrytools_cli-2.1.1/src/foundrytools_cli/__init__.py +3 -0
- {foundrytools_cli-2.1.0 → foundrytools_cli-2.1.1}/src/foundrytools_cli/commands/utils/cli.py +0 -10
- {foundrytools_cli-2.1.0 → foundrytools_cli-2.1.1}/src/foundrytools_cli/commands/utils/font_renamer.py +5 -2
- foundrytools_cli-2.1.0/src/foundrytools_cli/__init__.py +0 -3
- {foundrytools_cli-2.1.0 → foundrytools_cli-2.1.1}/README.md +0 -0
- {foundrytools_cli-2.1.0 → foundrytools_cli-2.1.1}/src/foundrytools_cli/__main__.py +0 -0
- {foundrytools_cli-2.1.0 → foundrytools_cli-2.1.1}/src/foundrytools_cli/commands/__init__.py +0 -0
- {foundrytools_cli-2.1.0 → foundrytools_cli-2.1.1}/src/foundrytools_cli/commands/cff.py +0 -0
- {foundrytools_cli-2.1.0 → foundrytools_cli-2.1.1}/src/foundrytools_cli/commands/cmap.py +0 -0
- {foundrytools_cli-2.1.0 → foundrytools_cli-2.1.1}/src/foundrytools_cli/commands/converter/__init__.py +0 -0
- {foundrytools_cli-2.1.0 → foundrytools_cli-2.1.1}/src/foundrytools_cli/commands/converter/cli.py +0 -0
- {foundrytools_cli-2.1.0 → foundrytools_cli-2.1.1}/src/foundrytools_cli/commands/converter/ttf_to_otf.py +0 -0
- {foundrytools_cli-2.1.0 → foundrytools_cli-2.1.1}/src/foundrytools_cli/commands/fix/__init__.py +0 -0
- {foundrytools_cli-2.1.0 → foundrytools_cli-2.1.1}/src/foundrytools_cli/commands/fix/cli.py +0 -0
- {foundrytools_cli-2.1.0 → foundrytools_cli-2.1.1}/src/foundrytools_cli/commands/fix/legacy_accents.py +0 -0
- {foundrytools_cli-2.1.0 → foundrytools_cli-2.1.1}/src/foundrytools_cli/commands/fix/vertical_metrics.py +0 -0
- {foundrytools_cli-2.1.0 → foundrytools_cli-2.1.1}/src/foundrytools_cli/commands/font.py +0 -0
- {foundrytools_cli-2.1.0 → foundrytools_cli-2.1.1}/src/foundrytools_cli/commands/gsub.py +0 -0
- {foundrytools_cli-2.1.0 → foundrytools_cli-2.1.1}/src/foundrytools_cli/commands/hhea.py +0 -0
- {foundrytools_cli-2.1.0 → foundrytools_cli-2.1.1}/src/foundrytools_cli/commands/name.py +0 -0
- {foundrytools_cli-2.1.0 → foundrytools_cli-2.1.1}/src/foundrytools_cli/commands/os_2.py +0 -0
- {foundrytools_cli-2.1.0 → foundrytools_cli-2.1.1}/src/foundrytools_cli/commands/otf.py +0 -0
- {foundrytools_cli-2.1.0 → foundrytools_cli-2.1.1}/src/foundrytools_cli/commands/post.py +0 -0
- {foundrytools_cli-2.1.0 → foundrytools_cli-2.1.1}/src/foundrytools_cli/commands/print/__init__.py +0 -0
- {foundrytools_cli-2.1.0 → foundrytools_cli-2.1.1}/src/foundrytools_cli/commands/print/cli.py +0 -0
- {foundrytools_cli-2.1.0 → foundrytools_cli-2.1.1}/src/foundrytools_cli/commands/print/font_info.py +0 -0
- {foundrytools_cli-2.1.0 → foundrytools_cli-2.1.1}/src/foundrytools_cli/commands/print/font_names.py +0 -0
- {foundrytools_cli-2.1.0 → foundrytools_cli-2.1.1}/src/foundrytools_cli/commands/print/vf_instances.py +0 -0
- {foundrytools_cli-2.1.0 → foundrytools_cli-2.1.1}/src/foundrytools_cli/commands/ttf.py +0 -0
- {foundrytools_cli-2.1.0 → foundrytools_cli-2.1.1}/src/foundrytools_cli/commands/utils/__init__.py +0 -0
- {foundrytools_cli-2.1.0 → foundrytools_cli-2.1.1}/src/foundrytools_cli/commands/utils/font_organizer.py +0 -0
- {foundrytools_cli-2.1.0 → foundrytools_cli-2.1.1}/src/foundrytools_cli/commands/utils/sync_timestamps.py +0 -0
- {foundrytools_cli-2.1.0 → foundrytools_cli-2.1.1}/src/foundrytools_cli/utils/__init__.py +0 -0
- {foundrytools_cli-2.1.0 → foundrytools_cli-2.1.1}/src/foundrytools_cli/utils/logger.py +0 -0
- {foundrytools_cli-2.1.0 → foundrytools_cli-2.1.1}/src/foundrytools_cli/utils/task_runner.py +0 -0
- {foundrytools_cli-2.1.0 → foundrytools_cli-2.1.1}/src/foundrytools_cli/utils/timer.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: foundrytools-cli
|
|
3
|
-
Version: 2.1.
|
|
3
|
+
Version: 2.1.1
|
|
4
4
|
Summary: A set of command line tools to inspect, manipulate and convert font files
|
|
5
5
|
Author: Cesare Gilento
|
|
6
6
|
Author-email: Cesare Gilento <ftcli@proton.me>
|
|
@@ -23,7 +23,7 @@ Requires-Dist: click>=8.3.1
|
|
|
23
23
|
Requires-Dist: foundrytools>=0.1.6
|
|
24
24
|
Requires-Dist: loguru>=0.7.3
|
|
25
25
|
Requires-Dist: pathvalidate>=3.3.1
|
|
26
|
-
Requires-Dist: rich>=14.3.
|
|
26
|
+
Requires-Dist: rich>=14.3.1
|
|
27
27
|
Requires-Dist: ufolib2>=0.18.1
|
|
28
28
|
Requires-Dist: win32-setctime>=1.2.0 ; sys_platform >= 'win32'
|
|
29
29
|
Requires-Python: >=3.10
|
|
@@ -4,7 +4,7 @@ build-backend = "uv_build"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "foundrytools-cli"
|
|
7
|
-
version = "2.1.
|
|
7
|
+
version = "2.1.1"
|
|
8
8
|
description = "A set of command line tools to inspect, manipulate and convert font files"
|
|
9
9
|
readme = "README.md"
|
|
10
10
|
license = "MIT"
|
|
@@ -35,7 +35,7 @@ dependencies = [
|
|
|
35
35
|
"foundrytools>=0.1.6",
|
|
36
36
|
"loguru>=0.7.3",
|
|
37
37
|
"pathvalidate>=3.3.1",
|
|
38
|
-
"rich>=14.3.
|
|
38
|
+
"rich>=14.3.1",
|
|
39
39
|
"ufolib2>=0.18.1",
|
|
40
40
|
"win32-setctime>=1.2.0; sys_platform >= 'win32'",
|
|
41
41
|
]
|
|
@@ -59,7 +59,7 @@ ftcli = "foundrytools_cli.__main__:cli"
|
|
|
59
59
|
Homepage = "https://github.com/ftCLI/FoundryTools-CLI"
|
|
60
60
|
|
|
61
61
|
[tool.bumpversion]
|
|
62
|
-
current_version = "2.1.
|
|
62
|
+
current_version = "2.1.1"
|
|
63
63
|
commit = false
|
|
64
64
|
tag = false
|
|
65
65
|
|
{foundrytools_cli-2.1.0 → foundrytools_cli-2.1.1}/src/foundrytools_cli/commands/utils/cli.py
RENAMED
|
@@ -56,16 +56,6 @@ cli = click.Group(help="Miscellaneous utilities.")
|
|
|
56
56
|
6: Macintosh LWFN (LaserWriter Font Naming) using 5:3:3 rule
|
|
57
57
|
""",
|
|
58
58
|
)
|
|
59
|
-
@click.option(
|
|
60
|
-
"-o",
|
|
61
|
-
"--overwrite",
|
|
62
|
-
"overwrite",
|
|
63
|
-
is_flag=True,
|
|
64
|
-
help="""
|
|
65
|
-
Allow overwriting output files. THIS MIGHT POTENTIALLY RESULT IN LOSS OF FILES.
|
|
66
|
-
USE WITH CARE.
|
|
67
|
-
""",
|
|
68
|
-
)
|
|
69
59
|
@recursive_flag()
|
|
70
60
|
def font_renamer(input_path: Path, **options: dict[str, Any]) -> None:
|
|
71
61
|
"""
|
|
@@ -116,7 +116,7 @@ def _get_file_stem(font: Font, source: int = 1) -> str:
|
|
|
116
116
|
return sanitize_filename(file_name, platform="auto")
|
|
117
117
|
|
|
118
118
|
|
|
119
|
-
def main(font: Font, source: int = 1
|
|
119
|
+
def main(font: Font, source: int = 1) -> None:
|
|
120
120
|
"""
|
|
121
121
|
Renames the given font files.
|
|
122
122
|
"""
|
|
@@ -128,20 +128,23 @@ def main(font: Font, source: int = 1, overwrite: bool = False) -> None:
|
|
|
128
128
|
f"source=4 and source=5 can be used for OTF files only. Using source=1 for "
|
|
129
129
|
f"{old_file.name}"
|
|
130
130
|
)
|
|
131
|
+
|
|
131
132
|
new_file_name = sanitize_filename(_get_file_stem(font=font, source=source))
|
|
132
133
|
new_file = font.get_file_path(
|
|
133
134
|
file=Path(new_file_name),
|
|
134
135
|
extension=font.get_file_ext(),
|
|
135
136
|
output_dir=old_file.parent,
|
|
136
|
-
overwrite=
|
|
137
|
+
overwrite=True,
|
|
137
138
|
)
|
|
138
139
|
if new_file == old_file:
|
|
139
140
|
logger.skip(f"{old_file.name} is already named correctly") # type: ignore
|
|
140
141
|
return
|
|
142
|
+
|
|
141
143
|
if new_file.exists():
|
|
142
144
|
logger.warning(f"Another file named {new_file.name} already exists")
|
|
143
145
|
logger.skip(f"{old_file.name} was not renamed") # type: ignore
|
|
144
146
|
return
|
|
147
|
+
|
|
145
148
|
try:
|
|
146
149
|
old_file.rename(new_file)
|
|
147
150
|
logger.opt(colors=True).info(
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{foundrytools_cli-2.1.0 → foundrytools_cli-2.1.1}/src/foundrytools_cli/commands/converter/cli.py
RENAMED
|
File without changes
|
|
File without changes
|
{foundrytools_cli-2.1.0 → foundrytools_cli-2.1.1}/src/foundrytools_cli/commands/fix/__init__.py
RENAMED
|
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
|
{foundrytools_cli-2.1.0 → foundrytools_cli-2.1.1}/src/foundrytools_cli/commands/print/__init__.py
RENAMED
|
File without changes
|
{foundrytools_cli-2.1.0 → foundrytools_cli-2.1.1}/src/foundrytools_cli/commands/print/cli.py
RENAMED
|
File without changes
|
{foundrytools_cli-2.1.0 → foundrytools_cli-2.1.1}/src/foundrytools_cli/commands/print/font_info.py
RENAMED
|
File without changes
|
{foundrytools_cli-2.1.0 → foundrytools_cli-2.1.1}/src/foundrytools_cli/commands/print/font_names.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{foundrytools_cli-2.1.0 → foundrytools_cli-2.1.1}/src/foundrytools_cli/commands/utils/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|