Merge "Declare Python 3.10 support"

This commit is contained in:
Zuul 2023-11-16 17:50:33 +00:00 committed by Gerrit Code Review
commit 041fc11a9a
3 changed files with 3 additions and 8 deletions

View File

@ -13,11 +13,6 @@
# License for the specific language governing permissions and limitations
# under the License.
try:
# For Python 3.8 and later
import importlib.metadata as importlib_metadata
except ImportError:
# For everyone else
import importlib_metadata
import importlib.metadata
__version__ = importlib_metadata.version("osprofiler")
__version__ = importlib.metadata.version("osprofiler")

View File

@ -6,4 +6,3 @@ oslo.utils>=3.33.0 # Apache-2.0
PrettyTable>=0.7.2 # BSD
requests>=2.14.2 # Apache-2.0
WebOb>=1.7.1 # MIT
importlib_metadata>=1.7.0;python_version<'3.8' # Apache-2.0

View File

@ -17,6 +17,7 @@ classifier =
Programming Language :: Python :: 3
Programming Language :: Python :: 3.8
Programming Language :: Python :: 3.9
Programming Language :: Python :: 3.10
Programming Language :: Python :: 3 :: Only
Programming Language :: Python :: Implementation :: CPython