File tree Expand file tree Collapse file tree 2 files changed +2
-26
lines changed Expand file tree Collapse file tree 2 files changed +2
-26
lines changed Original file line number Diff line number Diff line change @@ -230,26 +230,7 @@ def from_poetry_checkout(path: Path) -> bytes:
230
230
optional = False
231
231
232
232
if not version :
233
- # e.g. git, path or url dependencies
234
- if "path" in v :
235
- buf .append (f"Requires-Dist: { v ['path' ]} \n " )
236
-
237
- elif "url" in v :
238
- buf .append (f"Requires-Dist: { v ['url' ]} \n " )
239
-
240
- elif "git" in v :
241
- git_link = f"git+{ v ['git' ]} "
242
-
243
- # from both poetry and pypa docs, seems like only one of the following should be specified
244
- revision = v .get ("rev" ) or v .get ("tag" ) or v .get ("branch" )
245
- if revision :
246
- git_link += f"@{ revision } "
247
-
248
- if "subdirectory" in v :
249
- git_link += f"#subdirectory={ v ['subdirectory' ]} "
250
-
251
- buf .append (f"Requires-Dist: { k } @ { git_link } \n " )
252
-
233
+ # e.g. git, path or url dependencies, skip for now
253
234
continue
254
235
255
236
# https://python-poetry.org/docs/dependency-specification/#version-constraints
Original file line number Diff line number Diff line change @@ -111,9 +111,7 @@ def test_poetry_full(self) -> None:
111
111
c3 = "~1"
112
112
d = {version="2", python="<3.11"}
113
113
e = {version="2", markers="sys_platform == 'darwin'"}
114
- skipped = {git = "...", tag = "12345"}
115
- my-package = { url = "https://example.com/my-package-0.1.0.tar.gz" }
116
- my-other-package = { path = "../my-package/dist/my-other-package-0.1.0.tar.gz" }
114
+ skipped = {git = "..."}
117
115
complex = {extras=["bar", "baz"], version="2"}
118
116
opt = { version = "^2.9", optional = true}
119
117
unused-extra = { version = "2", optional = true }
@@ -135,9 +133,6 @@ def test_poetry_full(self) -> None:
135
133
"c3>=1,<2" ,
136
134
"d==2 ; python_version < '3.11'" ,
137
135
"e==2 ; sys_platform == 'darwin'" ,
138
- "skipped @ git+...@12345" ,
139
- "https://example.com/my-package-0.1.0.tar.gz" ,
140
- "../my-package/dist/my-other-package-0.1.0.tar.gz" ,
141
136
"complex[bar,baz]==2" ,
142
137
'opt>=2.9,<3.0 ; extra == "foo"' ,
143
138
],
You can’t perform that action at this time.
0 commit comments