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

Python Package #5

Merged
merged 5 commits into from
Jul 12, 2017
Merged

Python Package #5

merged 5 commits into from
Jul 12, 2017

Conversation

davidgasquez
Copy link
Contributor

Hey there @michael-erasmus! Today I spent more time iterating on the idea of publishing the Python package automatically.

With this PR we should be able to run make package-python to produce a tar.gz file ready to be uploaded to the releases Github tab. This process could be automated but it's a bit tricky with 2FA without using service keys. Alternatively, I thought we could just have sub-repositories and we wouldn't need to create and upload the tar.gz file, just pushing the changes in each repo 😄

PS: In the future I think all of this could be automated in a sort of CI/CD pipeline. Will 🔍 a bit more soon!

@davidgasquez
Copy link
Contributor Author

Also, I'm not sure if we should track the autogenerated files. 😅

I think I'll remove them as they don't seem extremely valuable and will cause some noise in the PR diffs.


# Compile services
docker run --rm -v $PWD:$PWD -u 1000 -w $PWD \
bufferapp/grpc-docker-python:latest \
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Copy link
Contributor

Choose a reason for hiding this comment

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

💯 Thanks for creating the issue, happy to switch to the official image if they support 3.6 :D

Copy link
Contributor

@michael-erasmus michael-erasmus left a comment

Choose a reason for hiding this comment

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

Awesome, thanks for the PR!

This process could be automated but it's a bit tricky with 2FA without using service keys.
In the future I think all of this could be automated in a sort of CI/CD pipeline. Will 🔍 a bit more soon!

Yeah this does feel like a perfect application for a proper CI solution. I think ideally you could just push to master and a CI job can take care of building the package and release.

Happy to just use a manual step for now while we're still building things out!


# Compile services
docker run --rm -v $PWD:$PWD -u 1000 -w $PWD \
bufferapp/grpc-docker-python:latest \
Copy link
Contributor

Choose a reason for hiding this comment

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

💯 Thanks for creating the issue, happy to switch to the official image if they support 3.6 :D

@michael-erasmus
Copy link
Contributor

michael-erasmus commented Jul 11, 2017

Hey @davidgasquez! Just wanted to mention that I implemented the package in the buda-events-consumer repo, and it was super smooth!

@davidgasquez davidgasquez merged commit 6fa79d0 into master Jul 12, 2017
@davidgasquez davidgasquez deleted the python-package-script branch July 12, 2017 10:19
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.

2 participants