Skip to content

Commit 93d8b0d

Browse files
committed
Disable automatic download of trove classifiers by default
This helps to improve reproducibility. See #abravalheri/validate-pyproject#31.
1 parent 7a66ab2 commit 93d8b0d

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

setuptools/config/pyprojecttoml.py

+5
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,11 @@ def load_file(filepath: _Path) -> dict:
2929
def validate(config: dict, filepath: _Path) -> bool:
3030
from . import _validate_pyproject as validator
3131

32+
trove_classifier = validator.FORMAT_FUNCTIONS.get("trove-classifier")
33+
if hasattr(trove_classifier, "_disable_download"):
34+
# Improve reproducibility by default. See issue 31 for validate-pyproject.
35+
trove_classifier._disable_download() # type: ignore
36+
3237
try:
3338
return validator.validate(config)
3439
except validator.ValidationError as ex:

0 commit comments

Comments
 (0)