artefacts-cli 0.10.2__tar.gz → 0.12.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.
- {artefacts_cli-0.10.2 → artefacts_cli-0.12.0}/CHANGELOG.md +41 -5
- {artefacts_cli-0.10.2/artefacts_cli.egg-info → artefacts_cli-0.12.0}/PKG-INFO +8 -4
- {artefacts_cli-0.10.2 → artefacts_cli-0.12.0}/README.md +4 -0
- {artefacts_cli-0.10.2 → artefacts_cli-0.12.0}/artefacts/api/api/project/get_config.py +42 -1
- {artefacts_cli-0.10.2 → artefacts_cli-0.12.0}/artefacts/api/models/job.py +20 -0
- {artefacts_cli-0.10.2 → artefacts_cli-0.12.0}/artefacts/api/models/project.py +20 -0
- {artefacts_cli-0.10.2 → artefacts_cli-0.12.0}/artefacts/cli/__init__.py +142 -87
- {artefacts_cli-0.10.2 → artefacts_cli-0.12.0}/artefacts/cli/app.py +371 -248
- {artefacts_cli-0.10.2 → artefacts_cli-0.12.0}/artefacts/cli/app_containers.py +8 -3
- {artefacts_cli-0.10.2 → artefacts_cli-0.12.0}/artefacts/cli/config.py +2 -3
- {artefacts_cli-0.10.2 → artefacts_cli-0.12.0}/artefacts/cli/constants.py +5 -1
- {artefacts_cli-0.10.2 → artefacts_cli-0.12.0}/artefacts/cli/containers/__init__.py +15 -1
- {artefacts_cli-0.10.2 → artefacts_cli-0.12.0}/artefacts/cli/containers/docker_cm.py +24 -10
- {artefacts_cli-0.10.2 → artefacts_cli-0.12.0}/artefacts/cli/core/code_environment.py +3 -1
- {artefacts_cli-0.10.2 → artefacts_cli-0.12.0}/artefacts/cli/locales/art.pot +132 -63
- {artefacts_cli-0.10.2 → artefacts_cli-0.12.0}/artefacts/cli/locales/base.pot +131 -62
- {artefacts_cli-0.10.2 → artefacts_cli-0.12.0}/artefacts/cli/locales/click.pot +4 -5
- {artefacts_cli-0.10.2 → artefacts_cli-0.12.0}/artefacts/cli/locales/ja_JP/LC_MESSAGES/artefacts.po +179 -115
- {artefacts_cli-0.10.2 → artefacts_cli-0.12.0}/artefacts/cli/reporter.py +1 -1
- artefacts_cli-0.10.2/artefacts/cli/other.py → artefacts_cli-0.12.0/artefacts/cli/runners/base_runner.py +7 -3
- artefacts_cli-0.10.2/artefacts/cli/run_launch_test.py → artefacts_cli-0.12.0/artefacts/cli/runners/launch_test_runner.py +7 -5
- artefacts_cli-0.10.2/artefacts/cli/run_pytest.py → artefacts_cli-0.12.0/artefacts/cli/runners/pytest_runner.py +7 -4
- artefacts_cli-0.12.0/artefacts/cli/utils/__init__.py +8 -0
- artefacts_cli-0.12.0/artefacts/cli/utils/api.py +31 -0
- artefacts_cli-0.12.0/artefacts/cli/utils/click_net_watch.py +98 -0
- artefacts_cli-0.10.2/artefacts/cli/utils.py → artefacts_cli-0.12.0/artefacts/cli/utils/common.py +52 -119
- artefacts_cli-0.10.2/artefacts/cli/helpers.py → artefacts_cli-0.12.0/artefacts/cli/utils/config.py +0 -37
- artefacts_cli-0.12.0/artefacts/cli/utils/formatting.py +21 -0
- artefacts_cli-0.10.2/artefacts/cli/result_utils.py → artefacts_cli-0.12.0/artefacts/cli/utils/junit.py +0 -41
- artefacts_cli-0.12.0/artefacts/cli/utils/proc_tree_tracker.py +175 -0
- artefacts_cli-0.12.0/artefacts/cli/utils/ros/rosbags.py +41 -0
- {artefacts_cli-0.10.2 → artefacts_cli-0.12.0}/artefacts/cli/version.py +3 -3
- {artefacts_cli-0.10.2 → artefacts_cli-0.12.0/artefacts_cli.egg-info}/PKG-INFO +8 -4
- {artefacts_cli-0.10.2 → artefacts_cli-0.12.0}/artefacts_cli.egg-info/SOURCES.txt +17 -8
- {artefacts_cli-0.10.2 → artefacts_cli-0.12.0}/artefacts_cli.egg-info/requires.txt +3 -3
- {artefacts_cli-0.10.2 → artefacts_cli-0.12.0}/pyproject.toml +3 -4
- artefacts_cli-0.12.0/tests/cli/containers/__init__.py +0 -0
- {artefacts_cli-0.10.2 → artefacts_cli-0.12.0}/tests/cli/test_cli.py +74 -25
- artefacts_cli-0.12.0/tests/cli/test_init.py +124 -0
- {artefacts_cli-0.10.2 → artefacts_cli-0.12.0}/tests/cli/test_other.py +8 -6
- {artefacts_cli-0.10.2 → artefacts_cli-0.12.0}/tests/cli/test_parameters.py +1 -1
- {artefacts_cli-0.10.2 → artefacts_cli-0.12.0}/tests/cli/test_pytest.py +17 -12
- {artefacts_cli-0.10.2 → artefacts_cli-0.12.0}/tests/cli/test_ros2.py +22 -15
- artefacts_cli-0.12.0/tests/cli/test_signals.py +37 -0
- {artefacts_cli-0.10.2 → artefacts_cli-0.12.0}/tests/cli/test_utils.py +18 -12
- {artefacts_cli-0.10.2 → artefacts_cli-0.12.0}/tests/cli/test_utils_ros.py +1 -1
- {artefacts_cli-0.10.2 → artefacts_cli-0.12.0}/tests/cli/test_warp.py +27 -0
- {artefacts_cli-0.10.2 → artefacts_cli-0.12.0}/tests/cli/test_warp_run.py +145 -0
- {artefacts_cli-0.10.2 → artefacts_cli-0.12.0}/tests/conftest.py +2 -8
- artefacts_cli-0.12.0/tests/fixtures/bad_launch_test.py +0 -0
- artefacts_cli-0.10.2/tests/cli/test_signals.py +0 -57
- {artefacts_cli-0.10.2 → artefacts_cli-0.12.0}/.coveragerc +0 -0
- {artefacts_cli-0.10.2 → artefacts_cli-0.12.0}/.pyre_configuration +0 -0
- {artefacts_cli-0.10.2 → artefacts_cli-0.12.0}/README_INTERNAL.md +0 -0
- {artefacts_cli-0.10.2 → artefacts_cli-0.12.0}/artefacts/__init__.py +0 -0
- {artefacts_cli-0.10.2 → artefacts_cli-0.12.0}/artefacts/api/__init__.py +0 -0
- {artefacts_cli-0.10.2 → artefacts_cli-0.12.0}/artefacts/api/api/__init__.py +0 -0
- {artefacts_cli-0.10.2 → artefacts_cli-0.12.0}/artefacts/api/api/default/__init__.py +0 -0
- {artefacts_cli-0.10.2 → artefacts_cli-0.12.0}/artefacts/api/api/default/get_artifact.py +0 -0
- {artefacts_cli-0.10.2 → artefacts_cli-0.12.0}/artefacts/api/api/job/__init__.py +0 -0
- {artefacts_cli-0.10.2 → artefacts_cli-0.12.0}/artefacts/api/api/job/api_project_new_job.py +0 -0
- {artefacts_cli-0.10.2 → artefacts_cli-0.12.0}/artefacts/api/api/job/get_artifact_downloads.py +0 -0
- {artefacts_cli-0.10.2 → artefacts_cli-0.12.0}/artefacts/api/api/job/get_job_by_commit.py +0 -0
- {artefacts_cli-0.10.2 → artefacts_cli-0.12.0}/artefacts/api/api/job/get_job_test_results.py +0 -0
- {artefacts_cli-0.10.2 → artefacts_cli-0.12.0}/artefacts/api/api/job/post_update_job_results.py +0 -0
- {artefacts_cli-0.10.2 → artefacts_cli-0.12.0}/artefacts/api/api/job/put_update_job_results.py +0 -0
- {artefacts_cli-0.10.2 → artefacts_cli-0.12.0}/artefacts/api/api/project/__init__.py +0 -0
- {artefacts_cli-0.10.2 → artefacts_cli-0.12.0}/artefacts/api/api/project/api_project_info.py +0 -0
- {artefacts_cli-0.10.2 → artefacts_cli-0.12.0}/artefacts/api/api/project/create_remote.py +0 -0
- {artefacts_cli-0.10.2 → artefacts_cli-0.12.0}/artefacts/api/api/project/get_badge.py +0 -0
- {artefacts_cli-0.10.2 → artefacts_cli-0.12.0}/artefacts/api/api/project/get_last_jobs.py +0 -0
- {artefacts_cli-0.10.2 → artefacts_cli-0.12.0}/artefacts/api/api/project/upload_source.py +0 -0
- {artefacts_cli-0.10.2 → artefacts_cli-0.12.0}/artefacts/api/api/run/__init__.py +0 -0
- {artefacts_cli-0.10.2 → artefacts_cli-0.12.0}/artefacts/api/api/run/create_job_run.py +0 -0
- {artefacts_cli-0.10.2 → artefacts_cli-0.12.0}/artefacts/api/api/run/submit_run_results.py +0 -0
- {artefacts_cli-0.10.2 → artefacts_cli-0.12.0}/artefacts/api/client.py +0 -0
- {artefacts_cli-0.10.2 → artefacts_cli-0.12.0}/artefacts/api/errors.py +0 -0
- {artefacts_cli-0.10.2 → artefacts_cli-0.12.0}/artefacts/api/models/__init__.py +0 -0
- {artefacts_cli-0.10.2 → artefacts_cli-0.12.0}/artefacts/api/models/artifact_response.py +0 -0
- {artefacts_cli-0.10.2 → artefacts_cli-0.12.0}/artefacts/api/models/create_new_job.py +0 -0
- {artefacts_cli-0.10.2 → artefacts_cli-0.12.0}/artefacts/api/models/create_remote.py +0 -0
- {artefacts_cli-0.10.2 → artefacts_cli-0.12.0}/artefacts/api/models/create_remote_response.py +0 -0
- {artefacts_cli-0.10.2 → artefacts_cli-0.12.0}/artefacts/api/models/create_remote_response_upload_urls.py +0 -0
- {artefacts_cli-0.10.2 → artefacts_cli-0.12.0}/artefacts/api/models/error.py +0 -0
- {artefacts_cli-0.10.2 → artefacts_cli-0.12.0}/artefacts/api/models/error_errors.py +0 -0
- {artefacts_cli-0.10.2 → artefacts_cli-0.12.0}/artefacts/api/models/get_artifact_downloads_response.py +0 -0
- {artefacts_cli-0.10.2 → artefacts_cli-0.12.0}/artefacts/api/models/last_jobs_response.py +0 -0
- {artefacts_cli-0.10.2 → artefacts_cli-0.12.0}/artefacts/api/models/presigned_url.py +0 -0
- {artefacts_cli-0.10.2 → artefacts_cli-0.12.0}/artefacts/api/models/presigned_url_fields.py +0 -0
- {artefacts_cli-0.10.2 → artefacts_cli-0.12.0}/artefacts/api/models/register_run.py +0 -0
- {artefacts_cli-0.10.2 → artefacts_cli-0.12.0}/artefacts/api/models/register_run_tests_item.py +0 -0
- {artefacts_cli-0.10.2 → artefacts_cli-0.12.0}/artefacts/api/models/scenario_map_response.py +0 -0
- {artefacts_cli-0.10.2 → artefacts_cli-0.12.0}/artefacts/api/models/submit_run_results.py +2 -2
- {artefacts_cli-0.10.2 → artefacts_cli-0.12.0}/artefacts/api/models/submit_run_results_metrics.py +0 -0
- {artefacts_cli-0.10.2 → artefacts_cli-0.12.0}/artefacts/api/models/submit_run_results_response.py +0 -0
- {artefacts_cli-0.10.2 → artefacts_cli-0.12.0}/artefacts/api/models/submit_run_results_response_upload_urls.py +0 -0
- {artefacts_cli-0.10.2 → artefacts_cli-0.12.0}/artefacts/api/models/submit_run_results_tests_item.py +0 -0
- {artefacts_cli-0.10.2 → artefacts_cli-0.12.0}/artefacts/api/models/submit_run_results_uploads.py +0 -0
- {artefacts_cli-0.10.2 → artefacts_cli-0.12.0}/artefacts/api/models/update_job_results.py +0 -0
- {artefacts_cli-0.10.2 → artefacts_cli-0.12.0}/artefacts/api/models/upload_source_response.py +0 -0
- {artefacts_cli-0.10.2 → artefacts_cli-0.12.0}/artefacts/api/models/upload_source_response_upload_urls.py +0 -0
- {artefacts_cli-0.10.2 → artefacts_cli-0.12.0}/artefacts/api/types.py +0 -0
- {artefacts_cli-0.10.2 → artefacts_cli-0.12.0}/artefacts/cli/app_containers.pyi +0 -0
- {artefacts_cli-0.10.2 → artefacts_cli-0.12.0}/artefacts/cli/containers/docker_utils.py +0 -0
- {artefacts_cli-0.10.2 → artefacts_cli-0.12.0}/artefacts/cli/containers/utils.py +0 -0
- {artefacts_cli-0.10.2 → artefacts_cli-0.12.0}/artefacts/cli/core/__init__.py +0 -0
- {artefacts_cli-0.10.2 → artefacts_cli-0.12.0}/artefacts/cli/errors.py +0 -0
- {artefacts_cli-0.10.2 → artefacts_cli-0.12.0}/artefacts/cli/i18n.py +0 -0
- {artefacts_cli-0.10.2 → artefacts_cli-0.12.0}/artefacts/cli/logger.py +0 -0
- {artefacts_cli-0.10.2/tests → artefacts_cli-0.12.0/artefacts/cli/runners}/__init__.py +0 -0
- {artefacts_cli-0.10.2/artefacts/cli → artefacts_cli-0.12.0/artefacts/cli/utils}/parameters.py +0 -0
- {artefacts_cli-0.10.2/tests/cli → artefacts_cli-0.12.0/artefacts/cli/utils/ros}/__init__.py +0 -0
- {artefacts_cli-0.10.2/artefacts/cli → artefacts_cli-0.12.0/artefacts/cli/utils/ros}/bagparser.py +0 -0
- {artefacts_cli-0.10.2 → artefacts_cli-0.12.0}/artefacts/copava/__init__.py +0 -0
- {artefacts_cli-0.10.2 → artefacts_cli-0.12.0}/artefacts.yaml +0 -0
- {artefacts_cli-0.10.2 → artefacts_cli-0.12.0}/artefacts_cli.egg-info/dependency_links.txt +0 -0
- {artefacts_cli-0.10.2 → artefacts_cli-0.12.0}/artefacts_cli.egg-info/entry_points.txt +0 -0
- {artefacts_cli-0.10.2 → artefacts_cli-0.12.0}/artefacts_cli.egg-info/top_level.txt +0 -0
- {artefacts_cli-0.10.2 → artefacts_cli-0.12.0}/bin/release +0 -0
- {artefacts_cli-0.10.2 → artefacts_cli-0.12.0}/infra-tests/test_run_remote.yaml +0 -0
- {artefacts_cli-0.10.2 → artefacts_cli-0.12.0}/infra-tests/turtlesim2/launch_turtle.py +0 -0
- {artefacts_cli-0.10.2 → artefacts_cli-0.12.0}/infra-tests/turtlesim2/sample_node.py +0 -0
- {artefacts_cli-0.10.2 → artefacts_cli-0.12.0}/pytest.ini +0 -0
- {artefacts_cli-0.10.2 → artefacts_cli-0.12.0}/scripts/whats_latest.rb +0 -0
- {artefacts_cli-0.10.2 → artefacts_cli-0.12.0}/setup.cfg +0 -0
- {artefacts_cli-0.10.2/tests/cli/containers → artefacts_cli-0.12.0/tests}/__init__.py +0 -0
- /artefacts_cli-0.10.2/tests/fixtures/bad_launch_test.py → /artefacts_cli-0.12.0/tests/cli/__init__.py +0 -0
- {artefacts_cli-0.10.2 → artefacts_cli-0.12.0}/tests/cli/containers/test_docker.py +0 -0
- {artefacts_cli-0.10.2 → artefacts_cli-0.12.0}/tests/cli/containers/test_utils.py +0 -0
- {artefacts_cli-0.10.2 → artefacts_cli-0.12.0}/tests/cli/core/test_code_environment.py +0 -0
- {artefacts_cli-0.10.2 → artefacts_cli-0.12.0}/tests/cli/test_app_containers.py +0 -0
- {artefacts_cli-0.10.2 → artefacts_cli-0.12.0}/tests/cli/test_config.py +0 -0
- {artefacts_cli-0.10.2 → artefacts_cli-0.12.0}/tests/cli/test_config_validation.py +0 -0
- {artefacts_cli-0.10.2 → artefacts_cli-0.12.0}/tests/cli/test_reporter.py +0 -0
- {artefacts_cli-0.10.2 → artefacts_cli-0.12.0}/tests/fixtures/artefacts-env-param.yaml +0 -0
- {artefacts_cli-0.10.2 → artefacts_cli-0.12.0}/tests/fixtures/artefacts.yaml.template +0 -0
- {artefacts_cli-0.10.2 → artefacts_cli-0.12.0}/tests/fixtures/artefacts_deprecated.yaml +0 -0
- {artefacts_cli-0.10.2 → artefacts_cli-0.12.0}/tests/fixtures/sample_pytest_file.py +0 -0
- {artefacts_cli-0.10.2 → artefacts_cli-0.12.0}/tests/fixtures/test_junit.xml +0 -0
- {artefacts_cli-0.10.2 → artefacts_cli-0.12.0}/tests/utils/docker_mock.py +0 -0
|
@@ -7,12 +7,47 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
-
|
|
10
|
+
### Added
|
|
11
|
+
|
|
12
|
+
- Introduction of a background sub-process tracker with safe (default, introduced in 0.10.0) and unsafe modes (`artefacts run --unsafe-teardown`). In unsafe mode, sub-processes that get out of the tree are watched and terminated on CLI exit. Extended feature off #129, as some Gazebo management libraries fail to terminate it propertly. (#129)
|
|
13
|
+
|
|
14
|
+
### Changed
|
|
15
|
+
|
|
16
|
+
- Rephrased error messages for clarity, when using an incorrect or invalid project name (#363)
|
|
11
17
|
|
|
12
18
|
### Fixed
|
|
13
19
|
|
|
20
|
+
- SIGINT requests (ctrl+c) are now propagated to Docker when running in containers, to ensure termination (#390)
|
|
21
|
+
- Fix API protocol violation when interrupting a job with multiple runs. The job was not marked properly cancelled (#412)
|
|
22
|
+
|
|
23
|
+
## [0.11.0] - 2025-12-17
|
|
24
|
+
|
|
25
|
+
### Added
|
|
26
|
+
|
|
27
|
+
- CLI now checks your project API key is valid when running `artefacts config add` (#374)
|
|
28
|
+
- CLI exit handler to ensure sub-processes are closed completely (sometimes Gazebo lingers after exit) (#129)
|
|
29
|
+
|
|
30
|
+
### Changed
|
|
31
|
+
|
|
32
|
+
- CLI now depends on the `docker` package, transparently even if you do not use containers. This allows container runs to work correctly with wrappers like `uv tool` and others (#416)
|
|
33
|
+
|
|
34
|
+
### Deprecated
|
|
35
|
+
|
|
36
|
+
- `output_path` in artefacts.yaml no longer used. If set, artefacts will ignore it, and default behaviour (Creating its own temp directory for logs / test results) will apply. This affects:
|
|
37
|
+
1. User created uploads (please use `output_dirs` instead)
|
|
38
|
+
2. When using `metrics:` in artefacts.yaml, value should be `path/to/metrics.json` (`output_path` is not required, nor used)
|
|
39
|
+
|
|
40
|
+
### Fixed
|
|
41
|
+
|
|
42
|
+
- Upgraded Artefacts Xray to 0.2.0 to include a fix that breaks the API protocol when using resource tracking (#413)
|
|
43
|
+
- Fixes issue where if a rosbag is recorded, and `metrics` is provided as json file, cli would attempt to iterate through filepath string looking for nonexisting topics in the rosbag (#425)
|
|
44
|
+
- Fixes issue where if non-numeric metric value is recorded, the cli would error out rather than skip the non-supported value type (#425)
|
|
14
45
|
- Sets minimum requirement of `attrs` to 21.3.0 (when import name `attrs` was introduced) #435
|
|
15
46
|
|
|
47
|
+
### Removed
|
|
48
|
+
|
|
49
|
+
- `log_post_process_metrics()` - Unused function (#405)
|
|
50
|
+
|
|
16
51
|
## [0.10.0] - 2025-11-14
|
|
17
52
|
|
|
18
53
|
### Added
|
|
@@ -22,6 +57,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
22
57
|
### Changed
|
|
23
58
|
|
|
24
59
|
- Internal code migration to using a new SDK to the Artefacts API, now following OpenAPI standards (#356)
|
|
60
|
+
- Deprecating Iron, Adding support for Jazzy
|
|
25
61
|
|
|
26
62
|
### Fixed
|
|
27
63
|
|
|
@@ -200,12 +236,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
200
236
|
|
|
201
237
|
- Beginning of semantic versioning.
|
|
202
238
|
- Local metrics errors do not block publication of results.
|
|
203
|
-
- Introduction of Black formatting.
|
|
239
|
+
- Introduction of Black formatting.
|
|
204
240
|
|
|
205
|
-
[unreleased]: https://github.com/art-e-fact/artefacts-client/compare/0.
|
|
206
|
-
[0.
|
|
241
|
+
[unreleased]: https://github.com/art-e-fact/artefacts-client/compare/0.11.0...HEAD
|
|
242
|
+
[0.11.0]: https://github.com/art-e-fact/artefacts-client/releases/tag/0.11.0
|
|
243
|
+
[0.10.1]: https://github.com/art-e-fact/artefacts-client/releases/tag/0.10.1
|
|
207
244
|
[0.9.9]: https://github.com/art-e-fact/artefacts-client/releases/tag/0.9.9
|
|
208
|
-
[0.9.7]: https://github.com/art-e-fact/artefacts-client/releases/tag/0.9.7
|
|
209
245
|
[0.8.0]: https://github.com/art-e-fact/artefacts-client/releases/tag/0.8.0
|
|
210
246
|
[0.7.0]: https://github.com/art-e-fact/artefacts-client/releases/tag/0.7.0
|
|
211
247
|
[0.5.8]: https://github.com/art-e-fact/artefacts-client/releases/tag/0.5.8
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: artefacts_cli
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.12.0
|
|
4
4
|
Author-email: FD <fabian@artefacts.com>, AGC <alejandro@artefacts.com>, TN <tomo@artefacts.com>, EP <eric@artefacts.com>
|
|
5
5
|
License-Expression: Apache-2.0
|
|
6
6
|
Project-URL: Homepage, https://github.com/art-e-fact/artefacts-client
|
|
@@ -11,9 +11,10 @@ Classifier: Operating System :: OS Independent
|
|
|
11
11
|
Requires-Python: >=3.10
|
|
12
12
|
Description-Content-Type: text/markdown
|
|
13
13
|
Requires-Dist: artefacts-c2d>=1.7.1
|
|
14
|
-
Requires-Dist: artefacts-copava>=0.1.
|
|
14
|
+
Requires-Dist: artefacts-copava>=0.1.15
|
|
15
15
|
Requires-Dist: artefacts-click
|
|
16
|
-
Requires-Dist: artefacts-xray>=0.
|
|
16
|
+
Requires-Dist: artefacts-xray>=0.2.0
|
|
17
|
+
Requires-Dist: docker==7.1.0
|
|
17
18
|
Requires-Dist: gitignore_parser>=0.1.11
|
|
18
19
|
Requires-Dist: junitparser>=2.5
|
|
19
20
|
Requires-Dist: mcap
|
|
@@ -31,7 +32,6 @@ Provides-Extra: dev
|
|
|
31
32
|
Requires-Dist: awscli; extra == "dev"
|
|
32
33
|
Requires-Dist: babel==2.17.0; extra == "dev"
|
|
33
34
|
Requires-Dist: build; extra == "dev"
|
|
34
|
-
Requires-Dist: docker; extra == "dev"
|
|
35
35
|
Requires-Dist: lark; extra == "dev"
|
|
36
36
|
Requires-Dist: mkdocs-click==0.8.0; extra == "dev"
|
|
37
37
|
Requires-Dist: mkdocs-material==8.5.6; extra == "dev"
|
|
@@ -58,6 +58,10 @@ CLI to the Artefacts platform.
|
|
|
58
58
|
[](https://docs.artefacts.com/)
|
|
59
59
|
[](https://github.com/astral-sh/ruff)
|
|
60
60
|
|
|
61
|
+
## Status
|
|
62
|
+
|
|
63
|
+
[](https://github.com/art-e-fact/artefacts-client/actions/workflows/check-local-runs.yaml)
|
|
64
|
+
|
|
61
65
|
## Requirements
|
|
62
66
|
|
|
63
67
|
* Currently working partially where Python can run.
|
|
@@ -5,6 +5,10 @@ CLI to the Artefacts platform.
|
|
|
5
5
|
[](https://docs.artefacts.com/)
|
|
6
6
|
[](https://github.com/astral-sh/ruff)
|
|
7
7
|
|
|
8
|
+
## Status
|
|
9
|
+
|
|
10
|
+
[](https://github.com/art-e-fact/artefacts-client/actions/workflows/check-local-runs.yaml)
|
|
11
|
+
|
|
8
12
|
## Requirements
|
|
9
13
|
|
|
10
14
|
* Currently working partially where Python can run.
|
|
@@ -4,22 +4,35 @@ from typing import Any, cast
|
|
|
4
4
|
import httpx
|
|
5
5
|
|
|
6
6
|
from ...client import AuthenticatedClient, Client
|
|
7
|
-
from ...types import Response
|
|
7
|
+
from ...types import Response, UNSET
|
|
8
8
|
from ... import errors
|
|
9
9
|
|
|
10
10
|
from ...models.error import Error
|
|
11
|
+
from ...types import Unset
|
|
11
12
|
|
|
12
13
|
|
|
13
14
|
def _get_kwargs(
|
|
14
15
|
organization_slug: str,
|
|
15
16
|
project_name: str,
|
|
17
|
+
*,
|
|
18
|
+
framework: str | Unset = UNSET,
|
|
19
|
+
simulator: str | Unset = UNSET,
|
|
16
20
|
) -> dict[str, Any]:
|
|
21
|
+
params: dict[str, Any] = {}
|
|
22
|
+
|
|
23
|
+
params["framework"] = framework
|
|
24
|
+
|
|
25
|
+
params["simulator"] = simulator
|
|
26
|
+
|
|
27
|
+
params = {k: v for k, v in params.items() if v is not UNSET and v is not None}
|
|
28
|
+
|
|
17
29
|
_kwargs: dict[str, Any] = {
|
|
18
30
|
"method": "get",
|
|
19
31
|
"url": "/{organization_slug}/{project_name}/artefacts.yaml".format(
|
|
20
32
|
organization_slug=organization_slug,
|
|
21
33
|
project_name=project_name,
|
|
22
34
|
),
|
|
35
|
+
"params": params,
|
|
23
36
|
}
|
|
24
37
|
|
|
25
38
|
return _kwargs
|
|
@@ -32,6 +45,10 @@ def _parse_response(
|
|
|
32
45
|
response_200 = cast(Any, None)
|
|
33
46
|
return response_200
|
|
34
47
|
|
|
48
|
+
if response.status_code == 400:
|
|
49
|
+
response_400 = cast(Any, None)
|
|
50
|
+
return response_400
|
|
51
|
+
|
|
35
52
|
if response.status_code == 401:
|
|
36
53
|
response_401 = Error.from_dict(response.json())
|
|
37
54
|
|
|
@@ -68,12 +85,16 @@ def sync_detailed(
|
|
|
68
85
|
project_name: str,
|
|
69
86
|
*,
|
|
70
87
|
client: AuthenticatedClient | Client,
|
|
88
|
+
framework: str | Unset = UNSET,
|
|
89
|
+
simulator: str | Unset = UNSET,
|
|
71
90
|
) -> Response[Any | Error]:
|
|
72
91
|
"""Generates a basic artefacts.yaml example for the given project
|
|
73
92
|
|
|
74
93
|
Args:
|
|
75
94
|
organization_slug (str):
|
|
76
95
|
project_name (str):
|
|
96
|
+
framework (str | Unset):
|
|
97
|
+
simulator (str | Unset):
|
|
77
98
|
|
|
78
99
|
Raises:
|
|
79
100
|
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
@@ -86,6 +107,8 @@ def sync_detailed(
|
|
|
86
107
|
kwargs = _get_kwargs(
|
|
87
108
|
organization_slug=organization_slug,
|
|
88
109
|
project_name=project_name,
|
|
110
|
+
framework=framework,
|
|
111
|
+
simulator=simulator,
|
|
89
112
|
)
|
|
90
113
|
|
|
91
114
|
response = client.get_httpx_client().request(
|
|
@@ -100,12 +123,16 @@ def sync(
|
|
|
100
123
|
project_name: str,
|
|
101
124
|
*,
|
|
102
125
|
client: AuthenticatedClient | Client,
|
|
126
|
+
framework: str | Unset = UNSET,
|
|
127
|
+
simulator: str | Unset = UNSET,
|
|
103
128
|
) -> Any | Error | None:
|
|
104
129
|
"""Generates a basic artefacts.yaml example for the given project
|
|
105
130
|
|
|
106
131
|
Args:
|
|
107
132
|
organization_slug (str):
|
|
108
133
|
project_name (str):
|
|
134
|
+
framework (str | Unset):
|
|
135
|
+
simulator (str | Unset):
|
|
109
136
|
|
|
110
137
|
Raises:
|
|
111
138
|
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
@@ -119,6 +146,8 @@ def sync(
|
|
|
119
146
|
organization_slug=organization_slug,
|
|
120
147
|
project_name=project_name,
|
|
121
148
|
client=client,
|
|
149
|
+
framework=framework,
|
|
150
|
+
simulator=simulator,
|
|
122
151
|
).parsed
|
|
123
152
|
|
|
124
153
|
|
|
@@ -127,12 +156,16 @@ async def asyncio_detailed(
|
|
|
127
156
|
project_name: str,
|
|
128
157
|
*,
|
|
129
158
|
client: AuthenticatedClient | Client,
|
|
159
|
+
framework: str | Unset = UNSET,
|
|
160
|
+
simulator: str | Unset = UNSET,
|
|
130
161
|
) -> Response[Any | Error]:
|
|
131
162
|
"""Generates a basic artefacts.yaml example for the given project
|
|
132
163
|
|
|
133
164
|
Args:
|
|
134
165
|
organization_slug (str):
|
|
135
166
|
project_name (str):
|
|
167
|
+
framework (str | Unset):
|
|
168
|
+
simulator (str | Unset):
|
|
136
169
|
|
|
137
170
|
Raises:
|
|
138
171
|
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
@@ -145,6 +178,8 @@ async def asyncio_detailed(
|
|
|
145
178
|
kwargs = _get_kwargs(
|
|
146
179
|
organization_slug=organization_slug,
|
|
147
180
|
project_name=project_name,
|
|
181
|
+
framework=framework,
|
|
182
|
+
simulator=simulator,
|
|
148
183
|
)
|
|
149
184
|
|
|
150
185
|
response = await client.get_async_httpx_client().request(**kwargs)
|
|
@@ -157,12 +192,16 @@ async def asyncio(
|
|
|
157
192
|
project_name: str,
|
|
158
193
|
*,
|
|
159
194
|
client: AuthenticatedClient | Client,
|
|
195
|
+
framework: str | Unset = UNSET,
|
|
196
|
+
simulator: str | Unset = UNSET,
|
|
160
197
|
) -> Any | Error | None:
|
|
161
198
|
"""Generates a basic artefacts.yaml example for the given project
|
|
162
199
|
|
|
163
200
|
Args:
|
|
164
201
|
organization_slug (str):
|
|
165
202
|
project_name (str):
|
|
203
|
+
framework (str | Unset):
|
|
204
|
+
simulator (str | Unset):
|
|
166
205
|
|
|
167
206
|
Raises:
|
|
168
207
|
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
@@ -177,5 +216,7 @@ async def asyncio(
|
|
|
177
216
|
organization_slug=organization_slug,
|
|
178
217
|
project_name=project_name,
|
|
179
218
|
client=client,
|
|
219
|
+
framework=framework,
|
|
220
|
+
simulator=simulator,
|
|
180
221
|
)
|
|
181
222
|
).parsed
|
|
@@ -33,6 +33,7 @@ class Job:
|
|
|
33
33
|
commit (None | str | Unset):
|
|
34
34
|
commit_ref (None | str | Unset):
|
|
35
35
|
ref (None | str | Unset):
|
|
36
|
+
notes (None | str | Unset):
|
|
36
37
|
creator (str | Unset):
|
|
37
38
|
success (bool | None | Unset):
|
|
38
39
|
"""
|
|
@@ -53,6 +54,7 @@ class Job:
|
|
|
53
54
|
commit: None | str | Unset = UNSET
|
|
54
55
|
commit_ref: None | str | Unset = UNSET
|
|
55
56
|
ref: None | str | Unset = UNSET
|
|
57
|
+
notes: None | str | Unset = UNSET
|
|
56
58
|
creator: str | Unset = UNSET
|
|
57
59
|
success: bool | None | Unset = UNSET
|
|
58
60
|
|
|
@@ -125,6 +127,12 @@ class Job:
|
|
|
125
127
|
else:
|
|
126
128
|
ref = self.ref
|
|
127
129
|
|
|
130
|
+
notes: None | str | Unset
|
|
131
|
+
if isinstance(self.notes, Unset):
|
|
132
|
+
notes = UNSET
|
|
133
|
+
else:
|
|
134
|
+
notes = self.notes
|
|
135
|
+
|
|
128
136
|
creator = self.creator
|
|
129
137
|
|
|
130
138
|
success: bool | None | Unset
|
|
@@ -168,6 +176,8 @@ class Job:
|
|
|
168
176
|
field_dict["commit_ref"] = commit_ref
|
|
169
177
|
if ref is not UNSET:
|
|
170
178
|
field_dict["ref"] = ref
|
|
179
|
+
if notes is not UNSET:
|
|
180
|
+
field_dict["notes"] = notes
|
|
171
181
|
if creator is not UNSET:
|
|
172
182
|
field_dict["creator"] = creator
|
|
173
183
|
if success is not UNSET:
|
|
@@ -273,6 +283,15 @@ class Job:
|
|
|
273
283
|
|
|
274
284
|
ref = _parse_ref(d.pop("ref", UNSET))
|
|
275
285
|
|
|
286
|
+
def _parse_notes(data: object) -> None | str | Unset:
|
|
287
|
+
if data is None:
|
|
288
|
+
return data
|
|
289
|
+
if isinstance(data, Unset):
|
|
290
|
+
return data
|
|
291
|
+
return cast(None | str | Unset, data)
|
|
292
|
+
|
|
293
|
+
notes = _parse_notes(d.pop("notes", UNSET))
|
|
294
|
+
|
|
276
295
|
creator = d.pop("creator", UNSET)
|
|
277
296
|
|
|
278
297
|
def _parse_success(data: object) -> bool | None | Unset:
|
|
@@ -301,6 +320,7 @@ class Job:
|
|
|
301
320
|
commit=commit,
|
|
302
321
|
commit_ref=commit_ref,
|
|
303
322
|
ref=ref,
|
|
323
|
+
notes=notes,
|
|
304
324
|
creator=creator,
|
|
305
325
|
success=success,
|
|
306
326
|
)
|
|
@@ -5,6 +5,8 @@ from typing import Any, TypeVar
|
|
|
5
5
|
|
|
6
6
|
from attrs import define as _attrs_define
|
|
7
7
|
|
|
8
|
+
from ..types import UNSET, Unset
|
|
9
|
+
|
|
8
10
|
|
|
9
11
|
T = TypeVar("T", bound="Project")
|
|
10
12
|
|
|
@@ -15,16 +17,24 @@ class Project:
|
|
|
15
17
|
Attributes:
|
|
16
18
|
organization (str):
|
|
17
19
|
name (str):
|
|
20
|
+
framework (str | Unset):
|
|
21
|
+
simulator (str | Unset):
|
|
18
22
|
"""
|
|
19
23
|
|
|
20
24
|
organization: str
|
|
21
25
|
name: str
|
|
26
|
+
framework: str | Unset = UNSET
|
|
27
|
+
simulator: str | Unset = UNSET
|
|
22
28
|
|
|
23
29
|
def to_dict(self) -> dict[str, Any]:
|
|
24
30
|
organization = self.organization
|
|
25
31
|
|
|
26
32
|
name = self.name
|
|
27
33
|
|
|
34
|
+
framework = self.framework
|
|
35
|
+
|
|
36
|
+
simulator = self.simulator
|
|
37
|
+
|
|
28
38
|
field_dict: dict[str, Any] = {}
|
|
29
39
|
|
|
30
40
|
field_dict.update(
|
|
@@ -33,6 +43,10 @@ class Project:
|
|
|
33
43
|
"name": name,
|
|
34
44
|
}
|
|
35
45
|
)
|
|
46
|
+
if framework is not UNSET:
|
|
47
|
+
field_dict["framework"] = framework
|
|
48
|
+
if simulator is not UNSET:
|
|
49
|
+
field_dict["simulator"] = simulator
|
|
36
50
|
|
|
37
51
|
return field_dict
|
|
38
52
|
|
|
@@ -43,9 +57,15 @@ class Project:
|
|
|
43
57
|
|
|
44
58
|
name = d.pop("name")
|
|
45
59
|
|
|
60
|
+
framework = d.pop("framework", UNSET)
|
|
61
|
+
|
|
62
|
+
simulator = d.pop("simulator", UNSET)
|
|
63
|
+
|
|
46
64
|
project = cls(
|
|
47
65
|
organization=organization,
|
|
48
66
|
name=name,
|
|
67
|
+
framework=framework,
|
|
68
|
+
simulator=simulator,
|
|
49
69
|
)
|
|
50
70
|
|
|
51
71
|
return project
|