File tree Expand file tree Collapse file tree 6 files changed +10
-10
lines changed
Expand file tree Collapse file tree 6 files changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -57,7 +57,7 @@ def get_metadata(self) -> Distribution:
5757 setattr (d , k2 , v )
5858
5959 for k , v in metadata .get ("urls" , {}).items ():
60- d .project_urls [ k ] = v
60+ d .project_urls . append ( f" { k } = { v } " )
6161
6262 for k , v in flit .get ("scripts" , {}).items ():
6363 d .entry_points [k ] = v
Original file line number Diff line number Diff line change @@ -42,7 +42,7 @@ def get_pep621_metadata(self) -> Distribution:
4242 elif k == "optional-dependencies" :
4343 pass
4444 elif k == "urls" :
45- d .project_urls .extend (v )
45+ d .project_urls .extend ([ f" { x } = { y } " for x , y in v . items ()] )
4646
4747 k2 = k .replace ("-" , "_" )
4848 if k2 in d :
Original file line number Diff line number Diff line change @@ -65,7 +65,7 @@ def test_normal(self) -> None:
6565 "packages" : ["foo" , "foo.tests" ],
6666 "packages_dict" : {"foo" : "foo" , "foo.tests" : "foo/tests" },
6767 "requires_dist" : ["abc" , "def" ],
68- "project_urls" : { "Foo" : " https://"} ,
68+ "project_urls" : [ "Foo= https://" ] ,
6969 },
7070 md .asdict (),
7171 )
@@ -106,7 +106,7 @@ def test_pep621(self) -> None:
106106 "packages" : ["foo" , "foo.tests" ],
107107 "packages_dict" : {"foo" : "foo" , "foo.tests" : "foo/tests" },
108108 "requires_dist" : ["abc" , "def" ],
109- "project_urls" : { "Foo" : " https://"} ,
109+ "project_urls" : [ "Foo= https://" ] ,
110110 },
111111 md .asdict (),
112112 )
Original file line number Diff line number Diff line change @@ -51,7 +51,7 @@ def test_normal(self) -> None:
5151 "packages" : ["foo" , "foo.tests" ],
5252 "packages_dict" : {"foo" : "foo" , "foo.tests" : "foo/tests" },
5353 "requires_dist" : ["abc" , "def" ],
54- "project_urls" : { "Foo" : " https://"} ,
54+ "project_urls" : [ "Foo= https://" ] ,
5555 },
5656 md .asdict (),
5757 )
Original file line number Diff line number Diff line change @@ -41,10 +41,10 @@ def test_basic(self) -> None:
4141 self .assertEqual ("1.5.2" , md .version )
4242 self .assertEqual ("BSD-3-Clause" , md .license )
4343 self .assertEqual (
44- {
45- "homepage" : " http://example.com" ,
46- "Bug Tracker" : " https://github.com/python-poetry/poetry/issues" ,
47- } ,
44+ [
45+ "homepage= http://example.com" ,
46+ "Bug Tracker= https://github.com/python-poetry/poetry/issues" ,
47+ ] ,
4848 md .project_urls ,
4949 )
5050 self .assertEqual (["Not a real classifier" ], md .classifiers )
Original file line number Diff line number Diff line change @@ -34,11 +34,11 @@ dev =
3434 twine ==5.1.1
3535 ufmt ==2.8.0
3636 usort ==1.0.8.post1
37- volatile ==2.1.0
3837 wheel ==0.45.1
3938 honesty ==0.3.0b1
4039test =
4140 coverage >= 6
41+ volatile ==2.1.0
4242
4343[check]
4444metadata = true
You can’t perform that action at this time.
0 commit comments