Source: flask-autoindex
Version: 0.6.6-2
Severity: serious
Justification: FTBFS
Tags: bookworm sid ftbfs
User: [email protected]
Usertags: ftbfs-20221220 ftbfs-bookworm
Hi,
During a rebuild of all packages in sid, your package failed to build
on amd64.
Relevant part (hopefully):
> make[1]: Entering directory '/<<PKGBUILDDIR>>'
> dh_auto_build
> I: pybuild base:240: /usr/bin/python3.11 setup.py build
> running build
> running build_py
> creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11/build/flask_autoindex
> copying flask_autoindex/__init__.py ->
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11/build/flask_autoindex
> copying flask_autoindex/entry.py ->
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11/build/flask_autoindex
> copying flask_autoindex/run.py ->
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11/build/flask_autoindex
> copying flask_autoindex/icons.py ->
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11/build/flask_autoindex
> running egg_info
> writing Flask_AutoIndex.egg-info/PKG-INFO
> writing dependency_links to Flask_AutoIndex.egg-info/dependency_links.txt
> writing entry points to Flask_AutoIndex.egg-info/entry_points.txt
> writing requirements to Flask_AutoIndex.egg-info/requires.txt
> writing top-level names to Flask_AutoIndex.egg-info/top_level.txt
> writing manifest file 'Flask_AutoIndex.egg-info/SOURCES.txt'
> reading manifest file 'Flask_AutoIndex.egg-info/SOURCES.txt'
> reading manifest template 'MANIFEST.in'
> warning: no files found matching 'LICENSE'
> warning: no previously-included files matching '*.pyc' found under directory
> 'tests'
> warning: no files found matching '*.py' under directory 'docs/_themes'
> warning: no files found matching '*.css' under directory 'docs/_themes'
> warning: no files found matching '*.css_t' under directory 'docs/_themes'
> warning: no files found matching '*.conf' under directory 'docs/_themes'
> warning: no files found matching '*.html' under directory 'docs/_themes'
> warning: no files found matching 'LICENSE' under directory 'docs/_themes'
> warning: no files found matching 'README.md' under directory 'docs/_themes'
> writing manifest file 'Flask_AutoIndex.egg-info/SOURCES.txt'
> /usr/lib/python3/dist-packages/setuptools/command/build_py.py:202:
> SetuptoolsDeprecationWarning: Installing 'flask_autoindex.static' as data
> is deprecated, please list it in `packages`.
> !!
>
>
> ############################
> # Package would be ignored #
> ############################
> Python recognizes 'flask_autoindex.static' as an importable package,
> but it is not listed in the `packages` configuration of setuptools.
>
> 'flask_autoindex.static' has been automatically added to the distribution
> only
> because it may contain data files, but this behavior is likely to change
> in future versions of setuptools (and therefore is considered deprecated).
>
> Please make sure that 'flask_autoindex.static' is included as a package
> by using
> the `packages` configuration field or the proper discovery methods
> (for example by using `find_namespace_packages(...)`/`find_namespace:`
> instead of `find_packages(...)`/`find:`).
>
> You can read more about "package discovery" and "data files" on setuptools
> documentation page.
>
>
> !!
>
> check.warn(importable)
> /usr/lib/python3/dist-packages/setuptools/command/build_py.py:202:
> SetuptoolsDeprecationWarning: Installing
> 'flask_autoindex.templates.__autoindex__' as data is deprecated, please list
> it in `packages`.
> !!
>
>
> ############################
> # Package would be ignored #
> ############################
> Python recognizes 'flask_autoindex.templates.__autoindex__' as an
> importable package,
> but it is not listed in the `packages` configuration of setuptools.
>
> 'flask_autoindex.templates.__autoindex__' has been automatically added to
> the distribution only
> because it may contain data files, but this behavior is likely to change
> in future versions of setuptools (and therefore is considered deprecated).
>
> Please make sure that 'flask_autoindex.templates.__autoindex__' is
> included as a package by using
> the `packages` configuration field or the proper discovery methods
> (for example by using `find_namespace_packages(...)`/`find_namespace:`
> instead of `find_packages(...)`/`find:`).
>
> You can read more about "package discovery" and "data files" on setuptools
> documentation page.
>
>
> !!
>
> check.warn(importable)
> creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11/build/flask_autoindex/static
> copying flask_autoindex/static/asc.gif ->
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11/build/flask_autoindex/static
> copying flask_autoindex/static/autoindex.css ->
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11/build/flask_autoindex/static
> copying flask_autoindex/static/desc.gif ->
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11/build/flask_autoindex/static
> creating
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11/build/flask_autoindex/templates
> creating
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11/build/flask_autoindex/templates/__autoindex__
> copying flask_autoindex/templates/__autoindex__/autoindex.html ->
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11/build/flask_autoindex/templates/__autoindex__
> copying flask_autoindex/templates/__autoindex__/macros.html ->
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11/build/flask_autoindex/templates/__autoindex__
> I: pybuild base:240: /usr/bin/python3 setup.py build
> running build
> running build_py
> creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10/build/flask_autoindex
> copying flask_autoindex/__init__.py ->
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10/build/flask_autoindex
> copying flask_autoindex/entry.py ->
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10/build/flask_autoindex
> copying flask_autoindex/run.py ->
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10/build/flask_autoindex
> copying flask_autoindex/icons.py ->
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10/build/flask_autoindex
> running egg_info
> writing Flask_AutoIndex.egg-info/PKG-INFO
> writing dependency_links to Flask_AutoIndex.egg-info/dependency_links.txt
> writing entry points to Flask_AutoIndex.egg-info/entry_points.txt
> writing requirements to Flask_AutoIndex.egg-info/requires.txt
> writing top-level names to Flask_AutoIndex.egg-info/top_level.txt
> reading manifest file 'Flask_AutoIndex.egg-info/SOURCES.txt'
> reading manifest template 'MANIFEST.in'
> warning: no files found matching 'LICENSE'
> warning: no previously-included files matching '*.pyc' found under directory
> 'tests'
> warning: no files found matching '*.py' under directory 'docs/_themes'
> warning: no files found matching '*.css' under directory 'docs/_themes'
> warning: no files found matching '*.css_t' under directory 'docs/_themes'
> warning: no files found matching '*.conf' under directory 'docs/_themes'
> warning: no files found matching '*.html' under directory 'docs/_themes'
> warning: no files found matching 'LICENSE' under directory 'docs/_themes'
> warning: no files found matching 'README.md' under directory 'docs/_themes'
> writing manifest file 'Flask_AutoIndex.egg-info/SOURCES.txt'
> /usr/lib/python3/dist-packages/setuptools/command/build_py.py:202:
> SetuptoolsDeprecationWarning: Installing 'flask_autoindex.static' as data
> is deprecated, please list it in `packages`.
> !!
>
>
> ############################
> # Package would be ignored #
> ############################
> Python recognizes 'flask_autoindex.static' as an importable package,
> but it is not listed in the `packages` configuration of setuptools.
>
> 'flask_autoindex.static' has been automatically added to the distribution
> only
> because it may contain data files, but this behavior is likely to change
> in future versions of setuptools (and therefore is considered deprecated).
>
> Please make sure that 'flask_autoindex.static' is included as a package
> by using
> the `packages` configuration field or the proper discovery methods
> (for example by using `find_namespace_packages(...)`/`find_namespace:`
> instead of `find_packages(...)`/`find:`).
>
> You can read more about "package discovery" and "data files" on setuptools
> documentation page.
>
>
> !!
>
> check.warn(importable)
> /usr/lib/python3/dist-packages/setuptools/command/build_py.py:202:
> SetuptoolsDeprecationWarning: Installing
> 'flask_autoindex.templates.__autoindex__' as data is deprecated, please list
> it in `packages`.
> !!
>
>
> ############################
> # Package would be ignored #
> ############################
> Python recognizes 'flask_autoindex.templates.__autoindex__' as an
> importable package,
> but it is not listed in the `packages` configuration of setuptools.
>
> 'flask_autoindex.templates.__autoindex__' has been automatically added to
> the distribution only
> because it may contain data files, but this behavior is likely to change
> in future versions of setuptools (and therefore is considered deprecated).
>
> Please make sure that 'flask_autoindex.templates.__autoindex__' is
> included as a package by using
> the `packages` configuration field or the proper discovery methods
> (for example by using `find_namespace_packages(...)`/`find_namespace:`
> instead of `find_packages(...)`/`find:`).
>
> You can read more about "package discovery" and "data files" on setuptools
> documentation page.
>
>
> !!
>
> check.warn(importable)
> creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10/build/flask_autoindex/static
> copying flask_autoindex/static/asc.gif ->
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10/build/flask_autoindex/static
> copying flask_autoindex/static/autoindex.css ->
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10/build/flask_autoindex/static
> copying flask_autoindex/static/desc.gif ->
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10/build/flask_autoindex/static
> creating
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10/build/flask_autoindex/templates
> creating
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10/build/flask_autoindex/templates/__autoindex__
> copying flask_autoindex/templates/__autoindex__/autoindex.html ->
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10/build/flask_autoindex/templates/__autoindex__
> copying flask_autoindex/templates/__autoindex__/macros.html ->
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10/build/flask_autoindex/templates/__autoindex__
> python3 setup.py build_sphinx
> running build_sphinx
> Running Sphinx v5.3.0
> making output directory... done
> building [mo]: all of 0 po files
> building [html]: all source files
> updating environment: [new config] 1 added, 0 changed, 0 removed
> reading sources... [100%] index
>
> /<<PKGBUILDDIR>>/docs/index.rst:183: ERROR: Unknown directive type
> "autoclass".
>
> .. autoclass:: AutoIndex
> :members:
> /<<PKGBUILDDIR>>/docs/index.rst:189: ERROR: Unknown directive type
> "autoclass".
>
> .. autoclass:: Entry
> :members:
> /<<PKGBUILDDIR>>/docs/index.rst:192: ERROR: Unknown directive type
> "autoclass".
>
> .. autoclass:: File
> :members:
> /<<PKGBUILDDIR>>/docs/index.rst:195: ERROR: Unknown directive type
> "autoclass".
>
> .. autoclass:: Directory
> :members:
> /<<PKGBUILDDIR>>/docs/index.rst:198: ERROR: Unknown directive type
> "autoclass".
>
> .. autoclass:: RootDirectory
> :members:
> looking for now-outdated files... none found
> pickling environment... done
> checking consistency... done
> preparing documents... done
> writing output... [100%] index
>
> generating indices... genindex py-modindex done
> writing additional pages... search done
> copying images... [ 50%] _static/flask-autoindex.png
> copying images... [100%] _static/example.png
>
> copying static files... done
> copying extra files... done
> dumping search index in English (code: en)... done
> dumping object inventory... done
> build succeeded, 5 warnings.
>
> The HTML pages are in docs/_build/html.
> make[1]: Leaving directory '/<<PKGBUILDDIR>>'
> dh_auto_test -O--buildsystem=pybuild
> I: pybuild base:240: python3.11 setup.py test
> running test
> WARNING: Testing via this command is deprecated and will be removed in a
> future version. Users looking for a generic test entry point independent of
> test runner are encouraged to use tox.
> running egg_info
> writing Flask_AutoIndex.egg-info/PKG-INFO
> writing dependency_links to Flask_AutoIndex.egg-info/dependency_links.txt
> writing entry points to Flask_AutoIndex.egg-info/entry_points.txt
> writing requirements to Flask_AutoIndex.egg-info/requires.txt
> writing top-level names to Flask_AutoIndex.egg-info/top_level.txt
> reading manifest file 'Flask_AutoIndex.egg-info/SOURCES.txt'
> reading manifest template 'MANIFEST.in'
> warning: no files found matching 'LICENSE'
> warning: no previously-included files matching '*.pyc' found under directory
> 'tests'
> warning: no files found matching '*.py' under directory 'docs/_themes'
> warning: no files found matching '*.css' under directory 'docs/_themes'
> warning: no files found matching '*.css_t' under directory 'docs/_themes'
> warning: no files found matching '*.conf' under directory 'docs/_themes'
> warning: no files found matching '*.html' under directory 'docs/_themes'
> warning: no files found matching 'LICENSE' under directory 'docs/_themes'
> warning: no files found matching 'README.md' under directory 'docs/_themes'
> writing manifest file 'Flask_AutoIndex.egg-info/SOURCES.txt'
> running build_ext
> test_contain (tests.RootDirectoryTestCase.test_contain) ... ok
> test_get_child_dir (tests.RootDirectoryTestCase.test_get_child_dir) ... ok
> test_get_child_file (tests.RootDirectoryTestCase.test_get_child_file) ... ok
> test_init (tests.RootDirectoryTestCase.test_init) ... ok
> test_root_dir (tests.RootDirectoryTestCase.test_root_dir) ... ok
> test_same_object (tests.RootDirectoryTestCase.test_same_object) ... ok
> test_contain (tests.DirectoryTestCase.test_contain) ... ok
> test_dir (tests.DirectoryTestCase.test_dir) ... ok
> test_get_child_file (tests.DirectoryTestCase.test_get_child_file) ... ok
> test_init (tests.DirectoryTestCase.test_init) ... ok
> test_same_object (tests.DirectoryTestCase.test_same_object) ... ok
> test_file (tests.FileTestCase.test_file) ... ok
> test_init (tests.FileTestCase.test_init) ... ok
> test_properties (tests.FileTestCase.test_properties) ... ok
> test_same_object (tests.FileTestCase.test_same_object) ... ok
> test_autoindex (tests.ApplicationTestCase.test_autoindex) ... ok
> test_builtin_icon_rule (tests.ApplicationTestCase.test_builtin_icon_rule) ...
> ok
> test_css (tests.ApplicationTestCase.test_css) ...
> /<<PKGBUILDDIR>>/tests/__init__.py:164: ResourceWarning: unclosed file
> <_io.BufferedReader
> name='/<<PKGBUILDDIR>>/flask_autoindex/static/autoindex.css'>
> rv = get('/__autoindex__/autoindex.css')
> ResourceWarning: Enable tracemalloc to get the object allocation traceback
> /usr/lib/python3.11/unittest/case.py:579: ResourceWarning: unclosed file
> <_io.BufferedReader
> name='/<<PKGBUILDDIR>>/flask_autoindex/static/autoindex.css'>
> if method() is not None:
> ResourceWarning: Enable tracemalloc to get the object allocation traceback
> ok
> test_custom_icon_rule (tests.ApplicationTestCase.test_custom_icon_rule) ... ok
> test_icon (tests.ApplicationTestCase.test_icon) ...
> /usr/lib/python3.11/unittest/case.py:579: ResourceWarning: unclosed file
> <_io.BufferedReader
> name='/usr/lib/python3/dist-packages/flask_silk/icons/page_white.png'>
> if method() is not None:
> ResourceWarning: Enable tracemalloc to get the object allocation traceback
> ok
> test_own_page (tests.ApplicationTestCase.test_own_page) ... FAIL
> test_own_static_file (tests.ApplicationTestCase.test_own_static_file) ...
> /usr/lib/python3.11/unittest/case.py:579: ResourceWarning: unclosed file
> <_io.BufferedReader name='/<<PKGBUILDDIR>>/tests/static/helloworld.txt'>
> if method() is not None:
> ResourceWarning: Enable tracemalloc to get the object allocation traceback
> ok
> test_parent_of_root (tests.ApplicationTestCase.test_parent_of_root) ... ok
> test_sort (tests.SortTestCase.test_sort) ... ok
>
> ======================================================================
> FAIL: test_own_page (tests.ApplicationTestCase.test_own_page)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
> File "/<<PKGBUILDDIR>>/tests/__init__.py", line 186, in test_own_page
> @self.app.route('/test')
> ^^^^^^^^^^^^^^^^^^^^^^^
> File "/usr/lib/python3/dist-packages/flask/scaffold.py", line 49, in
> wrapper_func
> self._check_setup_finished(f_name)
> File "/usr/lib/python3/dist-packages/flask/app.py", line 722, in
> _check_setup_finished
> raise AssertionError(
> AssertionError: The setup method 'route' can no longer be called on the
> application. It has already handled its first request, any changes will not
> be applied consistently.
> Make sure all imports, decorators, functions, etc. needed to set up the
> application are done before running it.
>
> ----------------------------------------------------------------------
> Ran 24 tests in 0.180s
>
> FAILED (failures=1)
> Test failed: <unittest.runner.TextTestResult run=24 errors=0 failures=1>
> error: Test failed: <unittest.runner.TextTestResult run=24 errors=0
> failures=1>
> E: pybuild pybuild:386: test: plugin distutils failed with: exit code=1:
> python3.11 setup.py test
> I: pybuild base:240: python3.10 setup.py test
> running test
> WARNING: Testing via this command is deprecated and will be removed in a
> future version. Users looking for a generic test entry point independent of
> test runner are encouraged to use tox.
> running egg_info
> writing Flask_AutoIndex.egg-info/PKG-INFO
> writing dependency_links to Flask_AutoIndex.egg-info/dependency_links.txt
> writing entry points to Flask_AutoIndex.egg-info/entry_points.txt
> writing requirements to Flask_AutoIndex.egg-info/requires.txt
> writing top-level names to Flask_AutoIndex.egg-info/top_level.txt
> reading manifest file 'Flask_AutoIndex.egg-info/SOURCES.txt'
> reading manifest template 'MANIFEST.in'
> warning: no files found matching 'LICENSE'
> warning: no files found matching '*.py' under directory 'docs/_themes'
> warning: no files found matching '*.css' under directory 'docs/_themes'
> warning: no files found matching '*.css_t' under directory 'docs/_themes'
> warning: no files found matching '*.conf' under directory 'docs/_themes'
> warning: no files found matching '*.html' under directory 'docs/_themes'
> warning: no files found matching 'LICENSE' under directory 'docs/_themes'
> warning: no files found matching 'README.md' under directory 'docs/_themes'
> writing manifest file 'Flask_AutoIndex.egg-info/SOURCES.txt'
> running build_ext
> test_contain (tests.RootDirectoryTestCase) ... ok
> test_get_child_dir (tests.RootDirectoryTestCase) ... ok
> test_get_child_file (tests.RootDirectoryTestCase) ... ok
> test_init (tests.RootDirectoryTestCase) ... ok
> test_root_dir (tests.RootDirectoryTestCase) ... ok
> test_same_object (tests.RootDirectoryTestCase) ... ok
> test_contain (tests.DirectoryTestCase) ... ok
> test_dir (tests.DirectoryTestCase) ... ok
> test_get_child_file (tests.DirectoryTestCase) ... ok
> test_init (tests.DirectoryTestCase) ... ok
> test_same_object (tests.DirectoryTestCase) ... ok
> test_file (tests.FileTestCase) ... ok
> test_init (tests.FileTestCase) ... ok
> test_properties (tests.FileTestCase) ... ok
> test_same_object (tests.FileTestCase) ... ok
> test_autoindex (tests.ApplicationTestCase) ... ok
> test_builtin_icon_rule (tests.ApplicationTestCase) ... ok
> test_css (tests.ApplicationTestCase) ...
> /<<PKGBUILDDIR>>/tests/__init__.py:164: ResourceWarning: unclosed file
> <_io.BufferedReader
> name='/<<PKGBUILDDIR>>/flask_autoindex/static/autoindex.css'>
> rv = get('/__autoindex__/autoindex.css')
> ResourceWarning: Enable tracemalloc to get the object allocation traceback
> /usr/lib/python3.10/unittest/case.py:549: ResourceWarning: unclosed file
> <_io.BufferedReader
> name='/<<PKGBUILDDIR>>/flask_autoindex/static/autoindex.css'>
> method()
> ResourceWarning: Enable tracemalloc to get the object allocation traceback
> ok
> test_custom_icon_rule (tests.ApplicationTestCase) ... ok
> test_icon (tests.ApplicationTestCase) ...
> /usr/lib/python3.10/unittest/case.py:549: ResourceWarning: unclosed file
> <_io.BufferedReader
> name='/usr/lib/python3/dist-packages/flask_silk/icons/page_white.png'>
> method()
> ResourceWarning: Enable tracemalloc to get the object allocation traceback
> ok
> test_own_page (tests.ApplicationTestCase) ... FAIL
> test_own_static_file (tests.ApplicationTestCase) ...
> /usr/lib/python3.10/unittest/case.py:549: ResourceWarning: unclosed file
> <_io.BufferedReader name='/<<PKGBUILDDIR>>/tests/static/helloworld.txt'>
> method()
> ResourceWarning: Enable tracemalloc to get the object allocation traceback
> ok
> test_parent_of_root (tests.ApplicationTestCase) ... ok
> test_sort (tests.SortTestCase) ... ok
>
> ======================================================================
> FAIL: test_own_page (tests.ApplicationTestCase)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
> File "/<<PKGBUILDDIR>>/tests/__init__.py", line 186, in test_own_page
> @self.app.route('/test')
> File "/usr/lib/python3/dist-packages/flask/scaffold.py", line 49, in
> wrapper_func
> self._check_setup_finished(f_name)
> File "/usr/lib/python3/dist-packages/flask/app.py", line 722, in
> _check_setup_finished
> raise AssertionError(
> AssertionError: The setup method 'route' can no longer be called on the
> application. It has already handled its first request, any changes will not
> be applied consistently.
> Make sure all imports, decorators, functions, etc. needed to set up the
> application are done before running it.
>
> ----------------------------------------------------------------------
> Ran 24 tests in 0.175s
>
> FAILED (failures=1)
> Test failed: <unittest.runner.TextTestResult run=24 errors=0 failures=1>
> error: Test failed: <unittest.runner.TextTestResult run=24 errors=0
> failures=1>
> E: pybuild pybuild:386: test: plugin distutils failed with: exit code=1:
> python3.10 setup.py test
> dh_auto_test: error: pybuild --test -i python{version} -p "3.11 3.10"
> returned exit code 13
The full build log is available from:
http://qa-logs.debian.net/2022/12/20/flask-autoindex_0.6.6-2_unstable.log
All bugs filed during this archive rebuild are listed at:
https://bugs.debian.org/cgi-bin/pkgreport.cgi?tag=ftbfs-20221220;[email protected]
or:
https://udd.debian.org/bugs/?release=na&merged=ign&fnewerval=7&flastmodval=7&fusertag=only&fusertagtag=ftbfs-20221220&[email protected]&allbugs=1&cseverity=1&ctags=1&caffected=1#results
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!
If you reassign this bug to another package, please mark it as 'affects'-ing
this package. See https://www.debian.org/Bugs/server-control#affects
If you fail to reproduce this, please provide a build log and diff it with mine
so that we can identify if something relevant changed in the meantime.