diff options
| author | Anderson Bravalheri <andersonbravalheri@gmail.com> | 2022-03-27 11:12:48 +0100 |
|---|---|---|
| committer | Anderson Bravalheri <andersonbravalheri@gmail.com> | 2022-03-27 11:14:23 +0100 |
| commit | 93bae8213b21d23a6de2c40e5bb50ad723ad70a8 (patch) | |
| tree | 4ae1f2726fb94edfd02b86cf2a08ad605bcf183f /setuptools/config/pyprojecttoml.py | |
| parent | cd9e7ac6e2e9d62c71f823a1df6de8fb6d734141 (diff) | |
| download | python-setuptools-git-93bae8213b21d23a6de2c40e5bb50ad723ad70a8.tar.gz | |
Improve error/warning messages
Diffstat (limited to 'setuptools/config/pyprojecttoml.py')
| -rw-r--r-- | setuptools/config/pyprojecttoml.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/setuptools/config/pyprojecttoml.py b/setuptools/config/pyprojecttoml.py index d4e1460c..a712a258 100644 --- a/setuptools/config/pyprojecttoml.py +++ b/setuptools/config/pyprojecttoml.py @@ -285,9 +285,9 @@ class _ConfigExpander: previous = _PREVIOUSLY_DEFINED[field](dist) if not previous and not self.ignore_option_errors: msg = ( - f"No configuration found for dynamic {field!r}. " - "Some fields need to be specified via `tool.setuptools.dynamic` " - "others must be specified via the equivalent attribute in `setup.py`." + f"No configuration found for dynamic {field!r}.\n" + "Some dynamic fields need to be specified via `tool.setuptools.dynamic`" + "\nothers must be specified via the equivalent attribute in `setup.py`." ) raise OptionError(msg) @@ -400,7 +400,7 @@ class _ExperimentalProjectMetadata(UserWarning): class _InvalidFile(UserWarning): - """Inform users that the given `pyproject.toml` is experimental. + """Inform users that the given `pyproject.toml` is experimental: !!\n\n ############################ # Invalid `pyproject.toml` # |
