Skip to content

Migrate nixops-aws to python3#37

Merged
grahamc merged 1 commit intoNixOS:masterfrom
bhipple:u/py3
Mar 22, 2020
Merged

Migrate nixops-aws to python3#37
grahamc merged 1 commit intoNixOS:masterfrom
bhipple:u/py3

Conversation

@bhipple
Copy link
Contributor

@bhipple bhipple commented Mar 22, 2020

This does a 1-way migration to python3, and fully resolves #29.

Aside from the release.nix, there are no manual changes in this PR. It was
generated with:

2to3 -n -w **/*.py -x dict -x print
black .

We have already fixed the print function in a previous PR, as well as all of
the dictionary iterators. 2to3 is not particularly smart about this and will
add a list() cast just about everywhere otherwise.

CC @grahamc @AmineChikhaoui

This does a 1-way migration to python3, and fully resolves NixOS#29.

Aside from the `release.nix`, there are no manual changes in this PR. It was
generated with:

    2to3 -n -w nixopsaws/**/*.py -x dict -x print
    black .

We have already fixed the `print` function in a previous PR, as well as all of
the dictionary iterators. `2to3` is not particularly smart about this and will
add a `list()` cast just about everywhere otherwise.
@bhipple
Copy link
Contributor Author

bhipple commented Mar 22, 2020

I have built this w/ python3 against the latest master commit of NixOps itself, and re-provisioned my AWS cluster successfully. However, my AWS cluster is relatively small/simple, so it doesn't exercise all of the code.

That said, the remaining diff in this PR should be very readable and easy to understand.

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.

Port to python3

2 participants