changeset 6846:6d61440357af

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 4836e75f0a03
children f0a052aa924d
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:46:03 2024 +0400
+++ b/tests/test-check-sdist.t	Wed Sep 11 17:29:04 2024 +0400
@@ -16,6 +16,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) (?)