Skip to content

Draft: testing/loyaltycardsopen: new aport

Eloi Torrents requested to merge Eloitor/aports:loyaltyCardsOpen into master

The checks for py3-python-barcode do not work:

Click to expand
/usr/lib/python3.11/site-packages/setuptools/command/build_py.py:202: SetuptoolsDeprecationWarning:     Installing 'barcode.fonts' as data is deprecated, please list it in `packages`.
!!

############################
# Package would be ignored #
############################
Python recognizes 'barcode.fonts' as an importable package,
but it is not listed in the `packages` configuration of setuptools.

'barcode.fonts' has been automatically added to the distribution only
because it may contain data files, but this behavior is likely to change
in future versions of setuptools (and therefore is considered deprecated).

Please make sure that 'barcode.fonts' is included as a package by using
the `packages` configuration field or the proper discovery methods
(for example by using `find_namespace_packages(...)`/`find_namespace:`
instead of `find_packages(...)`/`find:`).

You can read more about "package discovery" and "data files" on setuptools
documentation page.

!!

  check.warn(importable)
creating build/lib/barcode/fonts
copying barcode/fonts/DejaVuSansMono.ttf -> build/lib/barcode/fonts
py36: internal error
Traceback (most recent call last):
  File "/usr/lib/python3.11/site-packages/tox/session/cmd/run/single.py", line 45, in _evaluate
    tox_env.setup()
  File "/usr/lib/python3.11/site-packages/tox/tox_env/api.py", line 242, in setup
    self._setup_env()
  File "/usr/lib/python3.11/site-packages/tox/tox_env/python/runner.py", line 106, in _setup_env
    super()._setup_env()
  File "/usr/lib/python3.11/site-packages/tox/tox_env/python/api.py", line 185, in _setup_env
    self.ensure_python_env()
  File "/usr/lib/python3.11/site-packages/tox/tox_env/python/api.py", line 189, in ensure_python_env
    conf = self.python_cache()
           ^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/tox/tox_env/python/virtual_env/api.py", line 77, in python_cache
    base = super().python_cache()
           ^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/tox/tox_env/python/api.py", line 227, in python_cache
    "version_info": list(self.base_python.version_info),
                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'version_info'
py36: FAIL ✖ in 0 seconds
py36-images: internal error
Traceback (most recent call last):
  File "/usr/lib/python3.11/site-packages/tox/session/cmd/run/single.py", line 45, in _evaluate
    tox_env.setup()
  File "/usr/lib/python3.11/site-packages/tox/tox_env/api.py", line 242, in setup
    self._setup_env()
  File "/usr/lib/python3.11/site-packages/tox/tox_env/python/runner.py", line 106, in _setup_env
    super()._setup_env()
  File "/usr/lib/python3.11/site-packages/tox/tox_env/python/api.py", line 185, in _setup_env
    self.ensure_python_env()
  File "/usr/lib/python3.11/site-packages/tox/tox_env/python/api.py", line 189, in ensure_python_env
    conf = self.python_cache()
           ^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/tox/tox_env/python/virtual_env/api.py", line 77, in python_cache
    base = super().python_cache()
           ^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/tox/tox_env/python/api.py", line 227, in python_cache
    "version_info": list(self.base_python.version_info),
                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'version_info'
py36-images: FAIL ✖ in 0 seconds
py37: internal error
Traceback (most recent call last):
  File "/usr/lib/python3.11/site-packages/tox/session/cmd/run/single.py", line 45, in _evaluate
    tox_env.setup()
  File "/usr/lib/python3.11/site-packages/tox/tox_env/api.py", line 242, in setup
    self._setup_env()
  File "/usr/lib/python3.11/site-packages/tox/tox_env/python/runner.py", line 106, in _setup_env
    super()._setup_env()
  File "/usr/lib/python3.11/site-packages/tox/tox_env/python/api.py", line 185, in _setup_env
    self.ensure_python_env()
  File "/usr/lib/python3.11/site-packages/tox/tox_env/python/api.py", line 189, in ensure_python_env
    conf = self.python_cache()
           ^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/tox/tox_env/python/virtual_env/api.py", line 77, in python_cache
    base = super().python_cache()
           ^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/tox/tox_env/python/api.py", line 227, in python_cache
    "version_info": list(self.base_python.version_info),
                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'version_info'
