From 2f72d38e862b261d3957de76ccd6e81ffd9b580e Mon Sep 17 00:00:00 2001 From: mattip Date: Mon, 18 Sep 2023 15:09:09 +0300 Subject: [PATCH] update update.py to use packaging.version --- README.md | 2 +- update.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 54a5a0faf..42f23e59a 100644 --- a/README.md +++ b/README.md @@ -23,4 +23,4 @@ To add documentation for a version: `` comment, and changing the `href` locations appropriately. -- Finally, run `python3 update.py` and commit all changes. +- Finally, run `pip install packaging; python3 update.py` and commit all changes. diff --git a/update.py b/update.py index 03df5d972..61e3f1bda 100755 --- a/update.py +++ b/update.py @@ -7,7 +7,7 @@ import os import argparse import html.parser -from pkg_resources import parse_version +from packaging.version import parse as parse_version class Scaper(html.parser.HTMLParser):