pypa / readme_renderer

Safely render long_description/README files in Warehouse
Apache License 2.0
158 stars 88 forks source link

chore: update codebase for modern python #244

Closed miketheman closed 2 years ago

miketheman commented 2 years ago

We're on Python 3.7 and higher, so we can clean up any artifacts left from previously-supported Python eras.

Most of the heavy lifting was done with pyupgrade followed by unused imports removal (thanks to flake8 check).

Refs: https://pypi.org/project/pyupgrade/

Closes #203

Signed-off-by: Mike Fiedler miketheman@gmail.com

miketheman commented 2 years ago

While I was here, I replaced os.path usages with pathlib (see refactor commit)

miketheman commented 2 years ago

And another tweak to remove a setuptools warning.