py37: FAIL ✖ in 0 seconds
py37-images: internal error
Traceback (most recent call last):
  File "/usr/lib/python3.11/site-packages/tox/session/cmd/run/single.py", line 45, in _evaluate
    tox_env.setup()
  File "/usr/lib/python3.11/site-packages/tox/tox_env/api.py", line 242, in setup
    self._setup_env()
  File "/usr/lib/python3.11/site-packages/tox/tox_env/python/runner.py", line 106, in _setup_env
    super()._setup_env()
  File "/usr/lib/python3.11/site-packages/tox/tox_env/python/api.py", line 185, in _setup_env
    self.ensure_python_env()
  File "/usr/lib/python3.11/site-packages/tox/tox_env/python/api.py", line 189, in ensure_python_env
    conf = self.python_cache()
           ^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/tox/tox_env/python/virtual_env/api.py", line 77, in python_cache
    base = super().python_cache()
           ^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/tox/tox_env/python/api.py", line 227, in python_cache
    "version_info": list(self.base_python.version_info),
                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'version_info'
py37-images: FAIL ✖ in 0 seconds
py38: internal error
Traceback (most recent call last):
  File "/usr/lib/python3.11/site-packages/tox/session/cmd/run/single.py", line 45, in _evaluate
    tox_env.setup()
  File "/usr/lib/python3.11/site-packages/tox/tox_env/api.py", line 242, in setup
    self._setup_env()
  File "/usr/lib/python3.11/site-packages/tox/tox_env/python/runner.py", line 106, in _setup_env
    super()._setup_env()
  File "/usr/lib/python3.11/site-packages/tox/tox_env/python/api.py", line 185, in _setup_env
    self.ensure_python_env()
  File "/usr/lib/python3.11/site-packages/tox/tox_env/python/api.py", line 189, in ensure_python_env
    conf = self.python_cache()
           ^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/tox/tox_env/python/virtual_env/api.py", line 77, in python_cache
    base = super().python_cache()
           ^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/tox/tox_env/python/api.py", line 227, in python_cache
    "version_info": list(self.base_python.version_info),
                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'version_info'
py38: FAIL ✖ in 0 seconds
py38-images: internal error
Traceback (most recent call last):
  File "/usr/lib/python3.11/site-packages/tox/session/cmd/run/single.py", line 45, in _evaluate
    tox_env.setup()
  File "/usr/lib/python3.11/site-packages/tox/tox_env/api.py", line 242, in setup
    self._setup_env()
  File "/usr/lib/python3.11/site-packages/tox/tox_env/python/runner.py", line 106, in _setup_env
    super()._setup_env()
  File "/usr/lib/python3.11/site-packages/tox/tox_env/python/api.py", line 185, in _setup_env
    self.ensure_python_env()
  File "/usr/lib/python3.11/site-packages/tox/tox_env/python/api.py", line 189, in ensure_python_env
    conf = self.python_cache()
           ^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/tox/tox_env/python/virtual_env/api.py", line 77, in python_cache
    base = super().python_cache()
           ^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/tox/tox_env/python/api.py", line 227, in python_cache
    "version_info": list(self.base_python.version_info),
                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'version_info'
py38-images: FAIL ✖ in 0 seconds
py39: internal error
Traceback (most recent call last):
  File "/usr/lib/python3.11/site-packages/tox/session/cmd/run/single.py", line 45, in _evaluate
    tox_env.setup()
  File "/usr/lib/python3.11/site-packages/tox/tox_env/api.py", line 242, in setup
    self._setup_env()
  File "/usr/lib/python3.11/site-packages/tox/tox_env/python/runner.py", line 106, in _setup_env
    super()._setup_env()
  File "/usr/lib/python3.11/site-packages/tox/tox_env/python/api.py", line 185, in _setup_env
    self.ensure_python_env()
  File "/usr/lib/python3.11/site-packages/tox/tox_env/python/api.py", line 189, in ensure_python_env
    conf = self.python_cache()
           ^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/tox/tox_env/python/virtual_env/api.py", line 77, in python_cache
    base = super().python_cache()
           ^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/tox/tox_env/python/api.py", line 227, in python_cache
    "version_info": list(self.base_python.version_info),
                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'version_info'
