Declare Python 3.10 support

... and removes the remaining code and dependency for Python < 3.8.

Change-Id: I305d3b9cc43bedf980826b10ab26959d10e35997
This commit is contained in:
Takashi Kajinami 2023-10-07 12:05:47 +09:00
parent 3c5feadda2
commit 0f9d1372d6
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

@ -5,4 +5,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