File: 002-remove-importlib_metadata.patch

package info (click to toggle)
python-asv-runner 0.2.1-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 420 kB
  • sloc: python: 1,631; makefile: 13
file content (24 lines) | stat: -rw-r--r-- 671 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
Forwarded: https://github.com/airspeed-velocity/asv_runner/pull/47

--- a/asv_runner/benchmarks/__init__.py
+++ b/asv_runner/benchmarks/__init__.py
@@ -37,8 +37,7 @@
 import pkgutil
 from pathlib import Path
 
-# py37 doesn't have importlib.metadata
-from importlib_metadata import distributions
+from importlib.metadata import distributions
 
 from ._exceptions import NotRequired
 
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -23,7 +23,6 @@
   "Topic :: System :: Benchmark",
 ]
 dependencies = [
-    "importlib-metadata", # This is OK, it was vendored from 3.8
 ] # Make sure there's nothing (or almost nothing) here
 requires-python = ">=3.7"
 readme = "README.md"