Skip to content

Commit 47bf9a3

Browse files
test_pyproject_support: Make correct PEP621 project definition
According to https://packaging.python.org/en/latest/specifications/declaring-project-metadata/: > The only fields required to be statically defined are: > - name > > The fields which are required but may be specified either statically or listed as dynamic are: > - version Fixes: #700 Signed-off-by: Stanislav Levin <[email protected]>
1 parent 8f99b86 commit 47bf9a3

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

testing/test_integration.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ def wd(wd):
2121

2222

2323
def test_pyproject_support(tmpdir, monkeypatch):
24-
pytest.importorskip("toml")
24+
pytest.importorskip("tomli")
2525
monkeypatch.delenv("SETUPTOOLS_SCM_DEBUG")
2626
pkg = tmpdir.ensure("package", dir=42)
2727
pkg.join("pyproject.toml").write_text(
@@ -30,8 +30,10 @@ def test_pyproject_support(tmpdir, monkeypatch):
3030
[tool.setuptools_scm]
3131
fallback_version = "12.34"
3232
[project]
33+
name = "foo"
3334
description = "Factory ⸻ A code generator 🏭"
3435
authors = [{name = "Łukasz Langa"}]
36+
dynamic = ["version"]
3537
"""
3638
),
3739
encoding="utf-8",

0 commit comments

Comments
 (0)