@@ -27,6 +27,9 @@ foo==0.0.1 \
2727""" ,
2828 "requirements_direct" : """\
2929 foo[extra] @ https://some-url/package.whl
30+ """ ,
31+ "requirements_direct_sdist" : """
32+ foo @ https://github.com/org/foo/downloads/foo-1.1.tar.gz
3033""" ,
3134 "requirements_extra_args" : """\
3235 --index-url=example.org
@@ -131,22 +134,33 @@ def _test_direct_urls_integration(env):
131134 ctx = _mock_ctx (),
132135 requirements_by_platform = {
133136 "requirements_direct" : ["linux_x86_64" ],
137+ "requirements_direct_sdist" : ["osx_x86_64" ],
134138 },
135139 )
136140 env .expect .that_collection (got ).contains_exactly ([
137141 struct (
138142 name = "foo" ,
139143 is_exposed = True ,
140- is_multiple_versions = False ,
144+ is_multiple_versions = True ,
141145 srcs = [
142146 struct (
143147 distribution = "foo" ,
144148 extra_pip_args = [],
149+ filename = "foo-1.1.tar.gz" ,
150+ requirement_line = "foo @ https://github.com/org/foo/downloads/foo-1.1.tar.gz" ,
151+ sha256 = "" ,
152+ target_platforms = ["osx_x86_64" ],
153+ url = "https://github.com/org/foo/downloads/foo-1.1.tar.gz" ,
154+ yanked = False ,
155+ ),
156+ struct (
157+ distribution = "foo" ,
158+ extra_pip_args = [],
159+ filename = "package.whl" ,
145160 requirement_line = "foo[extra]" ,
161+ sha256 = "" ,
146162 target_platforms = ["linux_x86_64" ],
147163 url = "https://some-url/package.whl" ,
148- filename = "package.whl" ,
149- sha256 = "" ,
150164 yanked = False ,
151165 ),
152166 ],
0 commit comments