Skip to content

Commit 2103d62

Browse files
Drop Python 3.7 Support and Remove Usage of pkg_resources (#535)
1 parent ac2ef3e commit 2103d62

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

.pylintrc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -307,8 +307,8 @@ min-public-methods=2
307307
[EXCEPTIONS]
308308

309309
# Exceptions that will emit a warning when caught.
310-
overgeneral-exceptions=BaseException,
311-
Exception
310+
overgeneral-exceptions=builtins.BaseException,
311+
builtins.Exception
312312

313313

314314
[FORMAT]

linodecli/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@
66
import argparse
77
import os
88
import sys
9+
from importlib.metadata import version
910
from sys import argv
1011

11-
import pkg_resources
1212
from rich import print as rprint
1313
from rich.table import Table
1414

@@ -30,7 +30,7 @@
3030

3131
# this might not be installed at the time of building
3232
try:
33-
VERSION = pkg_resources.require("linode-cli")[0].version
33+
VERSION = version("linode-cli")
3434
except:
3535
VERSION = "building"
3636

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,6 @@ def bake_version(v):
100100
]
101101
},
102102
data_files=get_baked_files(),
103-
python_requires=">=3.7",
103+
python_requires=">=3.8",
104104
include_package_data=True,
105105
)

0 commit comments

Comments
 (0)