File tree Expand file tree Collapse file tree 2 files changed +24
-0
lines changed Expand file tree Collapse file tree 2 files changed +24
-0
lines changed Original file line number Diff line number Diff line change 2929 "urls" ,
3030 "authors" ,
3131 "maintainers" ,
32+ "scripts" ,
33+ "gui-scripts" ,
34+ "entry-points" ,
3235 ]
3336)
3437
Original file line number Diff line number Diff line change @@ -48,6 +48,27 @@ def test_template_needs() -> None:
4848 assert pyproject ["requires-python" ] == ">=0.1.0"
4949
5050
51+ def test_template_entry_points () -> None :
52+ pyproject = dynamic_metadata .loader .process_dynamic_metadata (
53+ {
54+ "name" : "test" ,
55+ "dynamic" : ["version" , "entry-points" ],
56+ },
57+ {
58+ "version" : {
59+ "provider" : "dynamic_metadata.plugins.template" ,
60+ "result" : "1.2.3" ,
61+ },
62+ "entry-points" : {
63+ "provider" : "dynamic_metadata.plugins.template" ,
64+ "result" : {"my_point" : "my_app:script_{project[version]}" },
65+ },
66+ },
67+ )
68+
69+ assert pyproject ["entry-points" ] == {"my_point" : "my_app:script_1.2.3" }
70+
71+
5172def test_regex () -> None :
5273 pyproject = dynamic_metadata .loader .process_dynamic_metadata (
5374 {
You can’t perform that action at this time.
0 commit comments