Mercurial > evolve
comparison tests/test-check-sdist.t @ 5772:da01b9062cfb stable
tests: add test-check-sdist.t to check setup.py sdist results
For the record, we already have a somewhat similar test-check-setup-manifest.t,
but it only runs check-manifest and doesn't produce and check an actual tarball
in any way.
author | Anton Shestakov <av6@dwimlabs.net> |
---|---|
date | Mon, 08 Feb 2021 16:31:35 +0800 |
parents | |
children | 453ba695c3d4 |
comparison
equal
deleted
inserted
replaced
5771:fa2fc0cad459 | 5772:da01b9062cfb |
---|---|
1 #require test-repo | |
2 | |
3 Enable obsolescence to avoid the warning issue when obsmarkers are found | |
4 | |
5 $ cat << EOF >> "$HGRCPATH" | |
6 > [experimental] | |
7 > evolution = all | |
8 > EOF | |
9 | |
10 $ cd "$TESTDIR"/.. | |
11 $ "$PYTHON" setup.py sdist --dist-dir "$TESTTMP"/dist > /dev/null | |
12 */dist.py:*: UserWarning: Unknown distribution option: 'python_requires' (glob) | |
13 warnings.warn(msg) | |
14 warning: sdist: standard file not found: should have one of README, README.txt (?) | |
15 (?) | |
16 warning: no previously-included files found matching 'docs/tutorial/.netlify' | |
17 warning: no previously-included files found matching '.gitlab-ci.yml' | |
18 warning: no previously-included files found matching '.hg-format-source' | |
19 warning: no previously-included files found matching 'Makefile' | |
20 no previously-included directories found matching 'contrib' | |
21 no previously-included directories found matching 'debian' | |
22 no previously-included directories found matching '.gitlab' | |
23 $ cd "$TESTTMP"/dist | |
24 | |
25 $ wc -c hg-evolve-*.tar.gz | |
26 8????? hg-evolve-*.tar.gz (glob) | |
27 | |
28 $ tar -tzf hg-evolve-*.tar.gz | sed 's|^hg-evolve-[^/]*/||' | sort > files | |
29 $ wc -l files | |
30 343 files | |
31 $ fgrep debian files | |
32 tests/test-check-debian.t | |
33 $ fgrep __init__.py files | |
34 hgext3rd/__init__.py | |
35 hgext3rd/evolve/__init__.py | |
36 hgext3rd/evolve/thirdparty/__init__.py | |
37 hgext3rd/topic/__init__.py | |
38 $ fgrep common.sh files | |
39 docs/tutorial/testlib/common.sh | |
40 tests/testlib/common.sh | |
41 $ fgrep README files | |
42 README.rst | |
43 docs/README | |
44 docs/tutorial/README.rst | |
45 hgext3rd/topic/README | |
46 | |
47 $ egrep '(gitlab|contrib|hack|format-source)' files | |
48 [1] | |
49 $ fgrep legacy.py files | |
50 [1] | |
51 $ fgrep netlify files | |
52 [1] |