Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions ayon_api/_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -1943,6 +1943,7 @@ def create_dependency_package(
checksum: str,
checksum_algorithm: str,
file_size: int,
python_version: str | None = None,
sources: Optional[list[dict[str, Any]]] = None,
platform_name: Optional[str] = None,
) -> None:
Expand All @@ -1968,6 +1969,8 @@ def create_dependency_package(
checksum (str): Checksum of archive file where dependencies are.
checksum_algorithm (str): Algorithm used to calculate checksum.
file_size (Optional[int]): Size of file.
python_version (str | None): Python version for which
is dependency package created.
sources (Optional[list[dict[str, Any]]]): Information about
sources from where it is possible to get file.
platform_name (Optional[str]): Name of platform for which is
Expand All @@ -1984,6 +1987,7 @@ def create_dependency_package(
checksum=checksum,
checksum_algorithm=checksum_algorithm,
file_size=file_size,
python_version=python_version,
sources=sources,
platform_name=platform_name,
)
Expand Down
6 changes: 6 additions & 0 deletions ayon_api/_api_helpers/dependency_packages.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ def create_dependency_package(
checksum: str,
checksum_algorithm: str,
file_size: int,
python_version: str | None = None,
sources: Optional[list[dict[str, Any]]] = None,
platform_name: Optional[str] = None,
) -> None:
Expand All @@ -82,6 +83,8 @@ def create_dependency_package(
checksum (str): Checksum of archive file where dependencies are.
checksum_algorithm (str): Algorithm used to calculate checksum.
file_size (Optional[int]): Size of file.
python_version (str | None): Python version for which
is dependency package created.
sources (Optional[list[dict[str, Any]]]): Information about
sources from where it is possible to get file.
platform_name (Optional[str]): Name of platform for which is
Expand All @@ -99,6 +102,9 @@ def create_dependency_package(
"size": file_size,
"platform": platform_name or platform.system().lower(),
}
if python_version:
post_body["pythonVersion"] = python_version

if sources:
post_body["sources"] = sources

Expand Down
Loading