py39: FAIL ✖ in 0 seconds
py39-images: internal error
Traceback (most recent call last):
  File "/usr/lib/python3.11/site-packages/tox/session/cmd/run/single.py", line 45, in _evaluate
    tox_env.setup()
  File "/usr/lib/python3.11/site-packages/tox/tox_env/api.py", line 242, in setup
    self._setup_env()
  File "/usr/lib/python3.11/site-packages/tox/tox_env/python/runner.py", line 106, in _setup_env
    super()._setup_env()
  File "/usr/lib/python3.11/site-packages/tox/tox_env/python/api.py", line 185, in _setup_env
    self.ensure_python_env()
  File "/usr/lib/python3.11/site-packages/tox/tox_env/python/api.py", line 189, in ensure_python_env
    conf = self.python_cache()
           ^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/tox/tox_env/python/virtual_env/api.py", line 77, in python_cache
    base = super().python_cache()
           ^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/tox/tox_env/python/api.py", line 227, in python_cache
    "version_info": list(self.base_python.version_info),
                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'version_info'
py39-images: FAIL ✖ in 0 seconds
py310: internal error
Traceback (most recent call last):
  File "/usr/lib/python3.11/site-packages/tox/session/cmd/run/single.py", line 45, in _evaluate
    tox_env.setup()
  File "/usr/lib/python3.11/site-packages/tox/tox_env/api.py", line 242, in setup
    self._setup_env()
  File "/usr/lib/python3.11/site-packages/tox/tox_env/python/runner.py", line 106, in _setup_env
    super()._setup_env()
  File "/usr/lib/python3.11/site-packages/tox/tox_env/python/api.py", line 185, in _setup_env
    self.ensure_python_env()
  File "/usr/lib/python3.11/site-packages/tox/tox_env/python/api.py", line 189, in ensure_python_env
    conf = self.python_cache()
           ^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/tox/tox_env/python/virtual_env/api.py", line 77, in python_cache
    base = super().python_cache()
           ^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/tox/tox_env/python/api.py", line 227, in python_cache
    "version_info": list(self.base_python.version_info),
                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'version_info'
py310: FAIL ✖ in 0 seconds
py310-images: internal error
Traceback (most recent call last):
  File "/usr/lib/python3.11/site-packages/tox/session/cmd/run/single.py", line 45, in _evaluate
    tox_env.setup()
  File "/usr/lib/python3.11/site-packages/tox/tox_env/api.py", line 242, in setup
    self._setup_env()
  File "/usr/lib/python3.11/site-packages/tox/tox_env/python/runner.py", line 106, in _setup_env
    super()._setup_env()
  File "/usr/lib/python3.11/site-packages/tox/tox_env/python/api.py", line 185, in _setup_env
    self.ensure_python_env()
  File "/usr/lib/python3.11/site-packages/tox/tox_env/python/api.py", line 189, in ensure_python_env
    conf = self.python_cache()
           ^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/tox/tox_env/python/virtual_env/api.py", line 77, in python_cache
    base = super().python_cache()
           ^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/tox/tox_env/python/api.py", line 227, in python_cache
    "version_info": list(self.base_python.version_info),
                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'version_info'
  py36: FAIL code 2 (0.00 seconds)
  py36-images: FAIL code 2 (0.00 seconds)
  py37: FAIL code 2 (0.00 seconds)
  py37-images: FAIL code 2 (0.00 seconds)
  py38: FAIL code 2 (0.00 seconds)
  py38-images: FAIL code 2 (0.00 seconds)
  py39: FAIL code 2 (0.00 seconds)
  py39-images: FAIL code 2 (0.00 seconds)
  py310: FAIL code 2 (0.00 seconds)
  py310-images: FAIL code 2 (0.00 seconds)
  evaluation failed :( (0.19 seconds)
>>> ERROR: py3-python-barcode: check failed

And the build for loyaltyCardsOpen does not work:

Click to expand
error: Multiple top-level packages discovered in a flat-layout: ['css', 'tmp'].

To avoid accidental inclusion of unwanted files or directories,
setuptools will not proceed with this build.

If you are trying to create a single distribution with multiple packages
on purpose, you should not rely on automatic discovery.
Instead, consider the following options:

1. set up custom discovery (`find` directive with `include` or `exclude`)
2. use a `src-layout`
3. explicitly set `py_modules` or `packages` with a list of names

To find more information, look for "package discovery" on setuptools docs.
>>> ERROR: loyaltyCardsOpen: build failed

I don't know how to make progress

Merge request reports

Loading