Skip to content

remove some of the python2 compat and update syntax - #230

Merged
neersighted merged 1 commit into
python-poetry:masterfrom
danieleades:refactor/remove-python2-compat
Nov 16, 2021
Merged

neersighted merged 1 commit into
python-poetry:masterfrom
danieleades:refactor/remove-python2-compat

Conversation

@danieleades

Copy link
Copy Markdown
Contributor

No description provided.

@danieleades danieleades changed the title remove some of the python2 compat remove some of the python2 compat and update syntax Nov 13, 2021

@neersighted neersighted left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good overall with one exception -- the refactor of the TemporaryDirectory wrapper is incorrect.

Comment thread poetry/core/masonry/builders/builder.py Resolved
Comment thread poetry/core/masonry/builders/builder.py Resolved
@danieleades
danieleades force-pushed the refactor/remove-python2-compat branch from 99112fb to 7a6d07b Compare November 15, 2021 16:33
@danieleades

Copy link
Copy Markdown
Contributor Author

is there a reason not to simply add the pyupgrade hook?

@branchv

branchv commented Nov 15, 2021

Copy link
Copy Markdown
Member

python-poetry/poetry#4758 adds the hook for poetry, so i imagine we should do the same here

@branchv branchv mentioned this pull request Nov 15, 2021
2 tasks
@neersighted

Copy link
Copy Markdown
Member

python-poetry/poetry#4758 adds the hook for poetry, so i imagine we should do the same here

The intention is to copy the automation from poetry once I've got it dialled in to everyone's satisfaction. Still, a PR adding pyupgrade would not be unwelcome -- I just plan to replace the .pre-commit-config.yaml in this repo in a day or two.

@danieleades
danieleades force-pushed the refactor/remove-python2-compat branch 3 times, most recently from 6e2573b to 0a609f4 Compare November 16, 2021 07:25
neersighted
neersighted previously approved these changes Nov 16, 2021
@danieleades
danieleades force-pushed the refactor/remove-python2-compat branch 2 times, most recently from 040f146 to b8339bb Compare November 16, 2021 10:55
Comment thread poetry/core/masonry/builders/builder.py Resolved
Comment thread poetry/core/masonry/builders/builder.py Resolved
@danieleades
danieleades force-pushed the refactor/remove-python2-compat branch 2 times, most recently from 949eca2 to bb63ed0 Compare November 16, 2021 12:18
@danieleades
danieleades force-pushed the refactor/remove-python2-compat branch from bb63ed0 to 0706fd4 Compare November 16, 2021 12:20
@neersighted
neersighted merged commit eef3b74 into python-poetry:master Nov 16, 2021
@danieleades
danieleades deleted the refactor/remove-python2-compat branch November 16, 2021 13:01
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.

3 participants