changeset 6860:416adeb7d418 stable

tests: check metadata and long description using `setup.py check` This probably isn't very useful to us, since at the moment the metadata check cares only about the presence of "name" and "version", and the reST check makes sure our long_description renders properly (we build the docs, so we would probably see any render errors, just in a different place), but this is a simple command, so let's add it.
author Anton Shestakov <av6@dwimlabs.net>
date Wed, 11 Sep 2024 17:29:04 +0400
parents e57c9da94b25
children a868f00e8915
files tests/test-check-sdist.t
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/tests/test-check-sdist.t	Mon Sep 09 18:32:53 2024 +0400
+++ b/tests/test-check-sdist.t	Wed Sep 11 17:29:04 2024 +0400
@@ -17,6 +17,8 @@
 
 #endif
 
+  $ "$PYTHON" setup.py check --metadata --restructuredtext
+
   $ "$PYTHON" setup.py sdist --dist-dir "$TESTTMP"/dist > /dev/null
   */dist.py:*: UserWarning: Unknown distribution option: 'python_requires' (glob) (?)
     warnings.warn(msg) (?)