Merge "Remove support for Python < 3.10"
This commit is contained in:
@@ -1,5 +1,3 @@
|
||||
WebOb>=1.8.0
|
||||
simplegeneric
|
||||
netaddr>=0.7.12
|
||||
# TODO: Drop this when Python 3.10 is our minimum supported version
|
||||
importlib_metadata>=4.4 # Apache-2.0
|
||||
|
||||
@@ -6,7 +6,7 @@ author_email = python-wsme@googlegroups.com
|
||||
description_file = README.rst
|
||||
url = https://opendev.org/x/wsme
|
||||
license = MIT
|
||||
python_requires = >=3.8
|
||||
python_requires = >=3.10
|
||||
classifier =
|
||||
Development Status :: 3 - Alpha
|
||||
Operating System :: OS Independent
|
||||
|
||||
+2
-3
@@ -1,7 +1,6 @@
|
||||
import importlib.metadata
|
||||
import weakref
|
||||
|
||||
import importlib_metadata
|
||||
|
||||
from wsme.exc import ClientSideError
|
||||
|
||||
|
||||
@@ -106,7 +105,7 @@ def register_protocol(protocol):
|
||||
def getprotocol(name, **options):
|
||||
protocol_class = registered_protocols.get(name)
|
||||
if protocol_class is None:
|
||||
for entry_point in importlib_metadata.entry_points().select(
|
||||
for entry_point in importlib.metadata.entry_points(
|
||||
group='wsme.protocols',
|
||||
):
|
||||
if entry_point.name == name:
|
||||
|
||||
Reference in New Issue
Block a user