partcad-cli 0.6.4__tar.gz → 0.6.9__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.
- {partcad_cli-0.6.4 → partcad_cli-0.6.9}/PKG-INFO +2 -2
- {partcad_cli-0.6.4 → partcad_cli-0.6.9}/pyproject.toml +1 -4
- {partcad_cli-0.6.4 → partcad_cli-0.6.9}/requirements.txt +1 -1
- {partcad_cli-0.6.4 → partcad_cli-0.6.9}/src/partcad_cli/__init__.py +1 -1
- {partcad_cli-0.6.4 → partcad_cli-0.6.9}/src/partcad_cli/cli.py +3 -0
- {partcad_cli-0.6.4 → partcad_cli-0.6.9}/src/partcad_cli/cli_render.py +33 -3
- {partcad_cli-0.6.4 → partcad_cli-0.6.9}/src/partcad_cli.egg-info/PKG-INFO +2 -2
- {partcad_cli-0.6.4 → partcad_cli-0.6.9}/src/partcad_cli.egg-info/requires.txt +1 -1
- {partcad_cli-0.6.4 → partcad_cli-0.6.9}/README.md +0 -0
- {partcad_cli-0.6.4 → partcad_cli-0.6.9}/setup.cfg +0 -0
- {partcad_cli-0.6.4 → partcad_cli-0.6.9}/src/partcad_cli/cli_add.py +0 -0
- {partcad_cli-0.6.4 → partcad_cli-0.6.9}/src/partcad_cli/cli_info.py +0 -0
- {partcad_cli-0.6.4 → partcad_cli-0.6.9}/src/partcad_cli/cli_init.py +0 -0
- {partcad_cli-0.6.4 → partcad_cli-0.6.9}/src/partcad_cli/cli_inspect.py +0 -0
- {partcad_cli-0.6.4 → partcad_cli-0.6.9}/src/partcad_cli/cli_install.py +0 -0
- {partcad_cli-0.6.4 → partcad_cli-0.6.9}/src/partcad_cli/cli_list.py +0 -0
- {partcad_cli-0.6.4 → partcad_cli-0.6.9}/src/partcad_cli/cli_status.py +0 -0
- {partcad_cli-0.6.4 → partcad_cli-0.6.9}/src/partcad_cli.egg-info/SOURCES.txt +0 -0
- {partcad_cli-0.6.4 → partcad_cli-0.6.9}/src/partcad_cli.egg-info/dependency_links.txt +0 -0
- {partcad_cli-0.6.4 → partcad_cli-0.6.9}/src/partcad_cli.egg-info/entry_points.txt +0 -0
- {partcad_cli-0.6.4 → partcad_cli-0.6.9}/src/partcad_cli.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: partcad-cli
|
|
3
|
-
Version: 0.6.
|
|
3
|
+
Version: 0.6.9
|
|
4
4
|
Summary: Command-line interface to PartCAD
|
|
5
5
|
Author-email: Roman Kuzmenko <openvmp@proton.me>
|
|
6
6
|
Maintainer-email: Roman Kuzmenko <openvmp@proton.me>
|
|
@@ -12,7 +12,7 @@ Classifier: License :: OSI Approved :: Apache Software License
|
|
|
12
12
|
Classifier: Operating System :: OS Independent
|
|
13
13
|
Requires-Python: >=3.10
|
|
14
14
|
Description-Content-Type: text/markdown
|
|
15
|
-
Requires-Dist: partcad==0.6.
|
|
15
|
+
Requires-Dist: partcad==0.6.9
|
|
16
16
|
Requires-Dist: renderlab
|
|
17
17
|
Requires-Dist: rlPyCairo
|
|
18
18
|
Requires-Dist: svglib
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "partcad-cli"
|
|
3
|
-
version = "0.6.
|
|
3
|
+
version = "0.6.9"
|
|
4
4
|
description = "Command-line interface to PartCAD"
|
|
5
5
|
readme = "README.md"
|
|
6
6
|
keywords = ["cadquery", "build123d", "cad", "design", "openscad", "step", "stl"]
|
|
@@ -20,9 +20,6 @@ classifiers = [
|
|
|
20
20
|
"Operating System :: OS Independent",
|
|
21
21
|
]
|
|
22
22
|
|
|
23
|
-
[tool.setuptools.package-data]
|
|
24
|
-
"partcad_cli.template" = ["*.yaml"]
|
|
25
|
-
|
|
26
23
|
[project.scripts]
|
|
27
24
|
pc = "partcad_cli:main_cli"
|
|
28
25
|
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
|
|
11
11
|
import argparse
|
|
12
12
|
import logging
|
|
13
|
+
import sys
|
|
13
14
|
|
|
14
15
|
import partcad as pc
|
|
15
16
|
import partcad.logging as pc_logging
|
|
@@ -179,6 +180,8 @@ def main():
|
|
|
179
180
|
|
|
180
181
|
if not args.no_ansi:
|
|
181
182
|
pc.logging_ansi_terminal_fini()
|
|
183
|
+
if pc_logging.had_errors:
|
|
184
|
+
sys.exit(1)
|
|
182
185
|
|
|
183
186
|
|
|
184
187
|
if __name__ == "__main__":
|
|
@@ -37,7 +37,17 @@ def cli_help_render(subparsers: argparse.ArgumentParser):
|
|
|
37
37
|
dest="format",
|
|
38
38
|
type=str,
|
|
39
39
|
nargs="?",
|
|
40
|
-
choices=[
|
|
40
|
+
choices=[
|
|
41
|
+
"readme",
|
|
42
|
+
"svg",
|
|
43
|
+
"png",
|
|
44
|
+
"step",
|
|
45
|
+
"stl",
|
|
46
|
+
"3mf",
|
|
47
|
+
"threejs",
|
|
48
|
+
"obj",
|
|
49
|
+
"gltf",
|
|
50
|
+
],
|
|
41
51
|
)
|
|
42
52
|
|
|
43
53
|
parser_render.add_argument(
|
|
@@ -50,6 +60,18 @@ def cli_help_render(subparsers: argparse.ArgumentParser):
|
|
|
50
60
|
)
|
|
51
61
|
|
|
52
62
|
group_type = parser_render.add_mutually_exclusive_group(required=False)
|
|
63
|
+
group_type.add_argument(
|
|
64
|
+
"-s",
|
|
65
|
+
help="The object is a sketch",
|
|
66
|
+
dest="sketch",
|
|
67
|
+
action="store_true",
|
|
68
|
+
)
|
|
69
|
+
group_type.add_argument(
|
|
70
|
+
"-i",
|
|
71
|
+
help="The object is an interface",
|
|
72
|
+
dest="interface",
|
|
73
|
+
action="store_true",
|
|
74
|
+
)
|
|
53
75
|
group_type.add_argument(
|
|
54
76
|
"-a",
|
|
55
77
|
help="The object is an assembly",
|
|
@@ -57,7 +79,7 @@ def cli_help_render(subparsers: argparse.ArgumentParser):
|
|
|
57
79
|
action="store_true",
|
|
58
80
|
)
|
|
59
81
|
group_type.add_argument(
|
|
60
|
-
"-
|
|
82
|
+
"-S",
|
|
61
83
|
help="The object is a scene",
|
|
62
84
|
dest="scene",
|
|
63
85
|
action="store_true",
|
|
@@ -92,15 +114,23 @@ def cli_render(args, ctx):
|
|
|
92
114
|
)
|
|
93
115
|
else:
|
|
94
116
|
# Render the requested part or assembly
|
|
117
|
+
sketches = []
|
|
118
|
+
interfaces = []
|
|
95
119
|
parts = []
|
|
96
120
|
assemblies = []
|
|
97
|
-
if args.
|
|
121
|
+
if args.sketch:
|
|
122
|
+
sketches.append(args.object)
|
|
123
|
+
elif args.interface:
|
|
124
|
+
interfaces.append(args.object)
|
|
125
|
+
elif args.assembly:
|
|
98
126
|
assemblies.append(args.object)
|
|
99
127
|
else:
|
|
100
128
|
parts.append(args.object)
|
|
101
129
|
|
|
102
130
|
prj = ctx.get_project(args.package)
|
|
103
131
|
prj.render(
|
|
132
|
+
sketches=sketches,
|
|
133
|
+
interfaces=interfaces,
|
|
104
134
|
parts=parts,
|
|
105
135
|
assemblies=assemblies,
|
|
106
136
|
format=args.format,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: partcad-cli
|
|
3
|
-
Version: 0.6.
|
|
3
|
+
Version: 0.6.9
|
|
4
4
|
Summary: Command-line interface to PartCAD
|
|
5
5
|
Author-email: Roman Kuzmenko <openvmp@proton.me>
|
|
6
6
|
Maintainer-email: Roman Kuzmenko <openvmp@proton.me>
|
|
@@ -12,7 +12,7 @@ Classifier: License :: OSI Approved :: Apache Software License
|
|
|
12
12
|
Classifier: Operating System :: OS Independent
|
|
13
13
|
Requires-Python: >=3.10
|
|
14
14
|
Description-Content-Type: text/markdown
|
|
15
|
-
Requires-Dist: partcad==0.6.
|
|
15
|
+
Requires-Dist: partcad==0.6.9
|
|
16
16
|
Requires-Dist: renderlab
|
|
17
17
|
Requires-Dist: rlPyCairo
|
|
18
18
|
Requires-Dist: svglib
|
|
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
|