eriwen / lcov-to-cobertura-xml

Converts lcov output to Cobertura-compatible XML for CI
https://eriwen.github.io/lcov-to-cobertura-xml/
Apache License 2.0
187 stars 73 forks source link

distutils.spawn is deprecated, gonna be removed #47

Open nolange opened 2 years ago

nolange commented 2 years ago
/tmp/./lcov_cobertura.py:21: DeprecationWarning: The distutils package is deprecated and slated for removal in Python 3.12. Use setuptools or check PEP 632 for potential alternatives
  from distutils.spawn import find_executable
ktnishide commented 9 months ago

Having issues on Azure pipelines:

Starting: lcov to cobertura
==============================================================================
Task         : Command line
Description  : Run a command line script using Bash on Linux and macOS and cmd.exe on Windows
Version      : 2.229.0
Author       : Microsoft Corporation
Help         : https://docs.microsoft.com/azure/devops/pipelines/tasks/utility/command-line
==============================================================================
Generating script.
========================== Starting Command Output ===========================
/bin/bash --noprofile --norc /Users/runner/work/_temp/b8eef4a9-c1cd-43bf-ad8c-dc5c99920dd7.sh
Cloning into 'lcov-to-cobertura-xml'...
Traceback (most recent call last):
  File "/Users/runner/work/1/s/lcov-to-cobertura-xml/lcov_cobertura/lcov_cobertura.py", line 21, in <module>
    from distutils.spawn import find_executable
ModuleNotFoundError: No module named 'distutils'
##[error]Bash exited with code '1'.
Finishing: lcov to cobertura
chinloyal commented 9 months ago

Fixed with #51