Declare Python 3.10 support
... and removes the remaining code and dependency for Python < 3.8. Change-Id: I305d3b9cc43bedf980826b10ab26959d10e35997
This commit is contained in:
parent
3c5feadda2
commit
0f9d1372d6
@ -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")
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user