Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: update codebase for modern python #244

Merged
merged 3 commits into from
Jul 6, 2022

Conversation

miketheman
Copy link
Member

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 [email protected]

@miketheman
Copy link
Member Author

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

@miketheman
Copy link
Member Author

And another tweak to remove a setuptools warning.

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
improts removal (thanks to `flake8` check)

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

Closes pypa#203

Signed-off-by: Mike Fiedler <[email protected]>
Since Python 3.4, `pathlib` provides a nicer interface to manipulate
paths, removing the need to split and reassemble strings.

The addition of `pytest.param(..., id=fn.name)` is to set the test name
output to a human-friendly string in the event of failure or `--verbose`

Signed-off-by: Mike Fiedler <[email protected]>
As of setuptools v56.0.0, the `license_file` entry is deprecated,
raising `SetuptoolsDeprecationWarning` during the `packaging` step.

Refs: pypa/setuptools#2620

Signed-off-by: Mike Fiedler <[email protected]>
@miketheman miketheman force-pushed the miketheman/the-future-is-now branch from ac52ff9 to 9d3183c Compare July 6, 2022 14:37
@di di merged commit bb88dab into pypa:main Jul 6, 2022
@miketheman miketheman deleted the miketheman/the-future-is-now branch July 6, 2022 14:41
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.

2 participants