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

Migrate nixops-aws to python3 #37

Merged
merged 1 commit into from Mar 22, 2020
Merged

Migrate nixops-aws to python3 #37

merged 1 commit into from Mar 22, 2020

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