Source: python-dotenv
Version: 0.9.1-1
Severity: serious
Justification: FTBFS on amd64
Tags: bullseye sid ftbfs
Usertags: ftbfs-20200926 ftbfs-bullseye
Hi,
During a rebuild of all packages in sid, your package failed to build
on amd64.
Relevant part (hopefully):
> debian/rules build
> dh build --with python3 --buildsystem=pybuild
> dh_update_autotools_config -O--buildsystem=pybuild
> dh_autoreconf -O--buildsystem=pybuild
> dh_auto_configure -O--buildsystem=pybuild
> pybuild --configure --test-pytest -i python{version} -p 3.8
> I: pybuild base:217: python3.8 setup.py config
> Pandoc not found. Long_description conversion failure.
> running config
> dh_auto_build -O--buildsystem=pybuild
> pybuild --build --test-pytest -i python{version} -p 3.8
> I: pybuild base:217: /usr/bin/python3 setup.py build
> Pandoc not found. Long_description conversion failure.
> running build
> running build_py
> creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_python-dotenv/build/dotenv
> copying dotenv/cli.py ->
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_python-dotenv/build/dotenv
> copying dotenv/__init__.py ->
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_python-dotenv/build/dotenv
> copying dotenv/compat.py ->
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_python-dotenv/build/dotenv
> copying dotenv/ipython.py ->
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_python-dotenv/build/dotenv
> copying dotenv/version.py ->
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_python-dotenv/build/dotenv
> copying dotenv/main.py ->
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_python-dotenv/build/dotenv
> dh_auto_test -O--buildsystem=pybuild
> pybuild --test --test-pytest -i python{version} -p 3.8
> I: pybuild base:217: cd
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_python-dotenv/build; python3.8 -m
> pytest -k 'not test_default_path and not test_console_script'
> ============================= test session starts
> ==============================
> platform linux -- Python 3.8.6, pytest-4.6.11, py-1.9.0, pluggy-0.13.0
> rootdir: /<<PKGBUILDDIR>>, inifile: setup.cfg
> collected 41 items / 2 deselected / 39 selected
>
> tests/test_cli.py ....F............ [
> 43%]
> tests/test_core.py ..................... [
> 97%]
> tests/test_utils.py .
> [100%]
>
> =================================== FAILURES
> ===================================
> ______________________________ test_list_wo_file
> _______________________________
>
> cli = <click.testing.CliRunner object at 0x7f47864ad4c0>
>
> def test_list_wo_file(cli):
> result = cli.invoke(dotenv_cli, ['--file', 'doesnotexists', 'list'])
> assert result.exit_code == 2, result.output
> > assert 'Invalid value for "-f"' in result.output
> E assert 'Invalid value for "-f"' in "Usage: cli [OPTIONS] COMMAND
> [ARGS]...\nTry 'cli --help' for help.\n\nError: Invalid value for '-f' /
> '--file': Path 'doesnotexists' does not exist.\n"
> E + where "Usage: cli [OPTIONS] COMMAND [ARGS]...\nTry 'cli --help'
> for help.\n\nError: Invalid value for '-f' / '--file': Path 'doesnotexists'
> does not exist.\n" = <Result SystemExit(2)>.output
>
> tests/test_cli.py:53: AssertionError
> =============================== warnings summary
> ===============================
> dotenv/main.py:17
>
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_python-dotenv/build/dotenv/main.py:17:
> DeprecationWarning: invalid escape sequence \$
> __posix_variable = re.compile('\$\{[^\}]*\}')
>
> .pybuild/cpython3_3.8_python-dotenv/build/tests/test_cli.py::test_get_key
> .pybuild/cpython3_3.8_python-dotenv/build/tests/test_cli.py::test_set_key
>
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_python-dotenv/build/dotenv/main.py:65:
> UserWarning: File doesn't exist
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_python-dotenv/build/tests/.env
> warnings.warn("File doesn't exist {}".format(self.dotenv_path))
>
> .pybuild/cpython3_3.8_python-dotenv/build/tests/test_cli.py::test_get_key
> .pybuild/cpython3_3.8_python-dotenv/build/tests/test_cli.py::test_set_key
> .pybuild/cpython3_3.8_python-dotenv/build/tests/test_cli.py::test_unset
>
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_python-dotenv/build/dotenv/main.py:111:
> UserWarning: key HELLO not found in
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_python-dotenv/build/tests/.env.
> warnings.warn("key %s not found in %s." % (key, self.dotenv_path))
>
> .pybuild/cpython3_3.8_python-dotenv/build/tests/test_cli.py::test_get_key
> .pybuild/cpython3_3.8_python-dotenv/build/tests/test_cli.py::test_set_key
>
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_python-dotenv/build/dotenv/main.py:132:
> UserWarning: can't write to
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_python-dotenv/build/tests/.env - it
> doesn't exist.
> warnings.warn("can't write to %s - it doesn't exist." % dotenv_path)
>
> .pybuild/cpython3_3.8_python-dotenv/build/tests/test_cli.py::test_set_key
>
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_python-dotenv/build/dotenv/main.py:111:
> UserWarning: key foo not found in
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_python-dotenv/build/tests/.env.
> warnings.warn("key %s not found in %s." % (key, self.dotenv_path))
>
> .pybuild/cpython3_3.8_python-dotenv/build/tests/test_cli.py::test_unset
>
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_python-dotenv/build/dotenv/main.py:177:
> UserWarning: key RANDOM not removed from
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_python-dotenv/build/tests/.env - key
> doesn't exist.
> warnings.warn("key %s not removed from %s - key doesn't exist." %
> (key_to_unset, dotenv_path))
>
> .pybuild/cpython3_3.8_python-dotenv/build/tests/test_cli.py::test_unset
>
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_python-dotenv/build/dotenv/main.py:166:
> UserWarning: can't delete from
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_python-dotenv/build/tests/.env - it
> doesn't exist.
> warnings.warn("can't delete from %s - it doesn't exist." % dotenv_path)
>
> .pybuild/cpython3_3.8_python-dotenv/build/tests/test_cli.py::test_unset_cli
>
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_python-dotenv/build/dotenv/main.py:111:
> UserWarning: key TESTHELLO not found in
> /tmp/pytest-of-user42/pytest-6/test_unset_cli0/dotenv_file/.env.
> warnings.warn("key %s not found in %s." % (key, self.dotenv_path))
>
> .pybuild/cpython3_3.8_python-dotenv/build/tests/test_cli.py::test_unset_cli
>
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_python-dotenv/build/dotenv/main.py:177:
> UserWarning: key TESTHELLO not removed from
> /tmp/pytest-of-user42/pytest-6/test_unset_cli0/dotenv_file/.env - key doesn't
> exist.
> warnings.warn("key %s not removed from %s - key doesn't exist." %
> (key_to_unset, dotenv_path))
>
> -- Docs: https://docs.pytest.org/en/latest/warnings.html
> ======== 1 failed, 38 passed, 2 deselected, 13 warnings in 0.50 seconds
> ========
> E: pybuild pybuild:352: test: plugin distutils failed with: exit code=1: cd
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_python-dotenv/build; python3.8 -m
> pytest -k 'not test_default_path and not test_console_script'
> dh_auto_test: error: pybuild --test --test-pytest -i python{version} -p 3.8
> returned exit code 13
The full build log is available from:
http://qa-logs.debian.net/2020/09/26/python-dotenv_0.9.1-1_unstable.log
A list of current common problems and possible solutions is available at
http://wiki.debian.org/qa.debian.org/FTBFS . You're welcome to contribute!
About the archive rebuild: The rebuild was done on EC2 VM instances from
Amazon Web Services, using a clean, minimal and up-to-date chroot. Every
failed build was retried once to eliminate random failures.