[chirp_devel] tox
Bernhard Hailer
Tue Feb 14 21:54:52 PST 2023
> https://chirp.danplanet.com/projects/chirp/wiki/DevelopersPython3Environment
Thanks, I should have found this myself...
I still need some help, tox is unhappy, and it's not due to my changes
to the code.
I just migrated from the old Mercurial-based py2 setup to a Chirp-next
compliant setup on Linux Mint 21.1 ("Vera"). Everything works, my patch
works, tox does not.
All tox areas fail, all seemingly because the py3dev version doesn't
match. I've tried a lot, but I can't figure out how to get the tox setup
right. Apparently there's no py3dev installed at all, but I can't find
it for installation either...
tox output attached. Would anyone know what I'm missing?
Thanks!
Bernhard
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://intrepid.danplanet.com/pipermail/chirp_devel/attachments/20230214/f4e57533/attachment-0001.html
-------------- next part --------------
.pkg: _optional_hooks> python /usr/local/lib/python3.10/dist-packages/pyproject_api/_backend.py True setuptools.build_meta __legacy__
.pkg: get_requires_for_build_sdist> python /usr/local/lib/python3.10/dist-packages/pyproject_api/_backend.py True setuptools.build_meta __legacy__
style: packaging backend failed (code=1), with InvalidVersion: Invalid version: 'py3dev'
/home/argon/Programming/Chirp/chirp FT4 multiplier/chirp/.tox/.pkg/lib/python3.10/site-packages/setuptools/dist.py:548: UserWarning: The version specified ('py3dev') is an invalid version, this may not work as expected with newer versions of setuptools, pip, and PyPI. Please see PEP 440 for more details.
warnings.warn(
Traceback (most recent call last):
File "/usr/local/lib/python3.10/dist-packages/pyproject_api/_backend.py", line 90, in run
outcome = backend_proxy(parsed_message["cmd"], **parsed_message["kwargs"])
File "/usr/local/lib/python3.10/dist-packages/pyproject_api/_backend.py", line 32, in __call__
return getattr(on_object, name)(*args, **kwargs)
File "/home/argon/Programming/Chirp/chirp FT4 multiplier/chirp/.tox/.pkg/lib/python3.10/site-packages/setuptools/build_meta.py", line 341, in get_requires_for_build_sdist
return self._get_build_requires(config_settings, requirements=[])
File "/home/argon/Programming/Chirp/chirp FT4 multiplier/chirp/.tox/.pkg/lib/python3.10/site-packages/setuptools/build_meta.py", line 320, in _get_build_requires
self.run_setup()
File "/home/argon/Programming/Chirp/chirp FT4 multiplier/chirp/.tox/.pkg/lib/python3.10/site-packages/setuptools/build_meta.py", line 484, in run_setup
super(_BuildMetaLegacyBackend,
File "/home/argon/Programming/Chirp/chirp FT4 multiplier/chirp/.tox/.pkg/lib/python3.10/site-packages/setuptools/build_meta.py", line 335, in run_setup
exec(code, locals())
File "<string>", line 7, in <module>
File "/home/argon/Programming/Chirp/chirp FT4 multiplier/chirp/.tox/.pkg/lib/python3.10/site-packages/setuptools/_distutils/core.py", line 185, in setup
return run_commands(dist)
File "/home/argon/Programming/Chirp/chirp FT4 multiplier/chirp/.tox/.pkg/lib/python3.10/site-packages/setuptools/_distutils/core.py", line 201, in run_commands
dist.run_commands()
File "/home/argon/Programming/Chirp/chirp FT4 multiplier/chirp/.tox/.pkg/lib/python3.10/site-packages/setuptools/_distutils/dist.py", line 969, in run_commands
self.run_command(cmd)
File "/home/argon/Programming/Chirp/chirp FT4 multiplier/chirp/.tox/.pkg/lib/python3.10/site-packages/setuptools/dist.py", line 1213, in run_command
super().run_command(command)
File "/home/argon/Programming/Chirp/chirp FT4 multiplier/chirp/.tox/.pkg/lib/python3.10/site-packages/setuptools/_distutils/dist.py", line 987, in run_command
cmd_obj.ensure_finalized()
File "/home/argon/Programming/Chirp/chirp FT4 multiplier/chirp/.tox/.pkg/lib/python3.10/site-packages/setuptools/_distutils/cmd.py", line 111, in ensure_finalized
self.finalize_options()
File "/home/argon/Programming/Chirp/chirp FT4 multiplier/chirp/.tox/.pkg/lib/python3.10/site-packages/setuptools/command/egg_info.py", line 219, in finalize_options
parsed_version = parse_version(self.egg_version)
File "/home/argon/Programming/Chirp/chirp FT4 multiplier/chirp/.tox/.pkg/lib/python3.10/site-packages/pkg_resources/_vendor/packaging/version.py", line 197, in __init__
raise InvalidVersion(f"Invalid version: '{version}'")
pkg_resources.extern.packaging.version.InvalidVersion: Invalid version: 'py3dev'
Backend: run command get_requires_for_build_sdist with args {'config_settings': None}
Backend: Wrote response {'code': 1, 'exc_type': 'InvalidVersion', 'exc_msg': "Invalid version: 'py3dev'"} to /tmp/pep517_get_requires_for_build_sdist-8jaov2oh.json
style: FAIL ✖ in 0.15 seconds
.pkg: prepare_metadata_for_build_wheel> python /usr/local/lib/python3.10/dist-packages/pyproject_api/_backend.py True setuptools.build_meta __legacy__
unit: packaging backend failed (code=1), with InvalidVersion: Invalid version: 'py3dev'
Traceback (most recent call last):
File "/usr/local/lib/python3.10/dist-packages/pyproject_api/_backend.py", line 90, in run
outcome = backend_proxy(parsed_message["cmd"], **parsed_message["kwargs"])
File "/usr/local/lib/python3.10/dist-packages/pyproject_api/_backend.py", line 32, in __call__
return getattr(on_object, name)(*args, **kwargs)
File "/home/argon/Programming/Chirp/chirp FT4 multiplier/chirp/.tox/.pkg/lib/python3.10/site-packages/setuptools/build_meta.py", line 377, in prepare_metadata_for_build_wheel
self.run_setup()
File "/home/argon/Programming/Chirp/chirp FT4 multiplier/chirp/.tox/.pkg/lib/python3.10/site-packages/setuptools/build_meta.py", line 484, in run_setup
super(_BuildMetaLegacyBackend,
File "/home/argon/Programming/Chirp/chirp FT4 multiplier/chirp/.tox/.pkg/lib/python3.10/site-packages/setuptools/build_meta.py", line 335, in run_setup
exec(code, locals())
File "<string>", line 7, in <module>
File "/home/argon/Programming/Chirp/chirp FT4 multiplier/chirp/.tox/.pkg/lib/python3.10/site-packages/setuptools/_distutils/core.py", line 185, in setup
return run_commands(dist)
File "/home/argon/Programming/Chirp/chirp FT4 multiplier/chirp/.tox/.pkg/lib/python3.10/site-packages/setuptools/_distutils/core.py", line 201, in run_commands
dist.run_commands()
File "/home/argon/Programming/Chirp/chirp FT4 multiplier/chirp/.tox/.pkg/lib/python3.10/site-packages/setuptools/_distutils/dist.py", line 969, in run_commands
self.run_command(cmd)
File "/home/argon/Programming/Chirp/chirp FT4 multiplier/chirp/.tox/.pkg/lib/python3.10/site-packages/setuptools/dist.py", line 1213, in run_command
super().run_command(command)
File "/home/argon/Programming/Chirp/chirp FT4 multiplier/chirp/.tox/.pkg/lib/python3.10/site-packages/setuptools/_distutils/dist.py", line 987, in run_command
cmd_obj.ensure_finalized()
File "/home/argon/Programming/Chirp/chirp FT4 multiplier/chirp/.tox/.pkg/lib/python3.10/site-packages/setuptools/_distutils/cmd.py", line 111, in ensure_finalized
self.finalize_options()
File "/home/argon/Programming/Chirp/chirp FT4 multiplier/chirp/.tox/.pkg/lib/python3.10/site-packages/setuptools/command/dist_info.py", line 72, in finalize_options
egg_info.finalize_options()
File "/home/argon/Programming/Chirp/chirp FT4 multiplier/chirp/.tox/.pkg/lib/python3.10/site-packages/setuptools/command/egg_info.py", line 219, in finalize_options
parsed_version = parse_version(self.egg_version)
File "/home/argon/Programming/Chirp/chirp FT4 multiplier/chirp/.tox/.pkg/lib/python3.10/site-packages/pkg_resources/_vendor/packaging/version.py", line 197, in __init__
raise InvalidVersion(f"Invalid version: '{version}'")
pkg_resources.extern.packaging.version.InvalidVersion: Invalid version: 'py3dev'
Backend: run command prepare_metadata_for_build_wheel with args {'metadata_directory': '/home/argon/Programming/Chirp/chirp FT4 multiplier/chirp/.tox/.pkg/.meta', 'config_settings': {'--build-option': []}}
Backend: Wrote response {'code': 1, 'exc_type': 'InvalidVersion', 'exc_msg': "Invalid version: 'py3dev'"} to /tmp/pep517_prepare_metadata_for_build_wheel-4je81cww.json
unit: FAIL ✖ in 0.02 seconds
.pkg: prepare_metadata_for_build_wheel> python /usr/local/lib/python3.10/dist-packages/pyproject_api/_backend.py True setuptools.build_meta __legacy__
driver: packaging backend failed (code=1), with InvalidVersion: Invalid version: 'py3dev'
Traceback (most recent call last):
File "/usr/local/lib/python3.10/dist-packages/pyproject_api/_backend.py", line 90, in run
outcome = backend_proxy(parsed_message["cmd"], **parsed_message["kwargs"])
File "/usr/local/lib/python3.10/dist-packages/pyproject_api/_backend.py", line 32, in __call__
return getattr(on_object, name)(*args, **kwargs)
File "/home/argon/Programming/Chirp/chirp FT4 multiplier/chirp/.tox/.pkg/lib/python3.10/site-packages/setuptools/build_meta.py", line 377, in prepare_metadata_for_build_wheel
self.run_setup()
File "/home/argon/Programming/Chirp/chirp FT4 multiplier/chirp/.tox/.pkg/lib/python3.10/site-packages/setuptools/build_meta.py", line 484, in run_setup
super(_BuildMetaLegacyBackend,
File "/home/argon/Programming/Chirp/chirp FT4 multiplier/chirp/.tox/.pkg/lib/python3.10/site-packages/setuptools/build_meta.py", line 335, in run_setup
exec(code, locals())
File "<string>", line 7, in <module>
File "/home/argon/Programming/Chirp/chirp FT4 multiplier/chirp/.tox/.pkg/lib/python3.10/site-packages/setuptools/_distutils/core.py", line 185, in setup
return run_commands(dist)
File "/home/argon/Programming/Chirp/chirp FT4 multiplier/chirp/.tox/.pkg/lib/python3.10/site-packages/setuptools/_distutils/core.py", line 201, in run_commands
dist.run_commands()
File "/home/argon/Programming/Chirp/chirp FT4 multiplier/chirp/.tox/.pkg/lib/python3.10/site-packages/setuptools/_distutils/dist.py", line 969, in run_commands
self.run_command(cmd)
File "/home/argon/Programming/Chirp/chirp FT4 multiplier/chirp/.tox/.pkg/lib/python3.10/site-packages/setuptools/dist.py", line 1213, in run_command
super().run_command(command)
File "/home/argon/Programming/Chirp/chirp FT4 multiplier/chirp/.tox/.pkg/lib/python3.10/site-packages/setuptools/_distutils/dist.py", line 987, in run_command
cmd_obj.ensure_finalized()
File "/home/argon/Programming/Chirp/chirp FT4 multiplier/chirp/.tox/.pkg/lib/python3.10/site-packages/setuptools/_distutils/cmd.py", line 111, in ensure_finalized
self.finalize_options()
File "/home/argon/Programming/Chirp/chirp FT4 multiplier/chirp/.tox/.pkg/lib/python3.10/site-packages/setuptools/command/dist_info.py", line 72, in finalize_options
egg_info.finalize_options()
File "/home/argon/Programming/Chirp/chirp FT4 multiplier/chirp/.tox/.pkg/lib/python3.10/site-packages/setuptools/command/egg_info.py", line 219, in finalize_options
parsed_version = parse_version(self.egg_version)
File "/home/argon/Programming/Chirp/chirp FT4 multiplier/chirp/.tox/.pkg/lib/python3.10/site-packages/pkg_resources/_vendor/packaging/version.py", line 197, in __init__
raise InvalidVersion(f"Invalid version: '{version}'")
pkg_resources.extern.packaging.version.InvalidVersion: Invalid version: 'py3dev'
Backend: run command prepare_metadata_for_build_wheel with args {'metadata_directory': '/home/argon/Programming/Chirp/chirp FT4 multiplier/chirp/.tox/.pkg/.meta', 'config_settings': {'--build-option': []}}
Backend: Wrote response {'code': 1, 'exc_type': 'InvalidVersion', 'exc_msg': "Invalid version: 'py3dev'"} to /tmp/pep517_prepare_metadata_for_build_wheel-_ji0uxdh.json
.pkg: _exit> python /usr/local/lib/python3.10/dist-packages/pyproject_api/_backend.py True setuptools.build_meta __legacy__
style: FAIL code 1 (0.15 seconds)
unit: FAIL code 1 (0.02 seconds)
driver: FAIL code 1 (0.04 seconds)
evaluation failed :( (0.26 seconds)
More information about the chirp_devel
mailing list