comparison tests/test-check-sdist.t @ 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 e823d9117a68
comparison
equal deleted inserted replaced
6845:4836e75f0a03 6846:6d61440357af
13 13
14 $ hg archive "$TESTTMP"/hg-evolve 14 $ hg archive "$TESTTMP"/hg-evolve
15 $ cd "$TESTTMP"/hg-evolve 15 $ cd "$TESTTMP"/hg-evolve
16 16
17 #endif 17 #endif
18
19 $ "$PYTHON" setup.py check --metadata --restructuredtext
18 20
19 $ "$PYTHON" setup.py sdist --dist-dir "$TESTTMP"/dist > /dev/null 21 $ "$PYTHON" setup.py sdist --dist-dir "$TESTTMP"/dist > /dev/null
20 */dist.py:*: UserWarning: Unknown distribution option: 'python_requires' (glob) (?) 22 */dist.py:*: UserWarning: Unknown distribution option: 'python_requires' (glob) (?)
21 warnings.warn(msg) (?) 23 warnings.warn(msg) (?)
22 warning: no previously-included files found matching 'docs/tutorial/.netlify' 24 warning: no previously-included files found matching 'docs/tutorial/.netlify'