--- Begin Message ---
Source: python-plaster-pastedeploy
Version: 0.5-5
Severity: serious
Justification: FTBFS
Tags: trixie sid ftbfs
User: lu...@debian.org
Usertags: ftbfs-20230925 ftbfs-trixie
Hi,
During a rebuild of all packages in sid, your package failed to build
on amd64.
Relevant part (hopefully):
> make[1]: Entering directory '/<<PKGBUILDDIR>>'
> PYBUILD_SYSTEM=custom \
> PYBUILD_BEFORE_TEST='cp -r src/plaster_pastedeploy.egg-info {build_dir}' \
> PYBUILD_AFTER_TEST='rm -r {build_dir}/plaster_pastedeploy.egg-info' \
> PYBUILD_TEST_ARGS='env PYTHONPATH={build_dir} {interpreter} -m pytest' \
> dh_auto_test
> I: pybuild pybuild:314: cp -r src/plaster_pastedeploy.egg-info
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11/build
> I: pybuild base:291: env
> PYTHONPATH=/<<PKGBUILDDIR>>/.pybuild/cpython3_3.11/build python3.11 -m pytest
> ============================= test session starts
> ==============================
> platform linux -- Python 3.11.5, pytest-7.4.2, pluggy-1.3.0
> rootdir: /<<PKGBUILDDIR>>
> configfile: setup.cfg
> testpaths: src/plaster_pastedeploy, tests
> collected 70 items
>
> tests/test_configdict.py .. [
> 2%]
> tests/test_get_settings.py ................. [
> 27%]
> tests/test_get_wsgi_app.py FF.FF.FF.FF.FF.FF.FFF [
> 57%]
> tests/test_get_wsgi_app_settings.py F..FFF [
> 65%]
> tests/test_get_wsgi_filter.py F..F.FFFF [
> 78%]
> tests/test_get_wsgi_server.py F..F.FFFF [
> 91%]
> tests/test_loader.py . [
> 92%]
> tests/test_setup_logging.py .....
> [100%]
>
> =================================== FAILURES
> ===================================
> ________________ TestSimpleURI.test_get_wsgi_app_with_relative
> _________________
>
> cls = <class 'importlib.metadata.Distribution'>, name = 'FakeApp'
>
> @classmethod
> def from_name(cls, name: str):
> """Return the Distribution for the given package name.
>
> :param name: The name of the distribution package to search for.
> :return: The Distribution instance (or subclass thereof) for the named
> package, if found.
> :raises PackageNotFoundError: When the named package's distribution
> metadata cannot be found.
> :raises ValueError: When an invalid value is supplied for name.
> """
> if not name:
> raise ValueError("A distribution name is required.")
> try:
> > return next(cls.discover(name=name))
> E StopIteration
>
> /usr/lib/python3.11/importlib/metadata/__init__.py:563: StopIteration
>
> During handling of the above exception, another exception occurred:
>
> self = <tests.test_get_wsgi_app.TestSimpleURI object at 0x7fe4eba65b50>
>
> def test_get_wsgi_app_with_relative(self):
> import fakeapp.apps
> > app = self.loader.get_wsgi_app()
>
> /<<PKGBUILDDIR>>/tests/test_get_wsgi_app.py:21:
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> _
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11/build/plaster_pastedeploy/__init__.py:128:
> in get_wsgi_app
> return loadapp(self.pastedeploy_spec,
> /usr/lib/python3/dist-packages/paste/deploy/loadwsgi.py:248: in loadapp
> return loadobj(APP, uri, name=name, **kw)
> /usr/lib/python3/dist-packages/paste/deploy/loadwsgi.py:270: in loadobj
> context = loadcontext(
> /usr/lib/python3/dist-packages/paste/deploy/loadwsgi.py:295: in loadcontext
> return _loaders[scheme](
> /usr/lib/python3/dist-packages/paste/deploy/loadwsgi.py:326: in _loadconfig
> return loader.get_context(object_type, name, global_conf)
> /usr/lib/python3/dist-packages/paste/deploy/loadwsgi.py:461: in get_context
> context = self._context_from_use(
> /usr/lib/python3/dist-packages/paste/deploy/loadwsgi.py:488: in
> _context_from_use
> context = self.get_context(object_type, name=use, global_conf=global_conf)
> /usr/lib/python3/dist-packages/paste/deploy/loadwsgi.py:403: in get_context
> return loadcontext(
> /usr/lib/python3/dist-packages/paste/deploy/loadwsgi.py:295: in loadcontext
> return _loaders[scheme](
> /usr/lib/python3/dist-packages/paste/deploy/loadwsgi.py:334: in _loadegg
> return loader.get_context(object_type, name, global_conf)
> /usr/lib/python3/dist-packages/paste/deploy/loadwsgi.py:638: in get_context
> entry_point, protocol, ep_name = self.find_egg_entry_point(
> /usr/lib/python3/dist-packages/paste/deploy/loadwsgi.py:658: in
> find_egg_entry_point
> dist = importlib_metadata.distribution(self.spec)
> /usr/lib/python3.11/importlib/metadata/__init__.py:981: in distribution
> return Distribution.from_name(distribution_name)
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> _
>
> cls = <class 'importlib.metadata.Distribution'>, name = 'FakeApp'
>
> @classmethod
> def from_name(cls, name: str):
> """Return the Distribution for the given package name.
>
> :param name: The name of the distribution package to search for.
> :return: The Distribution instance (or subclass thereof) for the named
> package, if found.
> :raises PackageNotFoundError: When the named package's distribution
> metadata cannot be found.
> :raises ValueError: When an invalid value is supplied for name.
> """
> if not name:
> raise ValueError("A distribution name is required.")
> try:
> return next(cls.discover(name=name))
> except StopIteration:
> > raise PackageNotFoundError(name)
> E importlib.metadata.PackageNotFoundError: No package metadata was
> found for FakeApp
>
> /usr/lib/python3.11/importlib/metadata/__init__.py:565: PackageNotFoundError
> _____________________ TestSimpleURI.test_get_wsgi_app_main
> _____________________
>
> cls = <class 'importlib.metadata.Distribution'>, name = 'FakeApp'
>
> @classmethod
> def from_name(cls, name: str):
> """Return the Distribution for the given package name.
>
> :param name: The name of the distribution package to search for.
> :return: The Distribution instance (or subclass thereof) for the named
> package, if found.
> :raises PackageNotFoundError: When the named package's distribution
> metadata cannot be found.
> :raises ValueError: When an invalid value is supplied for name.
> """
> if not name:
> raise ValueError("A distribution name is required.")
> try:
> > return next(cls.discover(name=name))
> E StopIteration
>
> /usr/lib/python3.11/importlib/metadata/__init__.py:563: StopIteration
>
> During handling of the above exception, another exception occurred:
>
> self = <tests.test_get_wsgi_app.TestSimpleURI object at 0x7fe4eba65f90>
>
> def test_get_wsgi_app_main(self):
> import fakeapp.apps
> > app = self.loader.get_wsgi_app('main')
>
> /<<PKGBUILDDIR>>/tests/test_get_wsgi_app.py:26:
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> _
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11/build/plaster_pastedeploy/__init__.py:128:
> in get_wsgi_app
> return loadapp(self.pastedeploy_spec,
> /usr/lib/python3/dist-packages/paste/deploy/loadwsgi.py:248: in loadapp
> return loadobj(APP, uri, name=name, **kw)
> /usr/lib/python3/dist-packages/paste/deploy/loadwsgi.py:270: in loadobj
> context = loadcontext(
> /usr/lib/python3/dist-packages/paste/deploy/loadwsgi.py:295: in loadcontext
> return _loaders[scheme](
> /usr/lib/python3/dist-packages/paste/deploy/loadwsgi.py:326: in _loadconfig
> return loader.get_context(object_type, name, global_conf)
> /usr/lib/python3/dist-packages/paste/deploy/loadwsgi.py:461: in get_context
> context = self._context_from_use(
> /usr/lib/python3/dist-packages/paste/deploy/loadwsgi.py:488: in
> _context_from_use
> context = self.get_context(object_type, name=use, global_conf=global_conf)
> /usr/lib/python3/dist-packages/paste/deploy/loadwsgi.py:403: in get_context
> return loadcontext(
> /usr/lib/python3/dist-packages/paste/deploy/loadwsgi.py:295: in loadcontext
> return _loaders[scheme](
> /usr/lib/python3/dist-packages/paste/deploy/loadwsgi.py:334: in _loadegg
> return loader.get_context(object_type, name, global_conf)
> /usr/lib/python3/dist-packages/paste/deploy/loadwsgi.py:638: in get_context
> entry_point, protocol, ep_name = self.find_egg_entry_point(
> /usr/lib/python3/dist-packages/paste/deploy/loadwsgi.py:658: in
> find_egg_entry_point
> dist = importlib_metadata.distribution(self.spec)
> /usr/lib/python3.11/importlib/metadata/__init__.py:981: in distribution
> return Distribution.from_name(distribution_name)
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> _
>
> cls = <class 'importlib.metadata.Distribution'>, name = 'FakeApp'
>
> @classmethod
> def from_name(cls, name: str):
> """Return the Distribution for the given package name.
>
> :param name: The name of the distribution package to search for.
> :return: The Distribution instance (or subclass thereof) for the named
> package, if found.
> :raises PackageNotFoundError: When the named package's distribution
> metadata cannot be found.
> :raises ValueError: When an invalid value is supplied for name.
> """
> if not name:
> raise ValueError("A distribution name is required.")
> try:
> return next(cls.discover(name=name))
> except StopIteration:
> > raise PackageNotFoundError(name)
> E importlib.metadata.PackageNotFoundError: No package metadata was
> found for FakeApp
>
> /usr/lib/python3.11/importlib/metadata/__init__.py:565: PackageNotFoundError
> _______________ TestSectionedURI.test_get_wsgi_app_with_relative
> _______________
>
> cls = <class 'importlib.metadata.Distribution'>, name = 'FakeApp'
>
> @classmethod
> def from_name(cls, name: str):
> """Return the Distribution for the given package name.
>
> :param name: The name of the distribution package to search for.
> :return: The Distribution instance (or subclass thereof) for the named
> package, if found.
> :raises PackageNotFoundError: When the named package's distribution
> metadata cannot be found.
> :raises ValueError: When an invalid value is supplied for name.
> """
> if not name:
> raise ValueError("A distribution name is required.")
> try:
> > return next(cls.discover(name=name))
> E StopIteration
>
> /usr/lib/python3.11/importlib/metadata/__init__.py:563: StopIteration
>
> During handling of the above exception, another exception occurred:
>
> self = <tests.test_get_wsgi_app.TestSectionedURI object at 0x7fe4eba64610>
>
> def test_get_wsgi_app_with_relative(self):
> import fakeapp.apps
> > app = self.loader.get_wsgi_app()
>
> /<<PKGBUILDDIR>>/tests/test_get_wsgi_app.py:21:
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> _
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11/build/plaster_pastedeploy/__init__.py:128:
> in get_wsgi_app
> return loadapp(self.pastedeploy_spec,
> /usr/lib/python3/dist-packages/paste/deploy/loadwsgi.py:248: in loadapp
> return loadobj(APP, uri, name=name, **kw)
> /usr/lib/python3/dist-packages/paste/deploy/loadwsgi.py:270: in loadobj
> context = loadcontext(
> /usr/lib/python3/dist-packages/paste/deploy/loadwsgi.py:295: in loadcontext
> return _loaders[scheme](
> /usr/lib/python3/dist-packages/paste/deploy/loadwsgi.py:326: in _loadconfig
> return loader.get_context(object_type, name, global_conf)
> /usr/lib/python3/dist-packages/paste/deploy/loadwsgi.py:461: in get_context
> context = self._context_from_use(
> /usr/lib/python3/dist-packages/paste/deploy/loadwsgi.py:488: in
> _context_from_use
> context = self.get_context(object_type, name=use, global_conf=global_conf)
> /usr/lib/python3/dist-packages/paste/deploy/loadwsgi.py:403: in get_context
> return loadcontext(
> /usr/lib/python3/dist-packages/paste/deploy/loadwsgi.py:295: in loadcontext
> return _loaders[scheme](
> /usr/lib/python3/dist-packages/paste/deploy/loadwsgi.py:334: in _loadegg
> return loader.get_context(object_type, name, global_conf)
> /usr/lib/python3/dist-packages/paste/deploy/loadwsgi.py:638: in get_context
> entry_point, protocol, ep_name = self.find_egg_entry_point(
> /usr/lib/python3/dist-packages/paste/deploy/loadwsgi.py:658: in
> find_egg_entry_point
> dist = importlib_metadata.distribution(self.spec)
> /usr/lib/python3.11/importlib/metadata/__init__.py:981: in distribution
> return Distribution.from_name(distribution_name)
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> _
>
> cls = <class 'importlib.metadata.Distribution'>, name = 'FakeApp'
>
> @classmethod
> def from_name(cls, name: str):
> """Return the Distribution for the given package name.
>
> :param name: The name of the distribution package to search for.
> :return: The Distribution instance (or subclass thereof) for the named
> package, if found.
> :raises PackageNotFoundError: When the named package's distribution
> metadata cannot be found.
> :raises ValueError: When an invalid value is supplied for name.
> """
> if not name:
> raise ValueError("A distribution name is required.")
> try:
> return next(cls.discover(name=name))
> except StopIteration:
> > raise PackageNotFoundError(name)
> E importlib.metadata.PackageNotFoundError: No package metadata was
> found for FakeApp
>
> /usr/lib/python3.11/importlib/metadata/__init__.py:565: PackageNotFoundError
> ___________________ TestSectionedURI.test_get_wsgi_app_main
> ____________________
>
> cls = <class 'importlib.metadata.Distribution'>, name = 'FakeApp'
>
> @classmethod
> def from_name(cls, name: str):
> """Return the Distribution for the given package name.
>
> :param name: The name of the distribution package to search for.
> :return: The Distribution instance (or subclass thereof) for the named
> package, if found.
> :raises PackageNotFoundError: When the named package's distribution
> metadata cannot be found.
> :raises ValueError: When an invalid value is supplied for name.
> """
> if not name:
> raise ValueError("A distribution name is required.")
> try:
> > return next(cls.discover(name=name))
> E StopIteration
>
> /usr/lib/python3.11/importlib/metadata/__init__.py:563: StopIteration
>
> During handling of the above exception, another exception occurred:
>
> self = <tests.test_get_wsgi_app.TestSectionedURI object at 0x7fe4ebc36e10>
>
> def test_get_wsgi_app_main(self):
> import fakeapp.apps
> > app = self.loader.get_wsgi_app('main')
>
> /<<PKGBUILDDIR>>/tests/test_get_wsgi_app.py:26:
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> _
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11/build/plaster_pastedeploy/__init__.py:128:
> in get_wsgi_app
> return loadapp(self.pastedeploy_spec,
> /usr/lib/python3/dist-packages/paste/deploy/loadwsgi.py:248: in loadapp
> return loadobj(APP, uri, name=name, **kw)
> /usr/lib/python3/dist-packages/paste/deploy/loadwsgi.py:270: in loadobj
> context = loadcontext(
> /usr/lib/python3/dist-packages/paste/deploy/loadwsgi.py:295: in loadcontext
> return _loaders[scheme](
> /usr/lib/python3/dist-packages/paste/deploy/loadwsgi.py:326: in _loadconfig
> return loader.get_context(object_type, name, global_conf)
> /usr/lib/python3/dist-packages/paste/deploy/loadwsgi.py:461: in get_context
> context = self._context_from_use(
> /usr/lib/python3/dist-packages/paste/deploy/loadwsgi.py:488: in
> _context_from_use
> context = self.get_context(object_type, name=use, global_conf=global_conf)
> /usr/lib/python3/dist-packages/paste/deploy/loadwsgi.py:403: in get_context
> return loadcontext(
> /usr/lib/python3/dist-packages/paste/deploy/loadwsgi.py:295: in loadcontext
> return _loaders[scheme](
> /usr/lib/python3/dist-packages/paste/deploy/loadwsgi.py:334: in _loadegg
> return loader.get_context(object_type, name, global_conf)
> /usr/lib/python3/dist-packages/paste/deploy/loadwsgi.py:638: in get_context
> entry_point, protocol, ep_name = self.find_egg_entry_point(
> /usr/lib/python3/dist-packages/paste/deploy/loadwsgi.py:658: in
> find_egg_entry_point
> dist = importlib_metadata.distribution(self.spec)
> /usr/lib/python3.11/importlib/metadata/__init__.py:981: in distribution
> return Distribution.from_name(distribution_name)
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> _
>
> cls = <class 'importlib.metadata.Distribution'>, name = 'FakeApp'
>
> @classmethod
> def from_name(cls, name: str):
> """Return the Distribution for the given package name.
>
> :param name: The name of the distribution package to search for.
> :return: The Distribution instance (or subclass thereof) for the named
> package, if found.
> :raises PackageNotFoundError: When the named package's distribution
> metadata cannot be found.
> :raises ValueError: When an invalid value is supplied for name.
> """
> if not name:
> raise ValueError("A distribution name is required.")
> try:
> return next(cls.discover(name=name))
> except StopIteration:
> > raise PackageNotFoundError(name)
> E importlib.metadata.PackageNotFoundError: No package metadata was
> found for FakeApp
>
> /usr/lib/python3.11/importlib/metadata/__init__.py:565: PackageNotFoundError
> __________ TestSchemeAndSectionedURI.test_get_wsgi_app_with_relative
> ___________
>
> cls = <class 'importlib.metadata.Distribution'>, name = 'FakeApp'
>
> @classmethod
> def from_name(cls, name: str):
> """Return the Distribution for the given package name.
>
> :param name: The name of the distribution package to search for.
> :return: The Distribution instance (or subclass thereof) for the named
> package, if found.
> :raises PackageNotFoundError: When the named package's distribution
> metadata cannot be found.
> :raises ValueError: When an invalid value is supplied for name.
> """
> if not name:
> raise ValueError("A distribution name is required.")
> try:
> > return next(cls.discover(name=name))
> E StopIteration
>
> /usr/lib/python3.11/importlib/metadata/__init__.py:563: StopIteration
>
> During handling of the above exception, another exception occurred:
>
> self = <tests.test_get_wsgi_app.TestSchemeAndSectionedURI object at
> 0x7fe4ebc36d10>
>
> def test_get_wsgi_app_with_relative(self):
> import fakeapp.apps
> > app = self.loader.get_wsgi_app()
>
> /<<PKGBUILDDIR>>/tests/test_get_wsgi_app.py:21:
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> _
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11/build/plaster_pastedeploy/__init__.py:128:
> in get_wsgi_app
> return loadapp(self.pastedeploy_spec,
> /usr/lib/python3/dist-packages/paste/deploy/loadwsgi.py:248: in loadapp
> return loadobj(APP, uri, name=name, **kw)
> /usr/lib/python3/dist-packages/paste/deploy/loadwsgi.py:270: in loadobj
> context = loadcontext(
> /usr/lib/python3/dist-packages/paste/deploy/loadwsgi.py:295: in loadcontext
> return _loaders[scheme](
> /usr/lib/python3/dist-packages/paste/deploy/loadwsgi.py:326: in _loadconfig
> return loader.get_context(object_type, name, global_conf)
> /usr/lib/python3/dist-packages/paste/deploy/loadwsgi.py:461: in get_context
> context = self._context_from_use(
> /usr/lib/python3/dist-packages/paste/deploy/loadwsgi.py:488: in
> _context_from_use
> context = self.get_context(object_type, name=use, global_conf=global_conf)
> /usr/lib/python3/dist-packages/paste/deploy/loadwsgi.py:403: in get_context
> return loadcontext(
> /usr/lib/python3/dist-packages/paste/deploy/loadwsgi.py:295: in loadcontext
> return _loaders[scheme](
> /usr/lib/python3/dist-packages/paste/deploy/loadwsgi.py:334: in _loadegg
> return loader.get_context(object_type, name, global_conf)
> /usr/lib/python3/dist-packages/paste/deploy/loadwsgi.py:638: in get_context
> entry_point, protocol, ep_name = self.find_egg_entry_point(
> /usr/lib/python3/dist-packages/paste/deploy/loadwsgi.py:658: in
> find_egg_entry_point
> dist = importlib_metadata.distribution(self.spec)
> /usr/lib/python3.11/importlib/metadata/__init__.py:981: in distribution
> return Distribution.from_name(distribution_name)
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> _
>
> cls = <class 'importlib.metadata.Distribution'>, name = 'FakeApp'
>
> @classmethod
> def from_name(cls, name: str):
> """Return the Distribution for the given package name.
>
> :param name: The name of the distribution package to search for.
> :return: The Distribution instance (or subclass thereof) for the named
> package, if found.
> :raises PackageNotFoundError: When the named package's distribution
> metadata cannot be found.
> :raises ValueError: When an invalid value is supplied for name.
> """
> if not name:
> raise ValueError("A distribution name is required.")
> try:
> return next(cls.discover(name=name))
> except StopIteration:
> > raise PackageNotFoundError(name)
> E importlib.metadata.PackageNotFoundError: No package metadata was
> found for FakeApp
>
> /usr/lib/python3.11/importlib/metadata/__init__.py:565: PackageNotFoundError
> _______________ TestSchemeAndSectionedURI.test_get_wsgi_app_main
> _______________
>
> cls = <class 'importlib.metadata.Distribution'>, name = 'FakeApp'
>
> @classmethod
> def from_name(cls, name: str):
> """Return the Distribution for the given package name.
>
> :param name: The name of the distribution package to search for.
> :return: The Distribution instance (or subclass thereof) for the named
> package, if found.
> :raises PackageNotFoundError: When the named package's distribution
> metadata cannot be found.
> :raises ValueError: When an invalid value is supplied for name.
> """
> if not name:
> raise ValueError("A distribution name is required.")
> try:
> > return next(cls.discover(name=name))
> E StopIteration
>
> /usr/lib/python3.11/importlib/metadata/__init__.py:563: StopIteration
>
> During handling of the above exception, another exception occurred:
>
> self = <tests.test_get_wsgi_app.TestSchemeAndSectionedURI object at
> 0x7fe4ebc36550>
>
> def test_get_wsgi_app_main(self):
> import fakeapp.apps
> > app = self.loader.get_wsgi_app('main')
>
> /<<PKGBUILDDIR>>/tests/test_get_wsgi_app.py:26:
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> _
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11/build/plaster_pastedeploy/__init__.py:128:
> in get_wsgi_app
> return loadapp(self.pastedeploy_spec,
> /usr/lib/python3/dist-packages/paste/deploy/loadwsgi.py:248: in loadapp
> return loadobj(APP, uri, name=name, **kw)
> /usr/lib/python3/dist-packages/paste/deploy/loadwsgi.py:270: in loadobj
> context = loadcontext(
> /usr/lib/python3/dist-packages/paste/deploy/loadwsgi.py:295: in loadcontext
> return _loaders[scheme](
> /usr/lib/python3/dist-packages/paste/deploy/loadwsgi.py:326: in _loadconfig
> return loader.get_context(object_type, name, global_conf)
> /usr/lib/python3/dist-packages/paste/deploy/loadwsgi.py:461: in get_context
> context = self._context_from_use(
> /usr/lib/python3/dist-packages/paste/deploy/loadwsgi.py:488: in
> _context_from_use
> context = self.get_context(object_type, name=use, global_conf=global_conf)
> /usr/lib/python3/dist-packages/paste/deploy/loadwsgi.py:403: in get_context
> return loadcontext(
> /usr/lib/python3/dist-packages/paste/deploy/loadwsgi.py:295: in loadcontext
> return _loaders[scheme](
> /usr/lib/python3/dist-packages/paste/deploy/loadwsgi.py:334: in _loadegg
> return loader.get_context(object_type, name, global_conf)
> /usr/lib/python3/dist-packages/paste/deploy/loadwsgi.py:638: in get_context
> entry_point, protocol, ep_name = self.find_egg_entry_point(
> /usr/lib/python3/dist-packages/paste/deploy/loadwsgi.py:658: in
> find_egg_entry_point
> dist = importlib_metadata.distribution(self.spec)
> /usr/lib/python3.11/importlib/metadata/__init__.py:981: in distribution
> return Distribution.from_name(distribution_name)
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> _
>
> cls = <class 'importlib.metadata.Distribution'>, name = 'FakeApp'
>
> @classmethod
> def from_name(cls, name: str):
> """Return the Distribution for the given package name.
>
> :param name: The name of the distribution package to search for.
> :return: The Distribution instance (or subclass thereof) for the named
> package, if found.
> :raises PackageNotFoundError: When the named package's distribution
> metadata cannot be found.
> :raises ValueError: When an invalid value is supplied for name.
> """
> if not name:
> raise ValueError("A distribution name is required.")
> try:
> return next(cls.discover(name=name))
> except StopIteration:
> > raise PackageNotFoundError(name)
> E importlib.metadata.PackageNotFoundError: No package metadata was
> found for FakeApp
>
> /usr/lib/python3.11/importlib/metadata/__init__.py:565: PackageNotFoundError
> _______________ TestRelativeURI.test_get_wsgi_app_with_relative
> ________________
>
> cls = <class 'importlib.metadata.Distribution'>, name = 'FakeApp'
>
> @classmethod
> def from_name(cls, name: str):
> """Return the Distribution for the given package name.
>
> :param name: The name of the distribution package to search for.
> :return: The Distribution instance (or subclass thereof) for the named
> package, if found.
> :raises PackageNotFoundError: When the named package's distribution
> metadata cannot be found.
> :raises ValueError: When an invalid value is supplied for name.
> """
> if not name:
> raise ValueError("A distribution name is required.")
> try:
> > return next(cls.discover(name=name))
> E StopIteration
>
> /usr/lib/python3.11/importlib/metadata/__init__.py:563: StopIteration
>
> During handling of the above exception, another exception occurred:
>
> self = <tests.test_get_wsgi_app.TestRelativeURI object at 0x7fe4ebc340d0>
>
> def test_get_wsgi_app_with_relative(self):
> import fakeapp.apps
> > app = self.loader.get_wsgi_app()
>
> /<<PKGBUILDDIR>>/tests/test_get_wsgi_app.py:21:
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> _
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11/build/plaster_pastedeploy/__init__.py:128:
> in get_wsgi_app
> return loadapp(self.pastedeploy_spec,
> /usr/lib/python3/dist-packages/paste/deploy/loadwsgi.py:248: in loadapp
> return loadobj(APP, uri, name=name, **kw)
> /usr/lib/python3/dist-packages/paste/deploy/loadwsgi.py:270: in loadobj
> context = loadcontext(
> /usr/lib/python3/dist-packages/paste/deploy/loadwsgi.py:295: in loadcontext
> return _loaders[scheme](
> /usr/lib/python3/dist-packages/paste/deploy/loadwsgi.py:326: in _loadconfig
> return loader.get_context(object_type, name, global_conf)
> /usr/lib/python3/dist-packages/paste/deploy/loadwsgi.py:461: in get_context
> context = self._context_from_use(
> /usr/lib/python3/dist-packages/paste/deploy/loadwsgi.py:488: in
> _context_from_use
> context = self.get_context(object_type, name=use, global_conf=global_conf)
> /usr/lib/python3/dist-packages/paste/deploy/loadwsgi.py:403: in get_context
> return loadcontext(
> /usr/lib/python3/dist-packages/paste/deploy/loadwsgi.py:295: in loadcontext
> return _loaders[scheme](
> /usr/lib/python3/dist-packages/paste/deploy/loadwsgi.py:334: in _loadegg
> return loader.get_context(object_type, name, global_conf)
> /usr/lib/python3/dist-packages/paste/deploy/loadwsgi.py:638: in get_context
> entry_point, protocol, ep_name = self.find_egg_entry_point(
> /usr/lib/python3/dist-packages/paste/deploy/loadwsgi.py:658: in
> find_egg_entry_point
> dist = importlib_metadata.distribution(self.spec)
> /usr/lib/python3.11/importlib/metadata/__init__.py:981: in distribution
> return Distribution.from_name(distribution_name)
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> _
>
> cls = <class 'importlib.metadata.Distribution'>, name = 'FakeApp'
>
> @classmethod
> def from_name(cls, name: str):
> """Return the Distribution for the given package name.
>
> :param name: The name of the distribution package to search for.
> :return: The Distribution instance (or subclass thereof) for the named
> package, if found.
> :raises PackageNotFoundError: When the named package's distribution
> metadata cannot be found.
> :raises ValueError: When an invalid value is supplied for name.
> """
> if not name:
> raise ValueError("A distribution name is required.")
> try:
> return next(cls.discover(name=name))
> except StopIteration:
> > raise PackageNotFoundError(name)
> E importlib.metadata.PackageNotFoundError: No package metadata was
> found for FakeApp
>
> /usr/lib/python3.11/importlib/metadata/__init__.py:565: PackageNotFoundError
> ____________________ TestRelativeURI.test_get_wsgi_app_main
> ____________________
>
> cls = <class 'importlib.metadata.Distribution'>, name = 'FakeApp'
>
> @classmethod
> def from_name(cls, name: str):
> """Return the Distribution for the given package name.
>
> :param name: The name of the distribution package to search for.
> :return: The Distribution instance (or subclass thereof) for the named
> package, if found.
> :raises PackageNotFoundError: When the named package's distribution
> metadata cannot be found.
> :raises ValueError: When an invalid value is supplied for name.
> """
> if not name:
> raise ValueError("A distribution name is required.")
> try:
> > return next(cls.discover(name=name))
> E StopIteration
>
> /usr/lib/python3.11/importlib/metadata/__init__.py:563: StopIteration
>
> During handling of the above exception, another exception occurred:
>
> self = <tests.test_get_wsgi_app.TestRelativeURI object at 0x7fe4ebc37250>
>
> def test_get_wsgi_app_main(self):
> import fakeapp.apps
> > app = self.loader.get_wsgi_app('main')
>
> /<<PKGBUILDDIR>>/tests/test_get_wsgi_app.py:26:
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> _
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11/build/plaster_pastedeploy/__init__.py:128:
> in get_wsgi_app
> return loadapp(self.pastedeploy_spec,
> /usr/lib/python3/dist-packages/paste/deploy/loadwsgi.py:248: in loadapp
> return loadobj(APP, uri, name=name, **kw)
> /usr/lib/python3/dist-packages/paste/deploy/loadwsgi.py:270: in loadobj
> context = loadcontext(
> /usr/lib/python3/dist-packages/paste/deploy/loadwsgi.py:295: in loadcontext
> return _loaders[scheme](
> /usr/lib/python3/dist-packages/paste/deploy/loadwsgi.py:326: in _loadconfig
> return loader.get_context(object_type, name, global_conf)
> /usr/lib/python3/dist-packages/paste/deploy/loadwsgi.py:461: in get_context
> context = self._context_from_use(
> /usr/lib/python3/dist-packages/paste/deploy/loadwsgi.py:488: in
> _context_from_use
> context = self.get_context(object_type, name=use, global_conf=global_conf)
> /usr/lib/python3/dist-packages/paste/deploy/loadwsgi.py:403: in get_context
> return loadcontext(
> /usr/lib/python3/dist-packages/paste/deploy/loadwsgi.py:295: in loadcontext
> return _loaders[scheme](
> /usr/lib/python3/dist-packages/paste/deploy/loadwsgi.py:334: in _loadegg
> return loader.get_context(object_type, name, global_conf)
> /usr/lib/python3/dist-packages/paste/deploy/loadwsgi.py:638: in get_context
> entry_point, protocol, ep_name = self.find_egg_entry_point(
> /usr/lib/python3/dist-packages/paste/deploy/loadwsgi.py:658: in
> find_egg_entry_point
> dist = importlib_metadata.distribution(self.spec)
> /usr/lib/python3.11/importlib/metadata/__init__.py:981: in distribution
> return Distribution.from_name(distribution_name)
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> _
>
> cls = <class 'importlib.metadata.Distribution'>, name = 'FakeApp'
>
> @classmethod
> def from_name(cls, name: str):
> """Return the Distribution for the given package name.
>
> :param name: The name of the distribution package to search for.
> :return: The Distribution instance (or subclass thereof) for the named
> package, if found.
> :raises PackageNotFoundError: When the named package's distribution
> metadata cannot be found.
> :raises ValueError: When an invalid value is supplied for name.
> """
> if not name:
> raise ValueError("A distribution name is required.")
> try:
> return next(cls.discover(name=name))
> except StopIteration:
> > raise PackageNotFoundError(name)
> E importlib.metadata.PackageNotFoundError: No package metadata was
> found for FakeApp
>
> /usr/lib/python3.11/importlib/metadata/__init__.py:565: PackageNotFoundError
> ___________ TestRelativeSectionedURI.test_get_wsgi_app_with_relative
> ___________
>
> cls = <class 'importlib.metadata.Distribution'>, name = 'FakeApp'
>
> @classmethod
> def from_name(cls, name: str):
> """Return the Distribution for the given package name.
>
> :param name: The name of the distribution package to search for.
> :return: The Distribution instance (or subclass thereof) for the named
> package, if found.
> :raises PackageNotFoundError: When the named package's distribution
> metadata cannot be found.
> :raises ValueError: When an invalid value is supplied for name.
> """
> if not name:
> raise ValueError("A distribution name is required.")
> try:
> > return next(cls.discover(name=name))
> E StopIteration
>
> /usr/lib/python3.11/importlib/metadata/__init__.py:563: StopIteration
>
> During handling of the above exception, another exception occurred:
>
> self = <tests.test_get_wsgi_app.TestRelativeSectionedURI object at
> 0x7fe4ebbbb2d0>
>
> def test_get_wsgi_app_with_relative(self):
> import fakeapp.apps
> > app = self.loader.get_wsgi_app()
>
> /<<PKGBUILDDIR>>/tests/test_get_wsgi_app.py:21:
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> _
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11/build/plaster_pastedeploy/__init__.py:128:
> in get_wsgi_app
> return loadapp(self.pastedeploy_spec,
> /usr/lib/python3/dist-packages/paste/deploy/loadwsgi.py:248: in loadapp
> return loadobj(APP, uri, name=name, **kw)
> /usr/lib/python3/dist-packages/paste/deploy/loadwsgi.py:270: in loadobj
> context = loadcontext(
> /usr/lib/python3/dist-packages/paste/deploy/loadwsgi.py:295: in loadcontext
> return _loaders[scheme](
> /usr/lib/python3/dist-packages/paste/deploy/loadwsgi.py:326: in _loadconfig
> return loader.get_context(object_type, name, global_conf)
> /usr/lib/python3/dist-packages/paste/deploy/loadwsgi.py:461: in get_context
> context = self._context_from_use(
> /usr/lib/python3/dist-packages/paste/deploy/loadwsgi.py:488: in
> _context_from_use
> context = self.get_context(object_type, name=use, global_conf=global_conf)
> /usr/lib/python3/dist-packages/paste/deploy/loadwsgi.py:403: in get_context
> return loadcontext(
> /usr/lib/python3/dist-packages/paste/deploy/loadwsgi.py:295: in loadcontext
> return _loaders[scheme](
> /usr/lib/python3/dist-packages/paste/deploy/loadwsgi.py:334: in _loadegg
> return loader.get_context(object_type, name, global_conf)
> /usr/lib/python3/dist-packages/paste/deploy/loadwsgi.py:638: in get_context
> entry_point, protocol, ep_name = self.find_egg_entry_point(
> /usr/lib/python3/dist-packages/paste/deploy/loadwsgi.py:658: in
> find_egg_entry_point
> dist = importlib_metadata.distribution(self.spec)
> /usr/lib/python3.11/importlib/metadata/__init__.py:981: in distribution
> return Distribution.from_name(distribution_name)
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> _
>
> cls = <class 'importlib.metadata.Distribution'>, name = 'FakeApp'
>
> @classmethod
> def from_name(cls, name: str):
> """Return the Distribution for the given package name.
>
> :param name: The name of the distribution package to search for.
> :return: The Distribution instance (or subclass thereof) for the named
> package, if found.
> :raises PackageNotFoundError: When the named package's distribution
> metadata cannot be found.
> :raises ValueError: When an invalid value is supplied for name.
> """
> if not name:
> raise ValueError("A distribution name is required.")
> try:
> return next(cls.discover(name=name))
> except StopIteration:
> > raise PackageNotFoundError(name)
> E importlib.metadata.PackageNotFoundError: No package metadata was
> found for FakeApp
>
> /usr/lib/python3.11/importlib/metadata/__init__.py:565: PackageNotFoundError
> _______________ TestRelativeSectionedURI.test_get_wsgi_app_main
> ________________
>
> cls = <class 'importlib.metadata.Distribution'>, name = 'FakeApp'
>
> @classmethod
> def from_name(cls, name: str):
> """Return the Distribution for the given package name.
>
> :param name: The name of the distribution package to search for.
> :return: The Distribution instance (or subclass thereof) for the named
> package, if found.
> :raises PackageNotFoundError: When the named package's distribution
> metadata cannot be found.
> :raises ValueError: When an invalid value is supplied for name.
> """
> if not name:
> raise ValueError("A distribution name is required.")
> try:
> > return next(cls.discover(name=name))
> E StopIteration
>
> /usr/lib/python3.11/importlib/metadata/__init__.py:563: StopIteration
>
> During handling of the above exception, another exception occurred:
>
> self = <tests.test_get_wsgi_app.TestRelativeSectionedURI object at
> 0x7fe4ebbbb010>
>
> def test_get_wsgi_app_main(self):
> import fakeapp.apps
> > app = self.loader.get_wsgi_app('main')
>
> /<<PKGBUILDDIR>>/tests/test_get_wsgi_app.py:26:
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> _
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11/build/plaster_pastedeploy/__init__.py:128:
> in get_wsgi_app
> return loadapp(self.pastedeploy_spec,
> /usr/lib/python3/dist-packages/paste/deploy/loadwsgi.py:248: in loadapp
> return loadobj(APP, uri, name=name, **kw)
> /usr/lib/python3/dist-packages/paste/deploy/loadwsgi.py:270: in loadobj
> context = loadcontext(
> /usr/lib/python3/dist-packages/paste/deploy/loadwsgi.py:295: in loadcontext
> return _loaders[scheme](
> /usr/lib/python3/dist-packages/paste/deploy/loadwsgi.py:326: in _loadconfig
> return loader.get_context(object_type, name, global_conf)
> /usr/lib/python3/dist-packages/paste/deploy/loadwsgi.py:461: in get_context
> context = self._context_from_use(
> /usr/lib/python3/dist-packages/paste/deploy/loadwsgi.py:488: in
> _context_from_use
> context = self.get_context(object_type, name=use, global_conf=global_conf)
> /usr/lib/python3/dist-packages/paste/deploy/loadwsgi.py:403: in get_context
> return loadcontext(
> /usr/lib/python3/dist-packages/paste/deploy/loadwsgi.py:295: in loadcontext
> return _loaders[scheme](
> /usr/lib/python3/dist-packages/paste/deploy/loadwsgi.py:334: in _loadegg
> return loader.get_context(object_type, name, global_conf)
> /usr/lib/python3/dist-packages/paste/deploy/loadwsgi.py:638: in get_context
> entry_point, protocol, ep_name = self.find_egg_entry_point(
> /usr/lib/python3/dist-packages/paste/deploy/loadwsgi.py:658: in
> find_egg_entry_point
> dist = importlib_metadata.distribution(self.spec)
> /usr/lib/python3.11/importlib/metadata/__init__.py:981: in distribution
> return Distribution.from_name(distribution_name)
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> _
>
> cls = <class 'importlib.metadata.Distribution'>, name = 'FakeApp'
>
> @classmethod
> def from_name(cls, name: str):
> """Return the Distribution for the given package name.
>
> :param name: The name of the distribution package to search for.
> :return: The Distribution instance (or subclass thereof) for the named
> package, if found.
> :raises PackageNotFoundError: When the named package's distribution
> metadata cannot be found.
> :raises ValueError: When an invalid value is supplied for name.
> """
> if not name:
> raise ValueError("A distribution name is required.")
> try:
> return next(cls.discover(name=name))
> except StopIteration:
> > raise PackageNotFoundError(name)
> E importlib.metadata.PackageNotFoundError: No package metadata was
> found for FakeApp
>
> /usr/lib/python3.11/importlib/metadata/__init__.py:565: PackageNotFoundError
> ______ TestRelativeSchemeAndSectionedURI.test_get_wsgi_app_with_relative
> _______
>
> cls = <class 'importlib.metadata.Distribution'>, name = 'FakeApp'
>
> @classmethod
> def from_name(cls, name: str):
> """Return the Distribution for the given package name.
>
> :param name: The name of the distribution package to search for.
> :return: The Distribution instance (or subclass thereof) for the named
> package, if found.
> :raises PackageNotFoundError: When the named package's distribution
> metadata cannot be found.
> :raises ValueError: When an invalid value is supplied for name.
> """
> if not name:
> raise ValueError("A distribution name is required.")
> try:
> > return next(cls.discover(name=name))
> E StopIteration
>
> /usr/lib/python3.11/importlib/metadata/__init__.py:563: StopIteration
>
> During handling of the above exception, another exception occurred:
>
> self = <tests.test_get_wsgi_app.TestRelativeSchemeAndSectionedURI object at
> 0x7fe4ebbbb310>
>
> def test_get_wsgi_app_with_relative(self):
> import fakeapp.apps
> > app = self.loader.get_wsgi_app()
>
> /<<PKGBUILDDIR>>/tests/test_get_wsgi_app.py:21:
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> _
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11/build/plaster_pastedeploy/__init__.py:128:
> in get_wsgi_app
> return loadapp(self.pastedeploy_spec,
> /usr/lib/python3/dist-packages/paste/deploy/loadwsgi.py:248: in loadapp
> return loadobj(APP, uri, name=name, **kw)
> /usr/lib/python3/dist-packages/paste/deploy/loadwsgi.py:270: in loadobj
> context = loadcontext(
> /usr/lib/python3/dist-packages/paste/deploy/loadwsgi.py:295: in loadcontext
> return _loaders[scheme](
> /usr/lib/python3/dist-packages/paste/deploy/loadwsgi.py:326: in _loadconfig
> return loader.get_context(object_type, name, global_conf)
> /usr/lib/python3/dist-packages/paste/deploy/loadwsgi.py:461: in get_context
> context = self._context_from_use(
> /usr/lib/python3/dist-packages/paste/deploy/loadwsgi.py:488: in
> _context_from_use
> context = self.get_context(object_type, name=use, global_conf=global_conf)
> /usr/lib/python3/dist-packages/paste/deploy/loadwsgi.py:403: in get_context
> return loadcontext(
> /usr/lib/python3/dist-packages/paste/deploy/loadwsgi.py:295: in loadcontext
> return _loaders[scheme](
> /usr/lib/python3/dist-packages/paste/deploy/loadwsgi.py:334: in _loadegg
> return loader.get_context(object_type, name, global_conf)
> /usr/lib/python3/dist-packages/paste/deploy/loadwsgi.py:638: in get_context
> entry_point, protocol, ep_name = self.find_egg_entry_point(
> /usr/lib/python3/dist-packages/paste/deploy/loadwsgi.py:658: in
> find_egg_entry_point
> dist = importlib_metadata.distribution(self.spec)
> /usr/lib/python3.11/importlib/metadata/__init__.py:981: in distribution
> return Distribution.from_name(distribution_name)
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> _
>
> cls = <class 'importlib.metadata.Distribution'>, name = 'FakeApp'
>
> @classmethod
> def from_name(cls, name: str):
> """Return the Distribution for the given package name.
>
> :param name: The name of the distribution package to search for.
> :return: The Distribution instance (or subclass thereof) for the named
> package, if found.
> :raises PackageNotFoundError: When the named package's distribution
> metadata cannot be found.
> :raises ValueError: When an invalid value is supplied for name.
> """
> if not name:
> raise ValueError("A distribution name is required.")
> try:
> return next(cls.discover(name=name))
> except StopIteration:
> > raise PackageNotFoundError(name)
> E importlib.metadata.PackageNotFoundError: No package metadata was
> found for FakeApp
>
> /usr/lib/python3.11/importlib/metadata/__init__.py:565: PackageNotFoundError
> ___________ TestRelativeSchemeAndSectionedURI.test_get_wsgi_app_main
> ___________
>
> cls = <class 'importlib.metadata.Distribution'>, name = 'FakeApp'
>
> @classmethod
> def from_name(cls, name: str):
> """Return the Distribution for the given package name.
>
> :param name: The name of the distribution package to search for.
> :return: The Distribution instance (or subclass thereof) for the named
> package, if found.
> :raises PackageNotFoundError: When the named package's distribution
> metadata cannot be found.
> :raises ValueError: When an invalid value is supplied for name.
> """
> if not name:
> raise ValueError("A distribution name is required.")
> try:
> > return next(cls.discover(name=name))
> E StopIteration
>
> /usr/lib/python3.11/importlib/metadata/__init__.py:563: StopIteration
>
> During handling of the above exception, another exception occurred:
>
> self = <tests.test_get_wsgi_app.TestRelativeSchemeAndSectionedURI object at
> 0x7fe4ebc1f4d0>
>
> def test_get_wsgi_app_main(self):
> import fakeapp.apps
> > app = self.loader.get_wsgi_app('main')
>
> /<<PKGBUILDDIR>>/tests/test_get_wsgi_app.py:26:
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> _
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11/build/plaster_pastedeploy/__init__.py:128:
> in get_wsgi_app
> return loadapp(self.pastedeploy_spec,
> /usr/lib/python3/dist-packages/paste/deploy/loadwsgi.py:248: in loadapp
> return loadobj(APP, uri, name=name, **kw)
> /usr/lib/python3/dist-packages/paste/deploy/loadwsgi.py:270: in loadobj
> context = loadcontext(
> /usr/lib/python3/dist-packages/paste/deploy/loadwsgi.py:295: in loadcontext
> return _loaders[scheme](
> /usr/lib/python3/dist-packages/paste/deploy/loadwsgi.py:326: in _loadconfig
> return loader.get_context(object_type, name, global_conf)
> /usr/lib/python3/dist-packages/paste/deploy/loadwsgi.py:461: in get_context
> context = self._context_from_use(
> /usr/lib/python3/dist-packages/paste/deploy/loadwsgi.py:488: in
> _context_from_use
> context = self.get_context(object_type, name=use, global_conf=global_conf)
> /usr/lib/python3/dist-packages/paste/deploy/loadwsgi.py:403: in get_context
> return loadcontext(
> /usr/lib/python3/dist-packages/paste/deploy/loadwsgi.py:295: in loadcontext
> return _loaders[scheme](
> /usr/lib/python3/dist-packages/paste/deploy/loadwsgi.py:334: in _loadegg
> return loader.get_context(object_type, name, global_conf)
> /usr/lib/python3/dist-packages/paste/deploy/loadwsgi.py:638: in get_context
> entry_point, protocol, ep_name = self.find_egg_entry_point(
> /usr/lib/python3/dist-packages/paste/deploy/loadwsgi.py:658: in
> find_egg_entry_point
> dist = importlib_metadata.distribution(self.spec)
> /usr/lib/python3.11/importlib/metadata/__init__.py:981: in distribution
> return Distribution.from_name(distribution_name)
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> _
>
> cls = <class 'importlib.metadata.Distribution'>, name = 'FakeApp'
>
> @classmethod
> def from_name(cls, name: str):
> """Return the Distribution for the given package name.
>
> :param name: The name of the distribution package to search for.
> :return: The Distribution instance (or subclass thereof) for the named
> package, if found.
> :raises PackageNotFoundError: When the named package's distribution
> metadata cannot be found.
> :raises ValueError: When an invalid value is supplied for name.
> """
> if not name:
> raise ValueError("A distribution name is required.")
> try:
> return next(cls.discover(name=name))
> except StopIteration:
> > raise PackageNotFoundError(name)
> E importlib.metadata.PackageNotFoundError: No package metadata was
> found for FakeApp
>
> /usr/lib/python3.11/importlib/metadata/__init__.py:565: PackageNotFoundError
> ______________________________ TestEggURI.test_it
> ______________________________
>
> cls = <class 'importlib.metadata.Distribution'>, name = 'FakeApp'
>
> @classmethod
> def from_name(cls, name: str):
> """Return the Distribution for the given package name.
>
> :param name: The name of the distribution package to search for.
> :return: The Distribution instance (or subclass thereof) for the named
> package, if found.
> :raises PackageNotFoundError: When the named package's distribution
> metadata cannot be found.
> :raises ValueError: When an invalid value is supplied for name.
> """
> if not name:
> raise ValueError("A distribution name is required.")
> try:
> > return next(cls.discover(name=name))
> E StopIteration
>
> /usr/lib/python3.11/importlib/metadata/__init__.py:563: StopIteration
>
> During handling of the above exception, another exception occurred:
>
> self = <tests.test_get_wsgi_app.TestEggURI object at 0x7fe4ebbbbe10>
>
> def test_it(self):
> import fakeapp.apps
> > app = self.loader.get_wsgi_app()
>
> tests/test_get_wsgi_app.py:67:
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> _
> .pybuild/cpython3_3.11/build/plaster_pastedeploy/__init__.py:128: in
> get_wsgi_app
> return loadapp(self.pastedeploy_spec,
> /usr/lib/python3/dist-packages/paste/deploy/loadwsgi.py:248: in loadapp
> return loadobj(APP, uri, name=name, **kw)
> /usr/lib/python3/dist-packages/paste/deploy/loadwsgi.py:270: in loadobj
> context = loadcontext(
> /usr/lib/python3/dist-packages/paste/deploy/loadwsgi.py:295: in loadcontext
> return _loaders[scheme](
> /usr/lib/python3/dist-packages/paste/deploy/loadwsgi.py:334: in _loadegg
> return loader.get_context(object_type, name, global_conf)
> /usr/lib/python3/dist-packages/paste/deploy/loadwsgi.py:638: in get_context
> entry_point, protocol, ep_name = self.find_egg_entry_point(
> /usr/lib/python3/dist-packages/paste/deploy/loadwsgi.py:658: in
> find_egg_entry_point
> dist = importlib_metadata.distribution(self.spec)
> /usr/lib/python3.11/importlib/metadata/__init__.py:981: in distribution
> return Distribution.from_name(distribution_name)
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> _
>
> cls = <class 'importlib.metadata.Distribution'>, name = 'FakeApp'
>
> @classmethod
> def from_name(cls, name: str):
> """Return the Distribution for the given package name.
>
> :param name: The name of the distribution package to search for.
> :return: The Distribution instance (or subclass thereof) for the named
> package, if found.
> :raises PackageNotFoundError: When the named package's distribution
> metadata cannot be found.
> :raises ValueError: When an invalid value is supplied for name.
> """
> if not name:
> raise ValueError("A distribution name is required.")
> try:
> return next(cls.discover(name=name))
> except StopIteration:
> > raise PackageNotFoundError(name)
> E importlib.metadata.PackageNotFoundError: No package metadata was
> found for FakeApp
>
> /usr/lib/python3.11/importlib/metadata/__init__.py:565: PackageNotFoundError
> _______________________ TestEggURI.test_it_override_name
> _______________________
>
> cls = <class 'importlib.metadata.Distribution'>, name = 'FakeApp'
>
> @classmethod
> def from_name(cls, name: str):
> """Return the Distribution for the given package name.
>
> :param name: The name of the distribution package to search for.
> :return: The Distribution instance (or subclass thereof) for the named
> package, if found.
> :raises PackageNotFoundError: When the named package's distribution
> metadata cannot be found.
> :raises ValueError: When an invalid value is supplied for name.
> """
> if not name:
> raise ValueError("A distribution name is required.")
> try:
> > return next(cls.discover(name=name))
> E StopIteration
>
> /usr/lib/python3.11/importlib/metadata/__init__.py:563: StopIteration
>
> During handling of the above exception, another exception occurred:
>
> self = <tests.test_get_wsgi_app.TestEggURI object at 0x7fe4ebbbb810>
>
> def test_it_override_name(self):
> import fakeapp.configapps
> > app = self.loader.get_wsgi_app('configed')
>
> tests/test_get_wsgi_app.py:72:
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> _
> .pybuild/cpython3_3.11/build/plaster_pastedeploy/__init__.py:128: in
> get_wsgi_app
> return loadapp(self.pastedeploy_spec,
> /usr/lib/python3/dist-packages/paste/deploy/loadwsgi.py:248: in loadapp
> return loadobj(APP, uri, name=name, **kw)
> /usr/lib/python3/dist-packages/paste/deploy/loadwsgi.py:270: in loadobj
> context = loadcontext(
> /usr/lib/python3/dist-packages/paste/deploy/loadwsgi.py:295: in loadcontext
> return _loaders[scheme](
> /usr/lib/python3/dist-packages/paste/deploy/loadwsgi.py:334: in _loadegg
> return loader.get_context(object_type, name, global_conf)
> /usr/lib/python3/dist-packages/paste/deploy/loadwsgi.py:638: in get_context
> entry_point, protocol, ep_name = self.find_egg_entry_point(
> /usr/lib/python3/dist-packages/paste/deploy/loadwsgi.py:658: in
> find_egg_entry_point
> dist = importlib_metadata.distribution(self.spec)
> /usr/lib/python3.11/importlib/metadata/__init__.py:981: in distribution
> return Distribution.from_name(distribution_name)
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> _
>
> cls = <class 'importlib.metadata.Distribution'>, name = 'FakeApp'
>
> @classmethod
> def from_name(cls, name: str):
> """Return the Distribution for the given package name.
>
> :param name: The name of the distribution package to search for.
> :return: The Distribution instance (or subclass thereof) for the named
> package, if found.
> :raises PackageNotFoundError: When the named package's distribution
> metadata cannot be found.
> :raises ValueError: When an invalid value is supplied for name.
> """
> if not name:
> raise ValueError("A distribution name is required.")
> try:
> return next(cls.discover(name=name))
> except StopIteration:
> > raise PackageNotFoundError(name)
> E importlib.metadata.PackageNotFoundError: No package metadata was
> found for FakeApp
>
> /usr/lib/python3.11/importlib/metadata/__init__.py:565: PackageNotFoundError
> _________________________ TestEggURI.test_invalid_name
> _________________________
>
> cls = <class 'importlib.metadata.Distribution'>, name = 'FakeApp'
>
> @classmethod
> def from_name(cls, name: str):
> """Return the Distribution for the given package name.
>
> :param name: The name of the distribution package to search for.
> :return: The Distribution instance (or subclass thereof) for the named
> package, if found.
> :raises PackageNotFoundError: When the named package's distribution
> metadata cannot be found.
> :raises ValueError: When an invalid value is supplied for name.
> """
> if not name:
> raise ValueError("A distribution name is required.")
> try:
> > return next(cls.discover(name=name))
> E StopIteration
>
> /usr/lib/python3.11/importlib/metadata/__init__.py:563: StopIteration
>
> During handling of the above exception, another exception occurred:
>
> self = <tests.test_get_wsgi_app.TestEggURI object at 0x7fe4ebc34790>
>
> def test_invalid_name(self):
> with pytest.raises(LookupError):
> > self.loader.get_wsgi_app('invalid')
>
> tests/test_get_wsgi_app.py:77:
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> _
> .pybuild/cpython3_3.11/build/plaster_pastedeploy/__init__.py:128: in
> get_wsgi_app
> return loadapp(self.pastedeploy_spec,
> /usr/lib/python3/dist-packages/paste/deploy/loadwsgi.py:248: in loadapp
> return loadobj(APP, uri, name=name, **kw)
> /usr/lib/python3/dist-packages/paste/deploy/loadwsgi.py:270: in loadobj
> context = loadcontext(
> /usr/lib/python3/dist-packages/paste/deploy/loadwsgi.py:295: in loadcontext
> return _loaders[scheme](
> /usr/lib/python3/dist-packages/paste/deploy/loadwsgi.py:334: in _loadegg
> return loader.get_context(object_type, name, global_conf)
> /usr/lib/python3/dist-packages/paste/deploy/loadwsgi.py:638: in get_context
> entry_point, protocol, ep_name = self.find_egg_entry_point(
> /usr/lib/python3/dist-packages/paste/deploy/loadwsgi.py:658: in
> find_egg_entry_point
> dist = importlib_metadata.distribution(self.spec)
> /usr/lib/python3.11/importlib/metadata/__init__.py:981: in distribution
> return Distribution.from_name(distribution_name)
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> _
>
> cls = <class 'importlib.metadata.Distribution'>, name = 'FakeApp'
>
> @classmethod
> def from_name(cls, name: str):
> """Return the Distribution for the given package name.
>
> :param name: The name of the distribution package to search for.
> :return: The Distribution instance (or subclass thereof) for the named
> package, if found.
> :raises PackageNotFoundError: When the named package's distribution
> metadata cannot be found.
> :raises ValueError: When an invalid value is supplied for name.
> """
> if not name:
> raise ValueError("A distribution name is required.")
> try:
> return next(cls.discover(name=name))
> except StopIteration:
> > raise PackageNotFoundError(name)
> E importlib.metadata.PackageNotFoundError: No package metadata was
> found for FakeApp
>
> /usr/lib/python3.11/importlib/metadata/__init__.py:565: PackageNotFoundError
> ____________________ TestFullURI.test_get_wsgi_app_settings
> ____________________
>
> cls = <class 'importlib.metadata.Distribution'>, name = 'FakeApp'
>
> @classmethod
> def from_name(cls, name: str):
> """Return the Distribution for the given package name.
>
> :param name: The name of the distribution package to search for.
> :return: The Distribution instance (or subclass thereof) for the named
> package, if found.
> :raises PackageNotFoundError: When the named package's distribution
> metadata cannot be found.
> :raises ValueError: When an invalid value is supplied for name.
> """
> if not name:
> raise ValueError("A distribution name is required.")
> try:
> > return next(cls.discover(name=name))
> E StopIteration
>
> /usr/lib/python3.11/importlib/metadata/__init__.py:563: StopIteration
>
> During handling of the above exception, another exception occurred:
>
> self = <tests.test_get_wsgi_app_settings.TestFullURI object at 0x7fe4ebbfd010>
>
> def test_get_wsgi_app_settings(self):
> > result = self.loader.get_wsgi_app_settings('test_get')
>
> /<<PKGBUILDDIR>>/tests/test_get_wsgi_app_settings.py:18:
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> _
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11/build/plaster_pastedeploy/__init__.py:197:
> in get_wsgi_app_settings
> conf = appconfig(
> /usr/lib/python3/dist-packages/paste/deploy/loadwsgi.py:260: in appconfig
> context = loadcontext(
> /usr/lib/python3/dist-packages/paste/deploy/loadwsgi.py:295: in loadcontext
> return _loaders[scheme](
> /usr/lib/python3/dist-packages/paste/deploy/loadwsgi.py:326: in _loadconfig
> return loader.get_context(object_type, name, global_conf)
> /usr/lib/python3/dist-packages/paste/deploy/loadwsgi.py:461: in get_context
> context = self._context_from_use(
> /usr/lib/python3/dist-packages/paste/deploy/loadwsgi.py:488: in
> _context_from_use
> context = self.get_context(object_type, name=use, global_conf=global_conf)
> /usr/lib/python3/dist-packages/paste/deploy/loadwsgi.py:403: in get_context
> return loadcontext(
> /usr/lib/python3/dist-packages/paste/deploy/loadwsgi.py:295: in loadcontext
> return _loaders[scheme](
> /usr/lib/python3/dist-packages/paste/deploy/loadwsgi.py:334: in _loadegg
> return loader.get_context(object_type, name, global_conf)
> /usr/lib/python3/dist-packages/paste/deploy/loadwsgi.py:638: in get_context
> entry_point, protocol, ep_name = self.find_egg_entry_point(
> /usr/lib/python3/dist-packages/paste/deploy/loadwsgi.py:658: in
> find_egg_entry_point
> dist = importlib_metadata.distribution(self.spec)
> /usr/lib/python3.11/importlib/metadata/__init__.py:981: in distribution
> return Distribution.from_name(distribution_name)
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> _
>
> cls = <class 'importlib.metadata.Distribution'>, name = 'FakeApp'
>
> @classmethod
> def from_name(cls, name: str):
> """Return the Distribution for the given package name.
>
> :param name: The name of the distribution package to search for.
> :return: The Distribution instance (or subclass thereof) for the named
> package, if found.
> :raises PackageNotFoundError: When the named package's distribution
> metadata cannot be found.
> :raises ValueError: When an invalid value is supplied for name.
> """
> if not name:
> raise ValueError("A distribution name is required.")
> try:
> return next(cls.discover(name=name))
> except StopIteration:
> > raise PackageNotFoundError(name)
> E importlib.metadata.PackageNotFoundError: No package metadata was
> found for FakeApp
>
> /usr/lib/python3.11/importlib/metadata/__init__.py:565: PackageNotFoundError
> ___________________ TestSimpleURI.test_get_wsgi_app_settings
> ___________________
>
> cls = <class 'importlib.metadata.Distribution'>, name = 'FakeApp'
>
> @classmethod
> def from_name(cls, name: str):
> """Return the Distribution for the given package name.
>
> :param name: The name of the distribution package to search for.
> :return: The Distribution instance (or subclass thereof) for the named
> package, if found.
> :raises PackageNotFoundError: When the named package's distribution
> metadata cannot be found.
> :raises ValueError: When an invalid value is supplied for name.
> """
> if not name:
> raise ValueError("A distribution name is required.")
> try:
> > return next(cls.discover(name=name))
> E StopIteration
>
> /usr/lib/python3.11/importlib/metadata/__init__.py:563: StopIteration
>
> During handling of the above exception, another exception occurred:
>
> self = <tests.test_get_wsgi_app_settings.TestSimpleURI object at
> 0x7fe4ebbfe490>
>
> def test_get_wsgi_app_settings(self):
> > conf = self.loader.get_wsgi_app_settings()
>
> /<<PKGBUILDDIR>>/tests/test_get_wsgi_app_settings.py:46:
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> _
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11/build/plaster_pastedeploy/__init__.py:197:
> in get_wsgi_app_settings
> conf = appconfig(
> /usr/lib/python3/dist-packages/paste/deploy/loadwsgi.py:260: in appconfig
> context = loadcontext(
> /usr/lib/python3/dist-packages/paste/deploy/loadwsgi.py:295: in loadcontext
> return _loaders[scheme](
> /usr/lib/python3/dist-packages/paste/deploy/loadwsgi.py:326: in _loadconfig
> return loader.get_context(object_type, name, global_conf)
> /usr/lib/python3/dist-packages/paste/deploy/loadwsgi.py:461: in get_context
> context = self._context_from_use(
> /usr/lib/python3/dist-packages/paste/deploy/loadwsgi.py:488: in
> _context_from_use
> context = self.get_context(object_type, name=use, global_conf=global_conf)
> /usr/lib/python3/dist-packages/paste/deploy/loadwsgi.py:403: in get_context
> return loadcontext(
> /usr/lib/python3/dist-packages/paste/deploy/loadwsgi.py:295: in loadcontext
> return _loaders[scheme](
> /usr/lib/python3/dist-packages/paste/deploy/loadwsgi.py:334: in _loadegg
> return loader.get_context(object_type, name, global_conf)
> /usr/lib/python3/dist-packages/paste/deploy/loadwsgi.py:638: in get_context
> entry_point, protocol, ep_name = self.find_egg_entry_point(
> /usr/lib/python3/dist-packages/paste/deploy/loadwsgi.py:658: in
> find_egg_entry_point
> dist = importlib_metadata.distribution(self.spec)
> /usr/lib/python3.11/importlib/metadata/__init__.py:981: in distribution
> return Distribution.from_name(distribution_name)
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> _
>
> cls = <class 'importlib.metadata.Distribution'>, name = 'FakeApp'
>
> @classmethod
> def from_name(cls, name: str):
> """Return the Distribution for the given package name.
>
> :param name: The name of the distribution package to search for.
> :return: The Distribution instance (or subclass thereof) for the named
> package, if found.
> :raises PackageNotFoundError: When the named package's distribution
> metadata cannot be found.
> :raises ValueError: When an invalid value is supplied for name.
> """
> if not name:
> raise ValueError("A distribution name is required.")
> try:
> return next(cls.discover(name=name))
> except StopIteration:
> > raise PackageNotFoundError(name)
> E importlib.metadata.PackageNotFoundError: No package metadata was
> found for FakeApp
>
> /usr/lib/python3.11/importlib/metadata/__init__.py:565: PackageNotFoundError
> ______________________________ TestEggURI.test_it
> ______________________________
>
> cls = <class 'importlib.metadata.Distribution'>, name = 'FakeApp'
>
> @classmethod
> def from_name(cls, name: str):
> """Return the Distribution for the given package name.
>
> :param name: The name of the distribution package to search for.
> :return: The Distribution instance (or subclass thereof) for the named
> package, if found.
> :raises PackageNotFoundError: When the named package's distribution
> metadata cannot be found.
> :raises ValueError: When an invalid value is supplied for name.
> """
> if not name:
> raise ValueError("A distribution name is required.")
> try:
> > return next(cls.discover(name=name))
> E StopIteration
>
> /usr/lib/python3.11/importlib/metadata/__init__.py:563: StopIteration
>
> During handling of the above exception, another exception occurred:
>
> self = <tests.test_get_wsgi_app_settings.TestEggURI object at 0x7fe4ebbff3d0>
>
> def test_it(self):
> > conf = self.loader.get_wsgi_app_settings()
>
> tests/test_get_wsgi_app_settings.py:58:
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> _
> .pybuild/cpython3_3.11/build/plaster_pastedeploy/__init__.py:197: in
> get_wsgi_app_settings
> conf = appconfig(
> /usr/lib/python3/dist-packages/paste/deploy/loadwsgi.py:260: in appconfig
> context = loadcontext(
> /usr/lib/python3/dist-packages/paste/deploy/loadwsgi.py:295: in loadcontext
> return _loaders[scheme](
> /usr/lib/python3/dist-packages/paste/deploy/loadwsgi.py:334: in _loadegg
> return loader.get_context(object_type, name, global_conf)
> /usr/lib/python3/dist-packages/paste/deploy/loadwsgi.py:638: in get_context
> entry_point, protocol, ep_name = self.find_egg_entry_point(
> /usr/lib/python3/dist-packages/paste/deploy/loadwsgi.py:658: in
> find_egg_entry_point
> dist = importlib_metadata.distribution(self.spec)
> /usr/lib/python3.11/importlib/metadata/__init__.py:981: in distribution
> return Distribution.from_name(distribution_name)
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> _
>
> cls = <class 'importlib.metadata.Distribution'>, name = 'FakeApp'
>
> @classmethod
> def from_name(cls, name: str):
> """Return the Distribution for the given package name.
>
> :param name: The name of the distribution package to search for.
> :return: The Distribution instance (or subclass thereof) for the named
> package, if found.
> :raises PackageNotFoundError: When the named package's distribution
> metadata cannot be found.
> :raises ValueError: When an invalid value is supplied for name.
> """
> if not name:
> raise ValueError("A distribution name is required.")
> try:
> return next(cls.discover(name=name))
> except StopIteration:
> > raise PackageNotFoundError(name)
> E importlib.metadata.PackageNotFoundError: No package metadata was
> found for FakeApp
>
> /usr/lib/python3.11/importlib/metadata/__init__.py:565: PackageNotFoundError
> _________________________ TestEggURI.test_invalid_name
> _________________________
>
> cls = <class 'importlib.metadata.Distribution'>, name = 'FakeApp'
>
> @classmethod
> def from_name(cls, name: str):
> """Return the Distribution for the given package name.
>
> :param name: The name of the distribution package to search for.
> :return: The Distribution instance (or subclass thereof) for the named
> package, if found.
> :raises PackageNotFoundError: When the named package's distribution
> metadata cannot be found.
> :raises ValueError: When an invalid value is supplied for name.
> """
> if not name:
> raise ValueError("A distribution name is required.")
> try:
> > return next(cls.discover(name=name))
> E StopIteration
>
> /usr/lib/python3.11/importlib/metadata/__init__.py:563: StopIteration
>
> During handling of the above exception, another exception occurred:
>
> self = <tests.test_get_wsgi_app_settings.TestEggURI object at 0x7fe4ebbff710>
>
> def test_invalid_name(self):
> with pytest.raises(LookupError):
> > self.loader.get_wsgi_app_settings('invalid')
>
> tests/test_get_wsgi_app_settings.py:63:
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> _
> .pybuild/cpython3_3.11/build/plaster_pastedeploy/__init__.py:197: in
> get_wsgi_app_settings
> conf = appconfig(
> /usr/lib/python3/dist-packages/paste/deploy/loadwsgi.py:260: in appconfig
> context = loadcontext(
> /usr/lib/python3/dist-packages/paste/deploy/loadwsgi.py:295: in loadcontext
> return _loaders[scheme](
> /usr/lib/python3/dist-packages/paste/deploy/loadwsgi.py:334: in _loadegg
> return loader.get_context(object_type, name, global_conf)
> /usr/lib/python3/dist-packages/paste/deploy/loadwsgi.py:638: in get_context
> entry_point, protocol, ep_name = self.find_egg_entry_point(
> /usr/lib/python3/dist-packages/paste/deploy/loadwsgi.py:658: in
> find_egg_entry_point
> dist = importlib_metadata.distribution(self.spec)
> /usr/lib/python3.11/importlib/metadata/__init__.py:981: in distribution
> return Distribution.from_name(distribution_name)
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> _
>
> cls = <class 'importlib.metadata.Distribution'>, name = 'FakeApp'
>
> @classmethod
> def from_name(cls, name: str):
> """Return the Distribution for the given package name.
>
> :param name: The name of the distribution package to search for.
> :return: The Distribution instance (or subclass thereof) for the named
> package, if found.
> :raises PackageNotFoundError: When the named package's distribution
> metadata cannot be found.
> :raises ValueError: When an invalid value is supplied for name.
> """
> if not name:
> raise ValueError("A distribution name is required.")
> try:
> return next(cls.discover(name=name))
> except StopIteration:
> > raise PackageNotFoundError(name)
> E importlib.metadata.PackageNotFoundError: No package metadata was
> found for FakeApp
>
> /usr/lib/python3.11/importlib/metadata/__init__.py:565: PackageNotFoundError
> ______________________ TestSimpleURI.test_get_wsgi_filter
> ______________________
>
> cls = <class 'importlib.metadata.Distribution'>, name = 'FakeApp'
>
> @classmethod
> def from_name(cls, name: str):
> """Return the Distribution for the given package name.
>
> :param name: The name of the distribution package to search for.
> :return: The Distribution instance (or subclass thereof) for the named
> package, if found.
> :raises PackageNotFoundError: When the named package's distribution
> metadata cannot be found.
> :raises ValueError: When an invalid value is supplied for name.
> """
> if not name:
> raise ValueError("A distribution name is required.")
> try:
> > return next(cls.discover(name=name))
> E StopIteration
>
> /usr/lib/python3.11/importlib/metadata/__init__.py:563: StopIteration
>
> During handling of the above exception, another exception occurred:
>
> self = <tests.test_get_wsgi_filter.TestSimpleURI object at 0x7fe4ebbccd90>
>
> def test_get_wsgi_filter(self):
> import fakeapp.apps
> > app_filter_factory = self.loader.get_wsgi_filter('filt')
>
> /<<PKGBUILDDIR>>/tests/test_get_wsgi_filter.py:20:
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> _
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11/build/plaster_pastedeploy/__init__.py:168:
> in get_wsgi_filter
> return loadfilter(self.pastedeploy_spec,
> /usr/lib/python3/dist-packages/paste/deploy/loadwsgi.py:252: in loadfilter
> return loadobj(FILTER, uri, name=name, **kw)
> /usr/lib/python3/dist-packages/paste/deploy/loadwsgi.py:270: in loadobj
> context = loadcontext(
> /usr/lib/python3/dist-packages/paste/deploy/loadwsgi.py:295: in loadcontext
> return _loaders[scheme](
> /usr/lib/python3/dist-packages/paste/deploy/loadwsgi.py:326: in _loadconfig
> return loader.get_context(object_type, name, global_conf)
> /usr/lib/python3/dist-packages/paste/deploy/loadwsgi.py:461: in get_context
> context = self._context_from_use(
> /usr/lib/python3/dist-packages/paste/deploy/loadwsgi.py:488: in
> _context_from_use
> context = self.get_context(object_type, name=use, global_conf=global_conf)
> /usr/lib/python3/dist-packages/paste/deploy/loadwsgi.py:403: in get_context
> return loadcontext(
> /usr/lib/python3/dist-packages/paste/deploy/loadwsgi.py:295: in loadcontext
> return _loaders[scheme](
> /usr/lib/python3/dist-packages/paste/deploy/loadwsgi.py:334: in _loadegg
> return loader.get_context(object_type, name, global_conf)
> /usr/lib/python3/dist-packages/paste/deploy/loadwsgi.py:638: in get_context
> entry_point, protocol, ep_name = self.find_egg_entry_point(
> /usr/lib/python3/dist-packages/paste/deploy/loadwsgi.py:658: in
> find_egg_entry_point
> dist = importlib_metadata.distribution(self.spec)
> /usr/lib/python3.11/importlib/metadata/__init__.py:981: in distribution
> return Distribution.from_name(distribution_name)
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> _
>
> cls = <class 'importlib.metadata.Distribution'>, name = 'FakeApp'
>
> @classmethod
> def from_name(cls, name: str):
> """Return the Distribution for the given package name.
>
> :param name: The name of the distribution package to search for.
> :return: The Distribution instance (or subclass thereof) for the named
> package, if found.
> :raises PackageNotFoundError: When the named package's distribution
> metadata cannot be found.
> :raises ValueError: When an invalid value is supplied for name.
> """
> if not name:
> raise ValueError("A distribution name is required.")
> try:
> return next(cls.discover(name=name))
> except StopIteration:
> > raise PackageNotFoundError(name)
> E importlib.metadata.PackageNotFoundError: No package metadata was
> found for FakeApp
>
> /usr/lib/python3.11/importlib/metadata/__init__.py:565: PackageNotFoundError
> ____________________ TestSectionedURI.test_get_wsgi_filter
> _____________________
>
> cls = <class 'importlib.metadata.Distribution'>, name = 'FakeApp'
>
> @classmethod
> def from_name(cls, name: str):
> """Return the Distribution for the given package name.
>
> :param name: The name of the distribution package to search for.
> :return: The Distribution instance (or subclass thereof) for the named
> package, if found.
> :raises PackageNotFoundError: When the named package's distribution
> metadata cannot be found.
> :raises ValueError: When an invalid value is supplied for name.
> """
> if not name:
> raise ValueError("A distribution name is required.")
> try:
> > return next(cls.discover(name=name))
> E StopIteration
>
> /usr/lib/python3.11/importlib/metadata/__init__.py:563: StopIteration
>
> During handling of the above exception, another exception occurred:
>
> self = <tests.test_get_wsgi_filter.TestSectionedURI object at 0x7fe4ebbcd150>
>
> def test_get_wsgi_filter(self):
> import fakeapp.apps
> > app_filter_factory = self.loader.get_wsgi_filter()
>
> /<<PKGBUILDDIR>>/tests/test_get_wsgi_filter.py:41:
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> _
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11/build/plaster_pastedeploy/__init__.py:168:
> in get_wsgi_filter
> return loadfilter(self.pastedeploy_spec,
> /usr/lib/python3/dist-packages/paste/deploy/loadwsgi.py:252: in loadfilter
> return loadobj(FILTER, uri, name=name, **kw)
> /usr/lib/python3/dist-packages/paste/deploy/loadwsgi.py:270: in loadobj
> context = loadcontext(
> /usr/lib/python3/dist-packages/paste/deploy/loadwsgi.py:295: in loadcontext
> return _loaders[scheme](
> /usr/lib/python3/dist-packages/paste/deploy/loadwsgi.py:326: in _loadconfig
> return loader.get_context(object_type, name, global_conf)
> /usr/lib/python3/dist-packages/paste/deploy/loadwsgi.py:461: in get_context
> context = self._context_from_use(
> /usr/lib/python3/dist-packages/paste/deploy/loadwsgi.py:488: in
> _context_from_use
> context = self.get_context(object_type, name=use, global_conf=global_conf)
> /usr/lib/python3/dist-packages/paste/deploy/loadwsgi.py:403: in get_context
> return loadcontext(
> /usr/lib/python3/dist-packages/paste/deploy/loadwsgi.py:295: in loadcontext
> return _loaders[scheme](
> /usr/lib/python3/dist-packages/paste/deploy/loadwsgi.py:334: in _loadegg
> return loader.get_context(object_type, name, global_conf)
> /usr/lib/python3/dist-packages/paste/deploy/loadwsgi.py:638: in get_context
> entry_point, protocol, ep_name = self.find_egg_entry_point(
> /usr/lib/python3/dist-packages/paste/deploy/loadwsgi.py:658: in
> find_egg_entry_point
> dist = importlib_metadata.distribution(self.spec)
> /usr/lib/python3.11/importlib/metadata/__init__.py:981: in distribution
> return Distribution.from_name(distribution_name)
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> _
>
> cls = <class 'importlib.metadata.Distribution'>, name = 'FakeApp'
>
> @classmethod
> def from_name(cls, name: str):
> """Return the Distribution for the given package name.
>
> :param name: The name of the distribution package to search for.
> :return: The Distribution instance (or subclass thereof) for the named
> package, if found.
> :raises PackageNotFoundError: When the named package's distribution
> metadata cannot be found.
> :raises ValueError: When an invalid value is supplied for name.
> """
> if not name:
> raise ValueError("A distribution name is required.")
> try:
> return next(cls.discover(name=name))
> except StopIteration:
> > raise PackageNotFoundError(name)
> E importlib.metadata.PackageNotFoundError: No package metadata was
> found for FakeApp
>
> /usr/lib/python3.11/importlib/metadata/__init__.py:565: PackageNotFoundError
> ________________ TestSchemeAndSectionedURI.test_get_wsgi_filter
> ________________
>
> cls = <class 'importlib.metadata.Distribution'>, name = 'FakeApp'
>
> @classmethod
> def from_name(cls, name: str):
> """Return the Distribution for the given package name.
>
> :param name: The name of the distribution package to search for.
> :return: The Distribution instance (or subclass thereof) for the named
> package, if found.
> :raises PackageNotFoundError: When the named package's distribution
> metadata cannot be found.
> :raises ValueError: When an invalid value is supplied for name.
> """
> if not name:
> raise ValueError("A distribution name is required.")
> try:
> > return next(cls.discover(name=name))
> E StopIteration
>
> /usr/lib/python3.11/importlib/metadata/__init__.py:563: StopIteration
>
> During handling of the above exception, another exception occurred:
>
> self = <tests.test_get_wsgi_filter.TestSchemeAndSectionedURI object at
> 0x7fe4ebbcf350>
>
> def test_get_wsgi_filter(self):
> import fakeapp.apps
> > app_filter_factory = self.loader.get_wsgi_filter()
>
> /<<PKGBUILDDIR>>/tests/test_get_wsgi_filter.py:41:
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> _
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11/build/plaster_pastedeploy/__init__.py:168:
> in get_wsgi_filter
> return loadfilter(self.pastedeploy_spec,
> /usr/lib/python3/dist-packages/paste/deploy/loadwsgi.py:252: in loadfilter
> return loadobj(FILTER, uri, name=name, **kw)
> /usr/lib/python3/dist-packages/paste/deploy/loadwsgi.py:270: in loadobj
> context = loadcontext(
> /usr/lib/python3/dist-packages/paste/deploy/loadwsgi.py:295: in loadcontext
> return _loaders[scheme](
> /usr/lib/python3/dist-packages/paste/deploy/loadwsgi.py:326: in _loadconfig
> return loader.get_context(object_type, name, global_conf)
> /usr/lib/python3/dist-packages/paste/deploy/loadwsgi.py:461: in get_context
> context = self._context_from_use(
> /usr/lib/python3/dist-packages/paste/deploy/loadwsgi.py:488: in
> _context_from_use
> context = self.get_context(object_type, name=use, global_conf=global_conf)
> /usr/lib/python3/dist-packages/paste/deploy/loadwsgi.py:403: in get_context
> return loadcontext(
> /usr/lib/python3/dist-packages/paste/deploy/loadwsgi.py:295: in loadcontext
> return _loaders[scheme](
> /usr/lib/python3/dist-packages/paste/deploy/loadwsgi.py:334: in _loadegg
> return loader.get_context(object_type, name, global_conf)
> /usr/lib/python3/dist-packages/paste/deploy/loadwsgi.py:638: in get_context
> entry_point, protocol, ep_name = self.find_egg_entry_point(
> /usr/lib/python3/dist-packages/paste/deploy/loadwsgi.py:658: in
> find_egg_entry_point
> dist = importlib_metadata.distribution(self.spec)
> /usr/lib/python3.11/importlib/metadata/__init__.py:981: in distribution
> return Distribution.from_name(distribution_name)
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> _
>
> cls = <class 'importlib.metadata.Distribution'>, name = 'FakeApp'
>
> @classmethod
> def from_name(cls, name: str):
> """Return the Distribution for the given package name.
>
> :param name: The name of the distribution package to search for.
> :return: The Distribution instance (or subclass thereof) for the named
> package, if found.
> :raises PackageNotFoundError: When the named package's distribution
> metadata cannot be found.
> :raises ValueError: When an invalid value is supplied for name.
> """
> if not name:
> raise ValueError("A distribution name is required.")
> try:
> return next(cls.discover(name=name))
> except StopIteration:
> > raise PackageNotFoundError(name)
> E importlib.metadata.PackageNotFoundError: No package metadata was
> found for FakeApp
>
> /usr/lib/python3.11/importlib/metadata/__init__.py:565: PackageNotFoundError
> ______________________________ TestEggURI.test_it
> ______________________________
>
> cls = <class 'importlib.metadata.Distribution'>, name = 'FakeApp'
>
> @classmethod
> def from_name(cls, name: str):
> """Return the Distribution for the given package name.
>
> :param name: The name of the distribution package to search for.
> :return: The Distribution instance (or subclass thereof) for the named
> package, if found.
> :raises PackageNotFoundError: When the named package's distribution
> metadata cannot be found.
> :raises ValueError: When an invalid value is supplied for name.
> """
> if not name:
> raise ValueError("A distribution name is required.")
> try:
> > return next(cls.discover(name=name))
> E StopIteration
>
> /usr/lib/python3.11/importlib/metadata/__init__.py:563: StopIteration
>
> During handling of the above exception, another exception occurred:
>
> self = <tests.test_get_wsgi_filter.TestEggURI object at 0x7fe4ebbce990>
>
> def test_it(self):
> import fakeapp.apps
> > filter = self.loader.get_wsgi_filter()
>
> tests/test_get_wsgi_filter.py:67:
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> _
> .pybuild/cpython3_3.11/build/plaster_pastedeploy/__init__.py:168: in
> get_wsgi_filter
> return loadfilter(self.pastedeploy_spec,
> /usr/lib/python3/dist-packages/paste/deploy/loadwsgi.py:252: in loadfilter
> return loadobj(FILTER, uri, name=name, **kw)
> /usr/lib/python3/dist-packages/paste/deploy/loadwsgi.py:270: in loadobj
> context = loadcontext(
> /usr/lib/python3/dist-packages/paste/deploy/loadwsgi.py:295: in loadcontext
> return _loaders[scheme](
> /usr/lib/python3/dist-packages/paste/deploy/loadwsgi.py:334: in _loadegg
> return loader.get_context(object_type, name, global_conf)
> /usr/lib/python3/dist-packages/paste/deploy/loadwsgi.py:638: in get_context
> entry_point, protocol, ep_name = self.find_egg_entry_point(
> /usr/lib/python3/dist-packages/paste/deploy/loadwsgi.py:658: in
> find_egg_entry_point
> dist = importlib_metadata.distribution(self.spec)
> /usr/lib/python3.11/importlib/metadata/__init__.py:981: in distribution
> return Distribution.from_name(distribution_name)
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> _
>
> cls = <class 'importlib.metadata.Distribution'>, name = 'FakeApp'
>
> @classmethod
> def from_name(cls, name: str):
> """Return the Distribution for the given package name.
>
> :param name: The name of the distribution package to search for.
> :return: The Distribution instance (or subclass thereof) for the named
> package, if found.
> :raises PackageNotFoundError: When the named package's distribution
> metadata cannot be found.
> :raises ValueError: When an invalid value is supplied for name.
> """
> if not name:
> raise ValueError("A distribution name is required.")
> try:
> return next(cls.discover(name=name))
> except StopIteration:
> > raise PackageNotFoundError(name)
> E importlib.metadata.PackageNotFoundError: No package metadata was
> found for FakeApp
>
> /usr/lib/python3.11/importlib/metadata/__init__.py:565: PackageNotFoundError
> _______________________ TestEggURI.test_it_override_name
> _______________________
>
> cls = <class 'importlib.metadata.Distribution'>, name = 'FakeApp'
>
> @classmethod
> def from_name(cls, name: str):
> """Return the Distribution for the given package name.
>
> :param name: The name of the distribution package to search for.
> :return: The Distribution instance (or subclass thereof) for the named
> package, if found.
> :raises PackageNotFoundError: When the named package's distribution
> metadata cannot be found.
> :raises ValueError: When an invalid value is supplied for name.
> """
> if not name:
> raise ValueError("A distribution name is required.")
> try:
> > return next(cls.discover(name=name))
> E StopIteration
>
> /usr/lib/python3.11/importlib/metadata/__init__.py:563: StopIteration
>
> During handling of the above exception, another exception occurred:
>
> self = <tests.test_get_wsgi_filter.TestEggURI object at 0x7fe4ebbcfe50>
>
> def test_it_override_name(self):
> import fakeapp.apps
> > filter = self.loader.get_wsgi_filter('caps')
>
> tests/test_get_wsgi_filter.py:73:
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> _
> .pybuild/cpython3_3.11/build/plaster_pastedeploy/__init__.py:168: in
> get_wsgi_filter
> return loadfilter(self.pastedeploy_spec,
> /usr/lib/python3/dist-packages/paste/deploy/loadwsgi.py:252: in loadfilter
> return loadobj(FILTER, uri, name=name, **kw)
> /usr/lib/python3/dist-packages/paste/deploy/loadwsgi.py:270: in loadobj
> context = loadcontext(
> /usr/lib/python3/dist-packages/paste/deploy/loadwsgi.py:295: in loadcontext
> return _loaders[scheme](
> /usr/lib/python3/dist-packages/paste/deploy/loadwsgi.py:334: in _loadegg
> return loader.get_context(object_type, name, global_conf)
> /usr/lib/python3/dist-packages/paste/deploy/loadwsgi.py:638: in get_context
> entry_point, protocol, ep_name = self.find_egg_entry_point(
> /usr/lib/python3/dist-packages/paste/deploy/loadwsgi.py:658: in
> find_egg_entry_point
> dist = importlib_metadata.distribution(self.spec)
> /usr/lib/python3.11/importlib/metadata/__init__.py:981: in distribution
> return Distribution.from_name(distribution_name)
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> _
>
> cls = <class 'importlib.metadata.Distribution'>, name = 'FakeApp'
>
> @classmethod
> def from_name(cls, name: str):
> """Return the Distribution for the given package name.
>
> :param name: The name of the distribution package to search for.
> :return: The Distribution instance (or subclass thereof) for the named
> package, if found.
> :raises PackageNotFoundError: When the named package's distribution
> metadata cannot be found.
> :raises ValueError: When an invalid value is supplied for name.
> """
> if not name:
> raise ValueError("A distribution name is required.")
> try:
> return next(cls.discover(name=name))
> except StopIteration:
> > raise PackageNotFoundError(name)
> E importlib.metadata.PackageNotFoundError: No package metadata was
> found for FakeApp
>
> /usr/lib/python3.11/importlib/metadata/__init__.py:565: PackageNotFoundError
> _________________________ TestEggURI.test_invalid_name
> _________________________
>
> cls = <class 'importlib.metadata.Distribution'>, name = 'FakeApp'
>
> @classmethod
> def from_name(cls, name: str):
> """Return the Distribution for the given package name.
>
> :param name: The name of the distribution package to search for.
> :return: The Distribution instance (or subclass thereof) for the named
> package, if found.
> :raises PackageNotFoundError: When the named package's distribution
> metadata cannot be found.
> :raises ValueError: When an invalid value is supplied for name.
> """
> if not name:
> raise ValueError("A distribution name is required.")
> try:
> > return next(cls.discover(name=name))
> E StopIteration
>
> /usr/lib/python3.11/importlib/metadata/__init__.py:563: StopIteration
>
> During handling of the above exception, another exception occurred:
>
> self = <tests.test_get_wsgi_filter.TestEggURI object at 0x7fe4ebbcce10>
>
> def test_invalid_name(self):
> with pytest.raises(LookupError):
> > self.loader.get_wsgi_filter('invalid')
>
> tests/test_get_wsgi_filter.py:79:
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> _
> .pybuild/cpython3_3.11/build/plaster_pastedeploy/__init__.py:168: in
> get_wsgi_filter
> return loadfilter(self.pastedeploy_spec,
> /usr/lib/python3/dist-packages/paste/deploy/loadwsgi.py:252: in loadfilter
> return loadobj(FILTER, uri, name=name, **kw)
> /usr/lib/python3/dist-packages/paste/deploy/loadwsgi.py:270: in loadobj
> context = loadcontext(
> /usr/lib/python3/dist-packages/paste/deploy/loadwsgi.py:295: in loadcontext
> return _loaders[scheme](
> /usr/lib/python3/dist-packages/paste/deploy/loadwsgi.py:334: in _loadegg
> return loader.get_context(object_type, name, global_conf)
> /usr/lib/python3/dist-packages/paste/deploy/loadwsgi.py:638: in get_context
> entry_point, protocol, ep_name = self.find_egg_entry_point(
> /usr/lib/python3/dist-packages/paste/deploy/loadwsgi.py:658: in
> find_egg_entry_point
> dist = importlib_metadata.distribution(self.spec)
> /usr/lib/python3.11/importlib/metadata/__init__.py:981: in distribution
> return Distribution.from_name(distribution_name)
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> _
>
> cls = <class 'importlib.metadata.Distribution'>, name = 'FakeApp'
>
> @classmethod
> def from_name(cls, name: str):
> """Return the Distribution for the given package name.
>
> :param name: The name of the distribution package to search for.
> :return: The Distribution instance (or subclass thereof) for the named
> package, if found.
> :raises PackageNotFoundError: When the named package's distribution
> metadata cannot be found.
> :raises ValueError: When an invalid value is supplied for name.
> """
> if not name:
> raise ValueError("A distribution name is required.")
> try:
> return next(cls.discover(name=name))
> except StopIteration:
> > raise PackageNotFoundError(name)
> E importlib.metadata.PackageNotFoundError: No package metadata was
> found for FakeApp
>
> /usr/lib/python3.11/importlib/metadata/__init__.py:565: PackageNotFoundError
> __________________ TestSimpleURI.test_get_wsgi_server_default
> __________________
>
> cls = <class 'importlib.metadata.Distribution'>, name = 'FakeApp'
>
> @classmethod
> def from_name(cls, name: str):
> """Return the Distribution for the given package name.
>
> :param name: The name of the distribution package to search for.
> :return: The Distribution instance (or subclass thereof) for the named
> package, if found.
> :raises PackageNotFoundError: When the named package's distribution
> metadata cannot be found.
> :raises ValueError: When an invalid value is supplied for name.
> """
> if not name:
> raise ValueError("A distribution name is required.")
> try:
> > return next(cls.discover(name=name))
> E StopIteration
>
> /usr/lib/python3.11/importlib/metadata/__init__.py:563: StopIteration
>
> During handling of the above exception, another exception occurred:
>
> self = <tests.test_get_wsgi_server.TestSimpleURI object at 0x7fe4ebc1d910>
>
> def test_get_wsgi_server_default(self):
> > server = self.loader.get_wsgi_server()
>
> /<<PKGBUILDDIR>>/tests/test_get_wsgi_server.py:19:
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> _
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11/build/plaster_pastedeploy/__init__.py:149:
> in get_wsgi_server
> return loadserver(self.pastedeploy_spec,
> /usr/lib/python3/dist-packages/paste/deploy/loadwsgi.py:256: in loadserver
> return loadobj(SERVER, uri, name=name, **kw)
> /usr/lib/python3/dist-packages/paste/deploy/loadwsgi.py:270: in loadobj
> context = loadcontext(
> /usr/lib/python3/dist-packages/paste/deploy/loadwsgi.py:295: in loadcontext
> return _loaders[scheme](
> /usr/lib/python3/dist-packages/paste/deploy/loadwsgi.py:326: in _loadconfig
> return loader.get_context(object_type, name, global_conf)
> /usr/lib/python3/dist-packages/paste/deploy/loadwsgi.py:461: in get_context
> context = self._context_from_use(
> /usr/lib/python3/dist-packages/paste/deploy/loadwsgi.py:488: in
> _context_from_use
> context = self.get_context(object_type, name=use, global_conf=global_conf)
> /usr/lib/python3/dist-packages/paste/deploy/loadwsgi.py:403: in get_context
> return loadcontext(
> /usr/lib/python3/dist-packages/paste/deploy/loadwsgi.py:295: in loadcontext
> return _loaders[scheme](
> /usr/lib/python3/dist-packages/paste/deploy/loadwsgi.py:334: in _loadegg
> return loader.get_context(object_type, name, global_conf)
> /usr/lib/python3/dist-packages/paste/deploy/loadwsgi.py:638: in get_context
> entry_point, protocol, ep_name = self.find_egg_entry_point(
> /usr/lib/python3/dist-packages/paste/deploy/loadwsgi.py:658: in
> find_egg_entry_point
> dist = importlib_metadata.distribution(self.spec)
> /usr/lib/python3.11/importlib/metadata/__init__.py:981: in distribution
> return Distribution.from_name(distribution_name)
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> _
>
> cls = <class 'importlib.metadata.Distribution'>, name = 'FakeApp'
>
> @classmethod
> def from_name(cls, name: str):
> """Return the Distribution for the given package name.
>
> :param name: The name of the distribution package to search for.
> :return: The Distribution instance (or subclass thereof) for the named
> package, if found.
> :raises PackageNotFoundError: When the named package's distribution
> metadata cannot be found.
> :raises ValueError: When an invalid value is supplied for name.
> """
> if not name:
> raise ValueError("A distribution name is required.")
> try:
> return next(cls.discover(name=name))
> except StopIteration:
> > raise PackageNotFoundError(name)
> E importlib.metadata.PackageNotFoundError: No package metadata was
> found for FakeApp
>
> /usr/lib/python3.11/importlib/metadata/__init__.py:565: PackageNotFoundError
> ________________ TestSectionedURI.test_get_wsgi_server_default
> _________________
>
> cls = <class 'importlib.metadata.Distribution'>, name = 'FakeApp'
>
> @classmethod
> def from_name(cls, name: str):
> """Return the Distribution for the given package name.
>
> :param name: The name of the distribution package to search for.
> :return: The Distribution instance (or subclass thereof) for the named
> package, if found.
> :raises PackageNotFoundError: When the named package's distribution
> metadata cannot be found.
> :raises ValueError: When an invalid value is supplied for name.
> """
> if not name:
> raise ValueError("A distribution name is required.")
> try:
> > return next(cls.discover(name=name))
> E StopIteration
>
> /usr/lib/python3.11/importlib/metadata/__init__.py:563: StopIteration
>
> During handling of the above exception, another exception occurred:
>
> self = <tests.test_get_wsgi_server.TestSectionedURI object at 0x7fe4ebc1cbd0>
>
> def test_get_wsgi_server_default(self):
> > server = self.loader.get_wsgi_server()
>
> /<<PKGBUILDDIR>>/tests/test_get_wsgi_server.py:34:
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> _
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11/build/plaster_pastedeploy/__init__.py:149:
> in get_wsgi_server
> return loadserver(self.pastedeploy_spec,
> /usr/lib/python3/dist-packages/paste/deploy/loadwsgi.py:256: in loadserver
> return loadobj(SERVER, uri, name=name, **kw)
> /usr/lib/python3/dist-packages/paste/deploy/loadwsgi.py:270: in loadobj
> context = loadcontext(
> /usr/lib/python3/dist-packages/paste/deploy/loadwsgi.py:295: in loadcontext
> return _loaders[scheme](
> /usr/lib/python3/dist-packages/paste/deploy/loadwsgi.py:326: in _loadconfig
> return loader.get_context(object_type, name, global_conf)
> /usr/lib/python3/dist-packages/paste/deploy/loadwsgi.py:461: in get_context
> context = self._context_from_use(
> /usr/lib/python3/dist-packages/paste/deploy/loadwsgi.py:488: in
> _context_from_use
> context = self.get_context(object_type, name=use, global_conf=global_conf)
> /usr/lib/python3/dist-packages/paste/deploy/loadwsgi.py:403: in get_context
> return loadcontext(
> /usr/lib/python3/dist-packages/paste/deploy/loadwsgi.py:295: in loadcontext
> return _loaders[scheme](
> /usr/lib/python3/dist-packages/paste/deploy/loadwsgi.py:334: in _loadegg
> return loader.get_context(object_type, name, global_conf)
> /usr/lib/python3/dist-packages/paste/deploy/loadwsgi.py:638: in get_context
> entry_point, protocol, ep_name = self.find_egg_entry_point(
> /usr/lib/python3/dist-packages/paste/deploy/loadwsgi.py:658: in
> find_egg_entry_point
> dist = importlib_metadata.distribution(self.spec)
> /usr/lib/python3.11/importlib/metadata/__init__.py:981: in distribution
> return Distribution.from_name(distribution_name)
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> _
>
> cls = <class 'importlib.metadata.Distribution'>, name = 'FakeApp'
>
> @classmethod
> def from_name(cls, name: str):
> """Return the Distribution for the given package name.
>
> :param name: The name of the distribution package to search for.
> :return: The Distribution instance (or subclass thereof) for the named
> package, if found.
> :raises PackageNotFoundError: When the named package's distribution
> metadata cannot be found.
> :raises ValueError: When an invalid value is supplied for name.
> """
> if not name:
> raise ValueError("A distribution name is required.")
> try:
> return next(cls.discover(name=name))
> except StopIteration:
> > raise PackageNotFoundError(name)
> E importlib.metadata.PackageNotFoundError: No package metadata was
> found for FakeApp
>
> /usr/lib/python3.11/importlib/metadata/__init__.py:565: PackageNotFoundError
> ____________ TestSchemeAndSectionedURI.test_get_wsgi_server_default
> ____________
>
> cls = <class 'importlib.metadata.Distribution'>, name = 'FakeApp'
>
> @classmethod
> def from_name(cls, name: str):
> """Return the Distribution for the given package name.
>
> :param name: The name of the distribution package to search for.
> :return: The Distribution instance (or subclass thereof) for the named
> package, if found.
> :raises PackageNotFoundError: When the named package's distribution
> metadata cannot be found.
> :raises ValueError: When an invalid value is supplied for name.
> """
> if not name:
> raise ValueError("A distribution name is required.")
> try:
> > return next(cls.discover(name=name))
> E StopIteration
>
> /usr/lib/python3.11/importlib/metadata/__init__.py:563: StopIteration
>
> During handling of the above exception, another exception occurred:
>
> self = <tests.test_get_wsgi_server.TestSchemeAndSectionedURI object at
> 0x7fe4ebc1f2d0>
>
> def test_get_wsgi_server_default(self):
> > server = self.loader.get_wsgi_server()
>
> /<<PKGBUILDDIR>>/tests/test_get_wsgi_server.py:34:
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> _
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11/build/plaster_pastedeploy/__init__.py:149:
> in get_wsgi_server
> return loadserver(self.pastedeploy_spec,
> /usr/lib/python3/dist-packages/paste/deploy/loadwsgi.py:256: in loadserver
> return loadobj(SERVER, uri, name=name, **kw)
> /usr/lib/python3/dist-packages/paste/deploy/loadwsgi.py:270: in loadobj
> context = loadcontext(
> /usr/lib/python3/dist-packages/paste/deploy/loadwsgi.py:295: in loadcontext
> return _loaders[scheme](
> /usr/lib/python3/dist-packages/paste/deploy/loadwsgi.py:326: in _loadconfig
> return loader.get_context(object_type, name, global_conf)
> /usr/lib/python3/dist-packages/paste/deploy/loadwsgi.py:461: in get_context
> context = self._context_from_use(
> /usr/lib/python3/dist-packages/paste/deploy/loadwsgi.py:488: in
> _context_from_use
> context = self.get_context(object_type, name=use, global_conf=global_conf)
> /usr/lib/python3/dist-packages/paste/deploy/loadwsgi.py:403: in get_context
> return loadcontext(
> /usr/lib/python3/dist-packages/paste/deploy/loadwsgi.py:295: in loadcontext
> return _loaders[scheme](
> /usr/lib/python3/dist-packages/paste/deploy/loadwsgi.py:334: in _loadegg
> return loader.get_context(object_type, name, global_conf)
> /usr/lib/python3/dist-packages/paste/deploy/loadwsgi.py:638: in get_context
> entry_point, protocol, ep_name = self.find_egg_entry_point(
> /usr/lib/python3/dist-packages/paste/deploy/loadwsgi.py:658: in
> find_egg_entry_point
> dist = importlib_metadata.distribution(self.spec)
> /usr/lib/python3.11/importlib/metadata/__init__.py:981: in distribution
> return Distribution.from_name(distribution_name)
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> _
>
> cls = <class 'importlib.metadata.Distribution'>, name = 'FakeApp'
>
> @classmethod
> def from_name(cls, name: str):
> """Return the Distribution for the given package name.
>
> :param name: The name of the distribution package to search for.
> :return: The Distribution instance (or subclass thereof) for the named
> package, if found.
> :raises PackageNotFoundError: When the named package's distribution
> metadata cannot be found.
> :raises ValueError: When an invalid value is supplied for name.
> """
> if not name:
> raise ValueError("A distribution name is required.")
> try:
> return next(cls.discover(name=name))
> except StopIteration:
> > raise PackageNotFoundError(name)
> E importlib.metadata.PackageNotFoundError: No package metadata was
> found for FakeApp
>
> /usr/lib/python3.11/importlib/metadata/__init__.py:565: PackageNotFoundError
> ______________________________ TestEggURI.test_it
> ______________________________
>
> cls = <class 'importlib.metadata.Distribution'>, name = 'FakeApp'
>
> @classmethod
> def from_name(cls, name: str):
> """Return the Distribution for the given package name.
>
> :param name: The name of the distribution package to search for.
> :return: The Distribution instance (or subclass thereof) for the named
> package, if found.
> :raises PackageNotFoundError: When the named package's distribution
> metadata cannot be found.
> :raises ValueError: When an invalid value is supplied for name.
> """
> if not name:
> raise ValueError("A distribution name is required.")
> try:
> > return next(cls.discover(name=name))
> E StopIteration
>
> /usr/lib/python3.11/importlib/metadata/__init__.py:563: StopIteration
>
> During handling of the above exception, another exception occurred:
>
> self = <tests.test_get_wsgi_server.TestEggURI object at 0x7fe4ebc09010>
>
> def test_it(self):
> > server = self.loader.get_wsgi_server()
>
> tests/test_get_wsgi_server.py:53:
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> _
> .pybuild/cpython3_3.11/build/plaster_pastedeploy/__init__.py:149: in
> get_wsgi_server
> return loadserver(self.pastedeploy_spec,
> /usr/lib/python3/dist-packages/paste/deploy/loadwsgi.py:256: in loadserver
> return loadobj(SERVER, uri, name=name, **kw)
> /usr/lib/python3/dist-packages/paste/deploy/loadwsgi.py:270: in loadobj
> context = loadcontext(
> /usr/lib/python3/dist-packages/paste/deploy/loadwsgi.py:295: in loadcontext
> return _loaders[scheme](
> /usr/lib/python3/dist-packages/paste/deploy/loadwsgi.py:334: in _loadegg
> return loader.get_context(object_type, name, global_conf)
> /usr/lib/python3/dist-packages/paste/deploy/loadwsgi.py:638: in get_context
> entry_point, protocol, ep_name = self.find_egg_entry_point(
> /usr/lib/python3/dist-packages/paste/deploy/loadwsgi.py:658: in
> find_egg_entry_point
> dist = importlib_metadata.distribution(self.spec)
> /usr/lib/python3.11/importlib/metadata/__init__.py:981: in distribution
> return Distribution.from_name(distribution_name)
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> _
>
> cls = <class 'importlib.metadata.Distribution'>, name = 'FakeApp'
>
> @classmethod
> def from_name(cls, name: str):
> """Return the Distribution for the given package name.
>
> :param name: The name of the distribution package to search for.
> :return: The Distribution instance (or subclass thereof) for the named
> package, if found.
> :raises PackageNotFoundError: When the named package's distribution
> metadata cannot be found.
> :raises ValueError: When an invalid value is supplied for name.
> """
> if not name:
> raise ValueError("A distribution name is required.")
> try:
> return next(cls.discover(name=name))
> except StopIteration:
> > raise PackageNotFoundError(name)
> E importlib.metadata.PackageNotFoundError: No package metadata was
> found for FakeApp
>
> /usr/lib/python3.11/importlib/metadata/__init__.py:565: PackageNotFoundError
> _______________________ TestEggURI.test_it_override_name
> _______________________
>
> cls = <class 'importlib.metadata.Distribution'>, name = 'FakeApp'
>
> @classmethod
> def from_name(cls, name: str):
> """Return the Distribution for the given package name.
>
> :param name: The name of the distribution package to search for.
> :return: The Distribution instance (or subclass thereof) for the named
> package, if found.
> :raises PackageNotFoundError: When the named package's distribution
> metadata cannot be found.
> :raises ValueError: When an invalid value is supplied for name.
> """
> if not name:
> raise ValueError("A distribution name is required.")
> try:
> > return next(cls.discover(name=name))
> E StopIteration
>
> /usr/lib/python3.11/importlib/metadata/__init__.py:563: StopIteration
>
> During handling of the above exception, another exception occurred:
>
> self = <tests.test_get_wsgi_server.TestEggURI object at 0x7fe4ebc0aa50>
>
> def test_it_override_name(self):
> > server = self.loader.get_wsgi_server('fake')
>
> tests/test_get_wsgi_server.py:58:
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> _
> .pybuild/cpython3_3.11/build/plaster_pastedeploy/__init__.py:149: in
> get_wsgi_server
> return loadserver(self.pastedeploy_spec,
> /usr/lib/python3/dist-packages/paste/deploy/loadwsgi.py:256: in loadserver
> return loadobj(SERVER, uri, name=name, **kw)
> /usr/lib/python3/dist-packages/paste/deploy/loadwsgi.py:270: in loadobj
> context = loadcontext(
> /usr/lib/python3/dist-packages/paste/deploy/loadwsgi.py:295: in loadcontext
> return _loaders[scheme](
> /usr/lib/python3/dist-packages/paste/deploy/loadwsgi.py:334: in _loadegg
> return loader.get_context(object_type, name, global_conf)
> /usr/lib/python3/dist-packages/paste/deploy/loadwsgi.py:638: in get_context
> entry_point, protocol, ep_name = self.find_egg_entry_point(
> /usr/lib/python3/dist-packages/paste/deploy/loadwsgi.py:658: in
> find_egg_entry_point
> dist = importlib_metadata.distribution(self.spec)
> /usr/lib/python3.11/importlib/metadata/__init__.py:981: in distribution
> return Distribution.from_name(distribution_name)
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> _
>
> cls = <class 'importlib.metadata.Distribution'>, name = 'FakeApp'
>
> @classmethod
> def from_name(cls, name: str):
> """Return the Distribution for the given package name.
>
> :param name: The name of the distribution package to search for.
> :return: The Distribution instance (or subclass thereof) for the named
> package, if found.
> :raises PackageNotFoundError: When the named package's distribution
> metadata cannot be found.
> :raises ValueError: When an invalid value is supplied for name.
> """
> if not name:
> raise ValueError("A distribution name is required.")
> try:
> return next(cls.discover(name=name))
> except StopIteration:
> > raise PackageNotFoundError(name)
> E importlib.metadata.PackageNotFoundError: No package metadata was
> found for FakeApp
>
> /usr/lib/python3.11/importlib/metadata/__init__.py:565: PackageNotFoundError
> _________________________ TestEggURI.test_invalid_name
> _________________________
>
> cls = <class 'importlib.metadata.Distribution'>, name = 'FakeApp'
>
> @classmethod
> def from_name(cls, name: str):
> """Return the Distribution for the given package name.
>
> :param name: The name of the distribution package to search for.
> :return: The Distribution instance (or subclass thereof) for the named
> package, if found.
> :raises PackageNotFoundError: When the named package's distribution
> metadata cannot be found.
> :raises ValueError: When an invalid value is supplied for name.
> """
> if not name:
> raise ValueError("A distribution name is required.")
> try:
> > return next(cls.discover(name=name))
> E StopIteration
>
> /usr/lib/python3.11/importlib/metadata/__init__.py:563: StopIteration
>
> During handling of the above exception, another exception occurred:
>
> self = <tests.test_get_wsgi_server.TestEggURI object at 0x7fe4ebc0a3d0>
>
> def test_invalid_name(self):
> with pytest.raises(LookupError):
> > self.loader.get_wsgi_server('invalid')
>
> tests/test_get_wsgi_server.py:64:
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> _
> .pybuild/cpython3_3.11/build/plaster_pastedeploy/__init__.py:149: in
> get_wsgi_server
> return loadserver(self.pastedeploy_spec,
> /usr/lib/python3/dist-packages/paste/deploy/loadwsgi.py:256: in loadserver
> return loadobj(SERVER, uri, name=name, **kw)
> /usr/lib/python3/dist-packages/paste/deploy/loadwsgi.py:270: in loadobj
> context = loadcontext(
> /usr/lib/python3/dist-packages/paste/deploy/loadwsgi.py:295: in loadcontext
> return _loaders[scheme](
> /usr/lib/python3/dist-packages/paste/deploy/loadwsgi.py:334: in _loadegg
> return loader.get_context(object_type, name, global_conf)
> /usr/lib/python3/dist-packages/paste/deploy/loadwsgi.py:638: in get_context
> entry_point, protocol, ep_name = self.find_egg_entry_point(
> /usr/lib/python3/dist-packages/paste/deploy/loadwsgi.py:658: in
> find_egg_entry_point
> dist = importlib_metadata.distribution(self.spec)
> /usr/lib/python3.11/importlib/metadata/__init__.py:981: in distribution
> return Distribution.from_name(distribution_name)
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> _
>
> cls = <class 'importlib.metadata.Distribution'>, name = 'FakeApp'
>
> @classmethod
> def from_name(cls, name: str):
> """Return the Distribution for the given package name.
>
> :param name: The name of the distribution package to search for.
> :return: The Distribution instance (or subclass thereof) for the named
> package, if found.
> :raises PackageNotFoundError: When the named package's distribution
> metadata cannot be found.
> :raises ValueError: When an invalid value is supplied for name.
> """
> if not name:
> raise ValueError("A distribution name is required.")
> try:
> return next(cls.discover(name=name))
> except StopIteration:
> > raise PackageNotFoundError(name)
> E importlib.metadata.PackageNotFoundError: No package metadata was
> found for FakeApp
>
> /usr/lib/python3.11/importlib/metadata/__init__.py:565: PackageNotFoundError
> =============================== warnings summary
> ===============================
> tests/conftest.py:2
> /<<PKGBUILDDIR>>/tests/conftest.py:2: DeprecationWarning: pkg_resources is
> deprecated as an API. See
> https://setuptools.pypa.io/en/latest/pkg_resources.html
> import pkg_resources
>
> -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
> =========================== short test summary info
> ============================
> FAILED
> tests/test_get_wsgi_app.py::TestSimpleURI::test_get_wsgi_app_with_relative
> FAILED tests/test_get_wsgi_app.py::TestSimpleURI::test_get_wsgi_app_main -
> im...
> FAILED
> tests/test_get_wsgi_app.py::TestSectionedURI::test_get_wsgi_app_with_relative
> FAILED tests/test_get_wsgi_app.py::TestSectionedURI::test_get_wsgi_app_main
> FAILED
> tests/test_get_wsgi_app.py::TestSchemeAndSectionedURI::test_get_wsgi_app_with_relative
> FAILED
> tests/test_get_wsgi_app.py::TestSchemeAndSectionedURI::test_get_wsgi_app_main
> FAILED
> tests/test_get_wsgi_app.py::TestRelativeURI::test_get_wsgi_app_with_relative
> FAILED tests/test_get_wsgi_app.py::TestRelativeURI::test_get_wsgi_app_main -
> ...
> FAILED
> tests/test_get_wsgi_app.py::TestRelativeSectionedURI::test_get_wsgi_app_with_relative
> FAILED
> tests/test_get_wsgi_app.py::TestRelativeSectionedURI::test_get_wsgi_app_main
> FAILED
> tests/test_get_wsgi_app.py::TestRelativeSchemeAndSectionedURI::test_get_wsgi_app_with_relative
> FAILED
> tests/test_get_wsgi_app.py::TestRelativeSchemeAndSectionedURI::test_get_wsgi_app_main
> FAILED tests/test_get_wsgi_app.py::TestEggURI::test_it -
> importlib.metadata.P...
> FAILED tests/test_get_wsgi_app.py::TestEggURI::test_it_override_name -
> import...
> FAILED tests/test_get_wsgi_app.py::TestEggURI::test_invalid_name -
> importlib....
> FAILED
> tests/test_get_wsgi_app_settings.py::TestFullURI::test_get_wsgi_app_settings
> FAILED
> tests/test_get_wsgi_app_settings.py::TestSimpleURI::test_get_wsgi_app_settings
> FAILED tests/test_get_wsgi_app_settings.py::TestEggURI::test_it -
> importlib.m...
> FAILED tests/test_get_wsgi_app_settings.py::TestEggURI::test_invalid_name -
> i...
> FAILED tests/test_get_wsgi_filter.py::TestSimpleURI::test_get_wsgi_filter -
> i...
> FAILED tests/test_get_wsgi_filter.py::TestSectionedURI::test_get_wsgi_filter
> FAILED
> tests/test_get_wsgi_filter.py::TestSchemeAndSectionedURI::test_get_wsgi_filter
> FAILED tests/test_get_wsgi_filter.py::TestEggURI::test_it -
> importlib.metadat...
> FAILED tests/test_get_wsgi_filter.py::TestEggURI::test_it_override_name -
> imp...
> FAILED tests/test_get_wsgi_filter.py::TestEggURI::test_invalid_name -
> importl...
> FAILED
> tests/test_get_wsgi_server.py::TestSimpleURI::test_get_wsgi_server_default
> FAILED
> tests/test_get_wsgi_server.py::TestSectionedURI::test_get_wsgi_server_default
> FAILED
> tests/test_get_wsgi_server.py::TestSchemeAndSectionedURI::test_get_wsgi_server_default
> FAILED tests/test_get_wsgi_server.py::TestEggURI::test_it -
> importlib.metadat...
> FAILED tests/test_get_wsgi_server.py::TestEggURI::test_it_override_name -
> imp...
> FAILED tests/test_get_wsgi_server.py::TestEggURI::test_invalid_name -
> importl...
> =================== 31 failed, 39 passed, 1 warning in 2.28s
> ===================
> E: pybuild pybuild:395: test: plugin custom failed with: exit code=1: env
> PYTHONPATH=/<<PKGBUILDDIR>>/.pybuild/cpython3_3.11/build python3.11 -m pytest
> dh_auto_test: error: pybuild --test --test-pytest -i python{version} -p 3.11
> returned exit code 13
The full build log is available from:
http://qa-logs.debian.net/2023/09/25/python-plaster-pastedeploy_0.5-5_unstable.log
All bugs filed during this archive rebuild are listed at:
https://bugs.debian.org/cgi-bin/pkgreport.cgi?tag=ftbfs-20230925;users=lu...@debian.org
or:
https://udd.debian.org/bugs/?release=na&merged=ign&fnewerval=7&flastmodval=7&fusertag=only&fusertagtag=ftbfs-20230925&fusertaguser=lu...@debian.org&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.
--- End Message ---