Skip to content

Commit

Permalink
tests: Specify version for test PEP621 metadata
Browse files Browse the repository at this point in the history
According to today's specification
https://packaging.python.org/en/latest/specifications/declaring-project-metadata/#specification

> The only keys required to be statically defined are:
  -  name
  The keys which are required but may be specified either
  statically or listed as dynamic are:
  - version

Fixes: pypa#866
Signed-off-by: Stanislav Levin <slev@altlinux.org>
  • Loading branch information
stanislavlevin committed Jun 22, 2023
1 parent 7c595a3 commit acb8a72
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion testing/test_integration.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,8 @@ def test_pyproject_support(tmp_path: Path, monkeypatch: pytest.MonkeyPatch) -> N
"[tool.setuptools_scm]\ndist_name='setuptools_scm_example'"
),
"pyproject.project": (
"[project]\nname='setuptools_scm_example'\n[tool.setuptools_scm]"
"[project]\nname='setuptools_scm_example'\n"
"dynamic=['version']\n[tool.setuptools_scm]"
),
}

Expand Down

0 comments on commit acb8a72

Please sign in to comment.