ionelmc / python-fields

A totally different take on container boilerplate.
BSD 2-Clause "Simplified" License
138 stars 8 forks source link

Tests fail: Failed: [pytest] section in setup.cfg files is no longer supported, change to [tool:pytest] instead #9

Open yurivict opened 1 year ago

yurivict commented 1 year ago
===>  Testing for py39-fields-5.0.0
===>   py39-fields-5.0.0 depends on package: py39-pytest>=7,1 - found
===>   py39-fields-5.0.0 depends on file: /usr/local/bin/python3.9 - found
cd /usr/ports/devel/py-fields/work-py39/fields-5.0.0 && /usr/bin/env XDG_DATA_HOME=/usr/ports/devel/py-fields/work-py39  XDG_CONFIG_HOME=/usr/ports/devel/py-fields/work-py39  XDG_CACHE_HOME=/usr/ports/devel/py-fields/work-py39/.cache  HOME=/usr/ports/devel/py-fields/work-py39 PATH=/usr/local/libexec/ccache:/usr/ports/devel/py-fields/work-py39/.bin:/home/yuri/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin PKG_CONFIG_LIBDIR=/usr/ports/devel/py-fields/work-py39/.pkgconfig:/usr/local/libdata/pkgconfig:/usr/local/share/pkgconfig:/usr/libdata/pkgconfig MK_DEBUG_FILES=no MK_KERNEL_SYMBOLS=no SHELL=/bin/sh NO_LINT=YES LDSHARED="cc -shared" PYTHONDONTWRITEBYTECODE= PYTHONOPTIMIZE= PREFIX=/usr/local  LOCALBASE=/usr/local  CC="cc" CFLAGS="-O2 -pipe  -fstack-protector-strong -fno-strict-aliasing "  CPP="cpp" CPPFLAGS=""  LDFLAGS=" -fstack-protector-strong " LIBS=""  CXX="c++" CXXFLAGS="-O2 -pipe -fstack-protector-strong -fno-strict-aliasing  "  MANPREFIX="/usr/local" CCACHE_DIR="/tmp/.ccache" BSD_INSTALL_PROGRAM="install  -s -m 555"  BSD_INSTALL_LIB="install  -s -m 0644"  BSD_INSTALL_SCRIPT="install  -m 555"  BSD_INSTALL_DATA="install  -m 0644"  BSD_INSTALL_MAN="install  -m 444" /usr/local/bin/python3.9 -m pytest -k '' -rs -v -o addopts= 
Traceback (most recent call last):
  File "/usr/local/lib/python3.9/runpy.py", line 197, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "/usr/local/lib/python3.9/runpy.py", line 87, in _run_code
    exec(code, run_globals)
  File "/usr/local/lib/python3.9/site-packages/pytest/__main__.py", line 5, in <module>
    raise SystemExit(pytest.console_main())
  File "/usr/local/lib/python3.9/site-packages/_pytest/config/__init__.py", line 190, in console_main
    code = main()
  File "/usr/local/lib/python3.9/site-packages/_pytest/config/__init__.py", line 148, in main
    config = _prepareconfig(args, plugins)
  File "/usr/local/lib/python3.9/site-packages/_pytest/config/__init__.py", line 329, in _prepareconfig
    config = pluginmanager.hook.pytest_cmdline_parse(
  File "/usr/local/lib/python3.9/site-packages/pluggy/_hooks.py", line 265, in __call__
    return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
  File "/usr/local/lib/python3.9/site-packages/pluggy/_manager.py", line 80, in _hookexec
    return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
  File "/usr/local/lib/python3.9/site-packages/pluggy/_callers.py", line 55, in _multicall
    gen.send(outcome)
  File "/usr/local/lib/python3.9/site-packages/_pytest/helpconfig.py", line 103, in pytest_cmdline_parse
    config: Config = outcome.get_result()
  File "/usr/local/lib/python3.9/site-packages/pluggy/_result.py", line 60, in get_result
    raise ex[1].with_traceback(ex[2])
  File "/usr/local/lib/python3.9/site-packages/pluggy/_callers.py", line 39, in _multicall
    res = hook_impl.function(*args)
  File "/usr/local/lib/python3.9/site-packages/_pytest/config/__init__.py", line 1058, in pytest_cmdline_parse
    self.parse(args)
  File "/usr/local/lib/python3.9/site-packages/_pytest/config/__init__.py", line 1346, in parse
    self._preparse(args, addopts=addopts)
  File "/usr/local/lib/python3.9/site-packages/_pytest/config/__init__.py", line 1214, in _preparse
    self._initini(args)
  File "/usr/local/lib/python3.9/site-packages/_pytest/config/__init__.py", line 1133, in _initini
    rootpath, inipath, inicfg = determine_setup(
  File "/usr/local/lib/python3.9/site-packages/_pytest/config/findpaths.py", line 191, in determine_setup
    rootdir, inipath, inicfg = locate_config([ancestor])
  File "/usr/local/lib/python3.9/site-packages/_pytest/config/findpaths.py", line 113, in locate_config
    ini_config = load_config_dict_from_file(p)
  File "/usr/local/lib/python3.9/site-packages/_pytest/config/findpaths.py", line 64, in load_config_dict_from_file
    fail(CFG_PYTEST_SECTION.format(filename="setup.cfg"), pytrace=False)
  File "/usr/local/lib/python3.9/site-packages/_pytest/outcomes.py", line 194, in fail
    raise Failed(msg=reason, pytrace=pytrace)
Failed: [pytest] section in setup.cfg files is no longer supported, change to [tool:pytest] instead.
*** Error code 1