mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-02-17 08:14:42 +04:00
Replace pkg_resources.get_distribution with importlib-metadata
This commit is contained in:
parent
9c37473256
commit
ebe5132576
5 changed files with 20 additions and 7 deletions
|
|
@ -211,3 +211,8 @@ def copy_tree_to_path(src_dir, dest_dir):
|
|||
shutil.copytree(srcname, destname)
|
||||
else:
|
||||
shutil.copy(srcname, destname)
|
||||
|
||||
|
||||
def parse_version(s):
|
||||
"""poor man's version comparison"""
|
||||
return tuple(int(p) for p in s.split('.'))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue