-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Conversation
Fokko
commented
May 23, 2022
•
edited
Loading
edited
- 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
310e6ff
to
5ac2540
Compare
- 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
5ac2540
to
3932350
Compare
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 |
There was a problem hiding this comment.
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
.
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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.
There was a problem hiding this 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).
…d-build-instructions
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 🤔 |
27b67cd
to
ba7ae10
Compare
ba7ae10
to
292305c
Compare
@rdblue It is actually part of Intellij now 🥳 |