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

pyatlas now supports Python 3! #576

Merged
merged 12 commits into from
Dec 11, 2019
Merged

pyatlas now supports Python 3! #576

merged 12 commits into from
Dec 11, 2019

Conversation

lucaspcram
Copy link
Contributor

@lucaspcram lucaspcram commented Dec 11, 2019

Description:

Upgraded pyatlas to support Python 3! Note that we no longer support Python 2. If you need a Python 2 version of pyatlas, you can install version 5.3.6. But please note that all future pyatlas updates will be Python 3 only.

We now also use protobuf 3.11.1 as opposed to atlas's 2.6.1. This should not affect pyatlas's ability to read atlases, as everything should be backwards compatible.

Potential Impact:

Downstream users can continue as normal. Those waiting for a Python 3 version are satisfied.

Unit Test Approach:

Same unit test suite as before.

Test Results:

Tests pass. Also opened and played with some old atlas files using the new pyatlas. Everything seems to be compatible, and protobuf3 is working.


In doubt: Contributing Guidelines

@@ -6,7 +6,7 @@
To get setup in a new project folder, run:

$ mkdir newproj && cd newproj
$ virtualenv venv --python=python2.7
$ virtualenv venv --python=python3
Copy link
Contributor

Choose a reason for hiding this comment

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

🎉

@@ -85,6 +87,21 @@ do
"$protoc_path" "$protofile" --proto_path="$protofiles_dir" --python_out="$pyatlas_root_dir/$pyatlas_srcdir/autogen" || err_shutdown "protoc invocation failed"
done < <(find "$protofiles_dir" -type f -name "*.proto" -print0)

# TODO HACK FIXME this is to fix badly generated import statements by proto3 library
Copy link
Contributor

Choose a reason for hiding this comment

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

TODO HACK FIXME

🤣
but for real, thanks for adding this note here for tracking purposes!

@adahn6 adahn6 merged commit d88293e into osmlab:dev Dec 11, 2019
@lucaspcram lucaspcram deleted the pya branch December 11, 2019 23:33
@matthieun matthieun added this to the 5.8.9 milestone Mar 16, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants