Skip to content

Conversation

@glennmatthews
Copy link
Contributor

@glennmatthews glennmatthews commented Mar 14, 2024

  • Replace distutils.version.LooseVersion (distutils is removed in Python 3.12) with looseversion.LooseVersion (a very lightweight package that reimplements this specific class only)
    • Instead, vendor distutils.version module into netutils.
  • Replace distutils.strtobool usage in tasks.py with local code. (Relates to but does not close Implement strtobool? #280, as that was asking for a strtobool or is_truthy implementation in netutils itself)
  • Require flake8 7.x as earlier versions didn't support Python 3.12
  • Require pylint 3.x as earlier versions didn't support Python 3.12

@itdependsnetworks itdependsnetworks merged commit 4d2cece into develop Mar 16, 2024
@itdependsnetworks itdependsnetworks deleted the u/glennmatthews-280 branch March 16, 2024 20:54
michalis1 pushed a commit to michalis1/netutils that referenced this pull request Feb 2, 2026
* Vendor distutils version to be local after deprecated in Py3.12
* Python 3.12 support
---------

Co-authored-by: itdependsnetworks <ken@celenza.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Implement strtobool?

2 participants