lr-gladiator 0.3.0__tar.gz → 0.4.0__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.
Potentially problematic release.
This version of lr-gladiator might be problematic. Click here for more details.
- {lr_gladiator-0.3.0/src/lr_gladiator.egg-info → lr_gladiator-0.4.0}/PKG-INFO +1 -1
- {lr_gladiator-0.3.0 → lr_gladiator-0.4.0}/pyproject.toml +1 -1
- {lr_gladiator-0.3.0 → lr_gladiator-0.4.0}/src/gladiator/arena.py +1 -4
- {lr_gladiator-0.3.0 → lr_gladiator-0.4.0}/src/gladiator/cli.py +1 -1
- {lr_gladiator-0.3.0 → lr_gladiator-0.4.0/src/lr_gladiator.egg-info}/PKG-INFO +1 -1
- {lr_gladiator-0.3.0 → lr_gladiator-0.4.0}/LICENSE +0 -0
- {lr_gladiator-0.3.0 → lr_gladiator-0.4.0}/README.md +0 -0
- {lr_gladiator-0.3.0 → lr_gladiator-0.4.0}/setup.cfg +0 -0
- {lr_gladiator-0.3.0 → lr_gladiator-0.4.0}/src/gladiator/__init__.py +0 -0
- {lr_gladiator-0.3.0 → lr_gladiator-0.4.0}/src/gladiator/config.py +0 -0
- {lr_gladiator-0.3.0 → lr_gladiator-0.4.0}/src/lr_gladiator.egg-info/SOURCES.txt +0 -0
- {lr_gladiator-0.3.0 → lr_gladiator-0.4.0}/src/lr_gladiator.egg-info/dependency_links.txt +0 -0
- {lr_gladiator-0.3.0 → lr_gladiator-0.4.0}/src/lr_gladiator.egg-info/entry_points.txt +0 -0
- {lr_gladiator-0.3.0 → lr_gladiator-0.4.0}/src/lr_gladiator.egg-info/requires.txt +0 -0
- {lr_gladiator-0.3.0 → lr_gladiator-0.4.0}/src/lr_gladiator.egg-info/top_level.txt +0 -0
- {lr_gladiator-0.3.0 → lr_gladiator-0.4.0}/tests/test_smoke.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: lr-gladiator
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.4.0
|
|
4
4
|
Summary: CLI and Python client for Arena PLM (app.bom.com): login, get revisions, list/download attachments, and upload to working revisions.
|
|
5
5
|
Author-email: Jonas Estberger <jonas.estberger@lumenradio.com>
|
|
6
6
|
License: MIT
|
|
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "lr-gladiator"
|
|
7
|
-
version = "0.
|
|
7
|
+
version = "0.4.0"
|
|
8
8
|
description = "CLI and Python client for Arena PLM (app.bom.com): login, get revisions, list/download attachments, and upload to working revisions."
|
|
9
9
|
readme = "README.md"
|
|
10
10
|
requires-python = ">=3.9"
|
|
@@ -431,14 +431,11 @@ class ArenaClient:
|
|
|
431
431
|
title = title or file_path.stem
|
|
432
432
|
file_format = file_format or (file_path.suffix[1:].lower() if file_path.suffix else "bin")
|
|
433
433
|
description = description or "Uploaded via gladiator"
|
|
434
|
+
files = {"content": (file_path.name, open(file_path, "rb"), "application/octet-stream")}
|
|
434
435
|
|
|
435
|
-
files = {
|
|
436
|
-
"content": (file_path.name, open(file_path, "rb"), "application/octet-stream"),
|
|
437
|
-
}
|
|
438
436
|
# NOTE: nested field names are sent in `data`, not `files`
|
|
439
437
|
data_form = {
|
|
440
438
|
"file.title": title,
|
|
441
|
-
"file.name": filename,
|
|
442
439
|
"file.description": description,
|
|
443
440
|
"file.category.guid": cat_guid,
|
|
444
441
|
"file.format": file_format,
|
|
@@ -137,7 +137,7 @@ def upload_file(
|
|
|
137
137
|
category: str = typer.Option("CAD Data", "--category", help='File category name (default: "CAD Data")'),
|
|
138
138
|
file_format: Optional[str] = typer.Option(None, "--format", help="File format (default: file extension)"),
|
|
139
139
|
description: Optional[str] = typer.Option(None, "--desc", help="Optional description"),
|
|
140
|
-
primary: bool = typer.Option(
|
|
140
|
+
primary: bool = typer.Option(False, "--primary/--no-primary", help="Mark association as primary"),
|
|
141
141
|
edition: str = typer.Option("1", "--edition", help="Edition number when creating a new association (default: 1)"),
|
|
142
142
|
):
|
|
143
143
|
"""If a file with the same filename exists: update its content (new edition).
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: lr-gladiator
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.4.0
|
|
4
4
|
Summary: CLI and Python client for Arena PLM (app.bom.com): login, get revisions, list/download attachments, and upload to working revisions.
|
|
5
5
|
Author-email: Jonas Estberger <jonas.estberger@lumenradio.com>
|
|
6
6
|
License: 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
|