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

Add Poetry build and release instructions #4844

Merged
merged 4 commits into from
Jun 6, 2022

Conversation

Fokko
Copy link
Contributor

@Fokko Fokko commented May 23, 2022

  • Migrate from the setup.cfg to pyproject.toml
  • Add poetry.lock for pinning all the dependencies, to make sure that we exactly know which libraries are installed
  • Add detailed instruction on how to run a release

@Fokko Fokko force-pushed the fd-add-build-instructions branch 2 times, most recently from 310e6ff to 5ac2540 Compare May 25, 2022 14:50
@Fokko Fokko marked this pull request as ready for review May 25, 2022 14:50
- Migrate from the setup.cfg to pyproject.toml
- Add poetry.lock for pinning all the dependencies, to make sure that we exactly know which libraries are installed
- Add detailed instruction on how to run a release
@Fokko Fokko force-pushed the fd-add-build-instructions branch from 5ac2540 to 3932350 Compare May 25, 2022 16:39
@Fokko Fokko changed the title Add build and release instructions Add Poetry build and release instructions May 26, 2022
@rdblue
Copy link
Contributor

rdblue commented May 29, 2022

This looks good to me, but I'd love to hear what other python people think about moving to poetry.


Testing is done using tox. The config can be found in `tox.ini` within the python directory of the iceberg project.
## Development
Copy link
Contributor

Choose a reason for hiding this comment

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

It would be good to have a setup section that instructs you to run pip install poetry.

Copy link
Contributor

Choose a reason for hiding this comment

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

I also had to upgrade pip and virtualenv in Ubuntu 20.04 to get poetry working properly.

Copy link
Contributor

Choose a reason for hiding this comment

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

sudo pip install virtualenv --upgrade and sudo python3 -m pip install --upgrade pip

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Cool, I've added the commands 👍🏻 btw, some interesting combinations you have there. sudo shouldn't be required, and pip install and python3 -m pip install are equivalent.

Copy link
Contributor

@rdblue rdblue left a comment

Choose a reason for hiding this comment

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

I think this is a good change overall. It's nice to have a lock file and poetry seems really friendly. What I like most is that there is an IntelliJ plugin that I was easily able to get working so my IDE environment and CLI environment are mostly the same (fixtures don't work yet, but I probably just need to configure IntelliJ).

@Fokko
Copy link
Contributor Author

Fokko commented Jun 1, 2022

Hey @rdblue thanks for giving this a try. Unfortunately, the IDEA plugin seems to be outdated; https://plugins.jetbrains.com/plugin/14307-poetry/versions Only available for <= 2021 🤔

@Fokko Fokko force-pushed the fd-add-build-instructions branch 2 times, most recently from 27b67cd to ba7ae10 Compare June 1, 2022 16:39
@Fokko Fokko force-pushed the fd-add-build-instructions branch from ba7ae10 to 292305c Compare June 1, 2022 16:39
@Fokko
Copy link
Contributor Author

Fokko commented Jun 6, 2022

@rdblue It is actually part of Intellij now 🥳
image

@rdblue rdblue merged commit fe089fb into apache:master Jun 6, 2022
namrathamyske pushed a commit to namrathamyske/iceberg that referenced this pull request Jul 10, 2022
namrathamyske pushed a commit to namrathamyske/iceberg that referenced this pull request Jul 10, 2022
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