@@ -45,6 +45,7 @@ class PackageArchive:
45
45
url : Optional [str ]
46
46
# (not supported) path: Optional[str]
47
47
# (not supported) size: Optional[int]
48
+ # (not supported) upload_time: Optional[datetime]
48
49
hashes : Dict [str , str ]
49
50
subdirectory : Optional [str ]
50
51
@@ -76,7 +77,6 @@ class Package:
76
77
# (not supported) marker: Optional[str]
77
78
# (not supported) requires_python: Optional[str]
78
79
# (not supported) dependencies
79
- direct : Optional [bool ] = None
80
80
vcs : Optional [PackageVcs ] = None
81
81
directory : Optional [PackageDirectory ] = None
82
82
archive : Optional [PackageArchive ] = None
@@ -92,8 +92,7 @@ def from_install_requirement(cls, ireq: InstallRequirement, base_dir: Path) -> S
92
92
download_info = ireq .download_info
93
93
assert download_info
94
94
package = cls (name = dist .canonical_name )
95
- package .direct = ireq .is_direct if ireq .is_direct else None
96
- if package .direct :
95
+ if ireq .is_direct :
97
96
if isinstance (download_info .info , VcsInfo ):
98
97
package .vcs = PackageVcs (
99
98
type = download_info .info .vcs ,
@@ -158,6 +157,8 @@ class Pylock:
158
157
lock_version : str = "1.0"
159
158
# (not supported) environments: Optional[List[str]]
160
159
# (not supported) requires_python: Optional[str]
160
+ # (not supported) extras: List[str] = []
161
+ # (not supported) dependency_groups: List[str] = []
161
162
created_by : str = "pip"
162
163
packages : List [Package ] = dataclasses .field (default_factory = list )
163
164
# (not supported) tool: Optional[Dict[str, Any]]
0 commit comments