Mercurial > evolve
comparison tests/hghaveaddon.py @ 6849:9638dd0fb4ea
tests: add `twine check` to test-check-sdist.t
twine can check dist files for various issues (small, I would imagine, since we
managed to build the dist files in the first place). Let's make use of this
functionality.
Not creating a separate test file for twine because we need to build the dist
files first before we can check them, and it's already being done in
test-check-sdist.t.
author | Anton Shestakov <av6@dwimlabs.net> |
---|---|
date | Mon, 09 Sep 2024 16:51:00 +0400 |
parents | e41b99cec0c2 |
children |
comparison
equal
deleted
inserted
replaced
6848:e823d9117a68 | 6849:9638dd0fb4ea |
---|---|
27 @hghave.check("check-manifest", "check-manifest MANIFEST.in checking tool") | 27 @hghave.check("check-manifest", "check-manifest MANIFEST.in checking tool") |
28 def has_check_manifest(): | 28 def has_check_manifest(): |
29 return hghave.matchoutput('check-manifest --version 2>&1', | 29 return hghave.matchoutput('check-manifest --version 2>&1', |
30 br'check-manifest version') | 30 br'check-manifest version') |
31 | 31 |
32 @hghave.check("twine", "twine utility for publishing Python packages") | |
33 def has_twine(): | |
34 return hghave.matchoutput('twine --help 2>&1', | |
35 br'usage: twine .*\bcheck\b') | |
36 | |
32 @hghave.check("default-cg3", "changegroup3 by default") | 37 @hghave.check("default-cg3", "changegroup3 by default") |
33 def has_default_changegroup3(): | 38 def has_default_changegroup3(): |
34 from mercurial import configitems | 39 from mercurial import configitems |
35 | 40 |
36 try: | 41 try: |