From 8d3d06ed149f64f1f46917b9d097b27836deff75 Mon Sep 17 00:00:00 2001 From: Alex Lubbock Date: Fri, 16 Aug 2024 22:32:41 +0100 Subject: [PATCH] ci: test on python 3.8-3.12 --- .github/workflows/python-package.yml | 2 +- microbench/__init__.py | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/python-package.yml b/.github/workflows/python-package.yml index 434f225..deb74b9 100644 --- a/.github/workflows/python-package.yml +++ b/.github/workflows/python-package.yml @@ -17,7 +17,7 @@ jobs: strategy: matrix: os: [ubuntu-latest, macos-latest, windows-latest] - python-version: [3.6, 3.7, 3.8, 3.9] + python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"] steps: - uses: actions/checkout@v2 diff --git a/microbench/__init__.py b/microbench/__init__.py index 027224a..9a83ecf 100644 --- a/microbench/__init__.py +++ b/microbench/__init__.py @@ -29,7 +29,7 @@ psutil = None try: import conda - import conda.testing.conda_cli + import conda.cli.python_api except ImportError: conda = None try: @@ -277,9 +277,9 @@ def capture_conda_packages(self, bm_data): # Use subprocess pkg_list = subprocess.check_output(['conda', 'list']).decode('utf8') else: - # Use conda API - pkg_list, stderr, ret_code = conda.testing.conda_cli.run_command( - conda.testing.conda_cli.Commands.LIST) + # Use conda Python API + pkg_list, stderr, ret_code = conda.cli.python_api.run_command( + conda.cli.python_api.Commands.LIST) if ret_code != 0 or stderr: raise RuntimeError('Error running conda list: {}'.format(