author | Ian Moody <moz-ian@perix.co.uk> |
Thu, 03 Oct 2019 23:39:37 +0100 | |
branch | stable |
changeset 4877 | 77e5c733200a |
parent 4876 | 1a47cc2728ff |
child 4878 | 095bab0d0cd7 |
permissions | -rw-r--r-- |
4875
164543ac3277
setup: add a test for running setup.py
Ian Moody <moz-ian@perix.co.uk>
parents:
diff
changeset
|
1 |
$ cat >> $HGRCPATH <<EOF |
164543ac3277
setup: add a test for running setup.py
Ian Moody <moz-ian@perix.co.uk>
parents:
diff
changeset
|
2 |
> [extensions] |
164543ac3277
setup: add a test for running setup.py
Ian Moody <moz-ian@perix.co.uk>
parents:
diff
changeset
|
3 |
> EOF |
164543ac3277
setup: add a test for running setup.py
Ian Moody <moz-ian@perix.co.uk>
parents:
diff
changeset
|
4 |
$ echo "evolve=$(echo $(dirname $TESTDIR))/hgext3rd/evolve/" >> $HGRCPATH |
164543ac3277
setup: add a test for running setup.py
Ian Moody <moz-ian@perix.co.uk>
parents:
diff
changeset
|
5 |
|
164543ac3277
setup: add a test for running setup.py
Ian Moody <moz-ian@perix.co.uk>
parents:
diff
changeset
|
6 |
Test outputting version number |
164543ac3277
setup: add a test for running setup.py
Ian Moody <moz-ian@perix.co.uk>
parents:
diff
changeset
|
7 |
|
164543ac3277
setup: add a test for running setup.py
Ian Moody <moz-ian@perix.co.uk>
parents:
diff
changeset
|
8 |
$ hg version -v |
164543ac3277
setup: add a test for running setup.py
Ian Moody <moz-ian@perix.co.uk>
parents:
diff
changeset
|
9 |
Mercurial Distributed SCM (version *) (glob) |
164543ac3277
setup: add a test for running setup.py
Ian Moody <moz-ian@perix.co.uk>
parents:
diff
changeset
|
10 |
(see https://mercurial-scm.org for more information) |
164543ac3277
setup: add a test for running setup.py
Ian Moody <moz-ian@perix.co.uk>
parents:
diff
changeset
|
11 |
|
164543ac3277
setup: add a test for running setup.py
Ian Moody <moz-ian@perix.co.uk>
parents:
diff
changeset
|
12 |
Copyright (C) 2005-* Matt Mackall and others (glob) |
164543ac3277
setup: add a test for running setup.py
Ian Moody <moz-ian@perix.co.uk>
parents:
diff
changeset
|
13 |
This is free software; see the source for copying conditions. There is NO |
164543ac3277
setup: add a test for running setup.py
Ian Moody <moz-ian@perix.co.uk>
parents:
diff
changeset
|
14 |
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
164543ac3277
setup: add a test for running setup.py
Ian Moody <moz-ian@perix.co.uk>
parents:
diff
changeset
|
15 |
|
164543ac3277
setup: add a test for running setup.py
Ian Moody <moz-ian@perix.co.uk>
parents:
diff
changeset
|
16 |
Enabled extensions: |
164543ac3277
setup: add a test for running setup.py
Ian Moody <moz-ian@perix.co.uk>
parents:
diff
changeset
|
17 |
|
164543ac3277
setup: add a test for running setup.py
Ian Moody <moz-ian@perix.co.uk>
parents:
diff
changeset
|
18 |
evolve external * (glob) |
164543ac3277
setup: add a test for running setup.py
Ian Moody <moz-ian@perix.co.uk>
parents:
diff
changeset
|
19 |
|
164543ac3277
setup: add a test for running setup.py
Ian Moody <moz-ian@perix.co.uk>
parents:
diff
changeset
|
20 |
Test install |
4877
77e5c733200a
py3: remove smartquotes from README
Ian Moody <moz-ian@perix.co.uk>
parents:
4876
diff
changeset
|
21 |
TODO: fix warning |
4876
1a47cc2728ff
setup: make runnable from other dirs
Ian Moody <moz-ian@perix.co.uk>
parents:
4875
diff
changeset
|
22 |
#if py3 |
4877
77e5c733200a
py3: remove smartquotes from README
Ian Moody <moz-ian@perix.co.uk>
parents:
4876
diff
changeset
|
23 |
BROKEN: unicode errors on version number on install |
4875
164543ac3277
setup: add a test for running setup.py
Ian Moody <moz-ian@perix.co.uk>
parents:
diff
changeset
|
24 |
$ "$PYTHON" "$TESTDIR/../setup.py" install --root "$TESTTMP/installtest" > /dev/null |
4877
77e5c733200a
py3: remove smartquotes from README
Ian Moody <moz-ian@perix.co.uk>
parents:
4876
diff
changeset
|
25 |
*/distutils/dist.py:*: UserWarning: Unknown distribution option: 'python_requires' (glob) |
77e5c733200a
py3: remove smartquotes from README
Ian Moody <moz-ian@perix.co.uk>
parents:
4876
diff
changeset
|
26 |
warnings.warn(msg) |
4875
164543ac3277
setup: add a test for running setup.py
Ian Moody <moz-ian@perix.co.uk>
parents:
diff
changeset
|
27 |
Traceback (most recent call last): |
164543ac3277
setup: add a test for running setup.py
Ian Moody <moz-ian@perix.co.uk>
parents:
diff
changeset
|
28 |
File "*/../setup.py", line *, in <module> (glob) |
4877
77e5c733200a
py3: remove smartquotes from README
Ian Moody <moz-ian@perix.co.uk>
parents:
4876
diff
changeset
|
29 |
python_requires=py_versions |
77e5c733200a
py3: remove smartquotes from README
Ian Moody <moz-ian@perix.co.uk>
parents:
4876
diff
changeset
|
30 |
File "*/distutils/core.py", line *, in setup (glob) |
77e5c733200a
py3: remove smartquotes from README
Ian Moody <moz-ian@perix.co.uk>
parents:
4876
diff
changeset
|
31 |
dist.run_commands() |
77e5c733200a
py3: remove smartquotes from README
Ian Moody <moz-ian@perix.co.uk>
parents:
4876
diff
changeset
|
32 |
File "*/distutils/dist.py", line *, in run_commands (glob) |
77e5c733200a
py3: remove smartquotes from README
Ian Moody <moz-ian@perix.co.uk>
parents:
4876
diff
changeset
|
33 |
self.run_command(cmd) |
77e5c733200a
py3: remove smartquotes from README
Ian Moody <moz-ian@perix.co.uk>
parents:
4876
diff
changeset
|
34 |
File "*/distutils/dist.py", line *, in run_command (glob) |
77e5c733200a
py3: remove smartquotes from README
Ian Moody <moz-ian@perix.co.uk>
parents:
4876
diff
changeset
|
35 |
cmd_obj.run() |
77e5c733200a
py3: remove smartquotes from README
Ian Moody <moz-ian@perix.co.uk>
parents:
4876
diff
changeset
|
36 |
File "*/distutils/command/install.py", line *, in run (glob) |
77e5c733200a
py3: remove smartquotes from README
Ian Moody <moz-ian@perix.co.uk>
parents:
4876
diff
changeset
|
37 |
self.run_command(cmd_name) |
77e5c733200a
py3: remove smartquotes from README
Ian Moody <moz-ian@perix.co.uk>
parents:
4876
diff
changeset
|
38 |
File "*/distutils/cmd.py", line *, in run_command (glob) |
77e5c733200a
py3: remove smartquotes from README
Ian Moody <moz-ian@perix.co.uk>
parents:
4876
diff
changeset
|
39 |
self.distribution.run_command(command) |
77e5c733200a
py3: remove smartquotes from README
Ian Moody <moz-ian@perix.co.uk>
parents:
4876
diff
changeset
|
40 |
File "*/distutils/dist.py", line *, in run_command (glob) |
77e5c733200a
py3: remove smartquotes from README
Ian Moody <moz-ian@perix.co.uk>
parents:
4876
diff
changeset
|
41 |
cmd_obj.ensure_finalized() |
77e5c733200a
py3: remove smartquotes from README
Ian Moody <moz-ian@perix.co.uk>
parents:
4876
diff
changeset
|
42 |
File "*/distutils/cmd.py", line *, in ensure_finalized (glob) |
77e5c733200a
py3: remove smartquotes from README
Ian Moody <moz-ian@perix.co.uk>
parents:
4876
diff
changeset
|
43 |
self.finalize_options() |
77e5c733200a
py3: remove smartquotes from README
Ian Moody <moz-ian@perix.co.uk>
parents:
4876
diff
changeset
|
44 |
File "*/distutils/command/install_egg_info.py", line *, in finalize_options (glob) |
77e5c733200a
py3: remove smartquotes from README
Ian Moody <moz-ian@perix.co.uk>
parents:
4876
diff
changeset
|
45 |
to_filename(safe_version(self.distribution.get_version())) |
77e5c733200a
py3: remove smartquotes from README
Ian Moody <moz-ian@perix.co.uk>
parents:
4876
diff
changeset
|
46 |
File "*/distutils/command/install_egg_info.py", line *, in safe_version (glob) |
77e5c733200a
py3: remove smartquotes from README
Ian Moody <moz-ian@perix.co.uk>
parents:
4876
diff
changeset
|
47 |
version = version.replace(' ','.') |
77e5c733200a
py3: remove smartquotes from README
Ian Moody <moz-ian@perix.co.uk>
parents:
4876
diff
changeset
|
48 |
TypeError: a bytes-like object is required, not 'str' |
4875
164543ac3277
setup: add a test for running setup.py
Ian Moody <moz-ian@perix.co.uk>
parents:
diff
changeset
|
49 |
[1] |
4876
1a47cc2728ff
setup: make runnable from other dirs
Ian Moody <moz-ian@perix.co.uk>
parents:
4875
diff
changeset
|
50 |
#else |
1a47cc2728ff
setup: make runnable from other dirs
Ian Moody <moz-ian@perix.co.uk>
parents:
4875
diff
changeset
|
51 |
$ "$PYTHON" "$TESTDIR/../setup.py" install --root "$TESTTMP/installtest" > /dev/null |
1a47cc2728ff
setup: make runnable from other dirs
Ian Moody <moz-ian@perix.co.uk>
parents:
4875
diff
changeset
|
52 |
*/distutils/dist.py:*: UserWarning: Unknown distribution option: 'python_requires' (glob) |
1a47cc2728ff
setup: make runnable from other dirs
Ian Moody <moz-ian@perix.co.uk>
parents:
4875
diff
changeset
|
53 |
warnings.warn(msg) |
1a47cc2728ff
setup: make runnable from other dirs
Ian Moody <moz-ian@perix.co.uk>
parents:
4875
diff
changeset
|
54 |
#endif |