comparison tests/test-version-install.t @ 4878:095bab0d0cd7 stable

py3: return unicode from setup.py's get_version py3 expects the version number for eggs to be unicode, so despite 9.2.0 being the first evolve release with beta py3 support it isn't currently pip installable since it dies with: File "*/setuptools/command/egg_info.py", line *, in tagged_version return safe_version(version + self.vtags) TypeError: can't concat str to bytes The `setup.py install` test added in a previous commit should cover this since it died in a different but similar way before.
author Ian Moody <moz-ian@perix.co.uk>
date Thu, 03 Oct 2019 23:48:50 +0100
parents 77e5c733200a
children 44c20093fc0e
comparison
equal deleted inserted replaced
4877:77e5c733200a 4878:095bab0d0cd7
17 17
18 evolve external * (glob) 18 evolve external * (glob)
19 19
20 Test install 20 Test install
21 TODO: fix warning 21 TODO: fix warning
22 #if py3
23 BROKEN: unicode errors on version number on install
24 $ "$PYTHON" "$TESTDIR/../setup.py" install --root "$TESTTMP/installtest" > /dev/null 22 $ "$PYTHON" "$TESTDIR/../setup.py" install --root "$TESTTMP/installtest" > /dev/null
25 */distutils/dist.py:*: UserWarning: Unknown distribution option: 'python_requires' (glob) 23 */distutils/dist.py:*: UserWarning: Unknown distribution option: 'python_requires' (glob)
26 warnings.warn(msg) 24 warnings.warn(msg)
27 Traceback (most recent call last):
28 File "*/../setup.py", line *, in <module> (glob)
29 python_requires=py_versions
30 File "*/distutils/core.py", line *, in setup (glob)
31 dist.run_commands()
32 File "*/distutils/dist.py", line *, in run_commands (glob)
33 self.run_command(cmd)
34 File "*/distutils/dist.py", line *, in run_command (glob)
35 cmd_obj.run()
36 File "*/distutils/command/install.py", line *, in run (glob)
37 self.run_command(cmd_name)
38 File "*/distutils/cmd.py", line *, in run_command (glob)
39 self.distribution.run_command(command)
40 File "*/distutils/dist.py", line *, in run_command (glob)
41 cmd_obj.ensure_finalized()
42 File "*/distutils/cmd.py", line *, in ensure_finalized (glob)
43 self.finalize_options()
44 File "*/distutils/command/install_egg_info.py", line *, in finalize_options (glob)
45 to_filename(safe_version(self.distribution.get_version()))
46 File "*/distutils/command/install_egg_info.py", line *, in safe_version (glob)
47 version = version.replace(' ','.')
48 TypeError: a bytes-like object is required, not 'str'
49 [1]
50 #else
51 $ "$PYTHON" "$TESTDIR/../setup.py" install --root "$TESTTMP/installtest" > /dev/null
52 */distutils/dist.py:*: UserWarning: Unknown distribution option: 'python_requires' (glob)
53 warnings.warn(msg)
54 #endif