From 0ee8853249ee0fc3c8248e54637f52f69f27795d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bern=C3=A1t=20G=C3=A1bor?= Date: Sat, 10 Sep 2022 08:37:49 +0100 Subject: Use PEP-621 to load project dependencies (#2499) --- src/tox/provision.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/tox/provision.py') diff --git a/src/tox/provision.py b/src/tox/provision.py index 9b43ce2b..95273fe4 100644 --- a/src/tox/provision.py +++ b/src/tox/provision.py @@ -58,11 +58,12 @@ def tox_add_option(parser: ArgumentParser) -> None: def provision(state: State) -> int | bool: + # remove the dev and marker to allow local development of the package state.conf.core.add_config( keys=["min_version", "minversion"], of_type=Version, # do not include local version specifier (because it's not allowed in version spec per PEP-440) - default=Version(current_version.split("+")[0]), + default=Version(current_version), desc="Define the minimal tox version required to run", ) state.conf.core.add_config( -- cgit v1.2.1