File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1943,6 +1943,7 @@ def create_dependency_package(
19431943 checksum : str ,
19441944 checksum_algorithm : str ,
19451945 file_size : int ,
1946+ python_version : str | None = None ,
19461947 sources : Optional [list [dict [str , Any ]]] = None ,
19471948 platform_name : Optional [str ] = None ,
19481949) -> None :
@@ -1968,6 +1969,8 @@ def create_dependency_package(
19681969 checksum (str): Checksum of archive file where dependencies are.
19691970 checksum_algorithm (str): Algorithm used to calculate checksum.
19701971 file_size (Optional[int]): Size of file.
1972+ python_version (str | None): Python version for which
1973+ is dependency package created.
19711974 sources (Optional[list[dict[str, Any]]]): Information about
19721975 sources from where it is possible to get file.
19731976 platform_name (Optional[str]): Name of platform for which is
@@ -1984,6 +1987,7 @@ def create_dependency_package(
19841987 checksum = checksum ,
19851988 checksum_algorithm = checksum_algorithm ,
19861989 file_size = file_size ,
1990+ python_version = python_version ,
19871991 sources = sources ,
19881992 platform_name = platform_name ,
19891993 )
Original file line number Diff line number Diff line change @@ -57,6 +57,7 @@ def create_dependency_package(
5757 checksum : str ,
5858 checksum_algorithm : str ,
5959 file_size : int ,
60+ python_version : str | None = None ,
6061 sources : Optional [list [dict [str , Any ]]] = None ,
6162 platform_name : Optional [str ] = None ,
6263 ) -> None :
@@ -82,6 +83,8 @@ def create_dependency_package(
8283 checksum (str): Checksum of archive file where dependencies are.
8384 checksum_algorithm (str): Algorithm used to calculate checksum.
8485 file_size (Optional[int]): Size of file.
86+ python_version (str | None): Python version for which
87+ is dependency package created.
8588 sources (Optional[list[dict[str, Any]]]): Information about
8689 sources from where it is possible to get file.
8790 platform_name (Optional[str]): Name of platform for which is
@@ -99,6 +102,9 @@ def create_dependency_package(
99102 "size" : file_size ,
100103 "platform" : platform_name or platform .system ().lower (),
101104 }
105+ if python_version :
106+ post_body ["pythonVersion" ] = python_version
107+
102108 if sources :
103109 post_body ["sources" ] = sources
104110
You can’t perform that action at this time.
0 commit comments