From d62c1c366948fa001eced71b0c6ab78e5885a47c Mon Sep 17 00:00:00 2001 From: Paul Natsuo Kishimoto Date: Mon, 8 Apr 2024 19:06:06 +0200 Subject: [PATCH] Drop Python 3.7 support (reached EOL 2023-06-27) --- iam_units/currency.py | 8 +------- pyproject.toml | 3 +-- 2 files changed, 2 insertions(+), 9 deletions(-) diff --git a/iam_units/currency.py b/iam_units/currency.py index d7420f8..104c50e 100644 --- a/iam_units/currency.py +++ b/iam_units/currency.py @@ -4,13 +4,7 @@ iam_units.update.currency. """ -from typing import Union - -try: - from typing import Literal -except ImportError: - from typing_extensions import Literal # type: ignore [assignment] - +from typing import Literal, Union #: Exchange rate data for method=EXC, period=2005, from #: https://data.oecd.org/conversion/exchange-rates.htm diff --git a/pyproject.toml b/pyproject.toml index 65bd856..d630e92 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -17,7 +17,6 @@ classifiers = [ "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 3", - "Programming Language :: Python :: 3.7", "Programming Language :: Python :: 3.8", "Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.10", @@ -26,7 +25,7 @@ classifiers = [ "Topic :: Scientific/Engineering", "Topic :: Scientific/Engineering :: Information Analysis", ] -dependencies = ["pint >= 0.11", "typing_extensions; python_version < '3.8'"] +dependencies = ["pint >= 0.11"] [project.urls] homepage = "https://github.com/IAMconsortium/units"