From d6601bada764bdaa5c4e4e4e83f0cb3c34adc013 Mon Sep 17 00:00:00 2001 From: Anderson Bravalheri Date: Thu, 1 Aug 2024 11:12:54 +0100 Subject: [PATCH] Use stable version of validate-pyproject --- .../config/_validate_pyproject/fastjsonschema_validations.py | 2 +- setuptools/config/_validate_pyproject/formats.py | 2 +- tox.ini | 3 +-- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/setuptools/config/_validate_pyproject/fastjsonschema_validations.py b/setuptools/config/_validate_pyproject/fastjsonschema_validations.py index 1c58a55ea8..1f6c971e0b 100644 --- a/setuptools/config/_validate_pyproject/fastjsonschema_validations.py +++ b/setuptools/config/_validate_pyproject/fastjsonschema_validations.py @@ -10,7 +10,7 @@ # *** PLEASE DO NOT MODIFY DIRECTLY: Automatically generated code *** -VERSION = "2.19.1" +VERSION = "2.20.0" from decimal import Decimal import re from .fastjsonschema_exceptions import JsonSchemaValueException diff --git a/setuptools/config/_validate_pyproject/formats.py b/setuptools/config/_validate_pyproject/formats.py index aacf4092b0..5a0599cbb5 100644 --- a/setuptools/config/_validate_pyproject/formats.py +++ b/setuptools/config/_validate_pyproject/formats.py @@ -91,9 +91,9 @@ def pep508(value: str) -> bool: """ try: _req.Requirement(value) + return True except _req.InvalidRequirement: return False - return True except ImportError: # pragma: no cover _logger.warning( diff --git a/tox.ini b/tox.ini index 4b63c8b967..bc0540b0d4 100644 --- a/tox.ini +++ b/tox.ini @@ -84,8 +84,7 @@ commands = [testenv:generate-validation-code] skip_install = True deps = - # validate-pyproject[all]==0.18 - validate-pyproject[all] @ https://github.com/abravalheri/validate-pyproject/archive/refs/heads/allow-overwrite.zip + validate-pyproject[all]==0.18 commands = python -m tools.generate_validation_code