-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
Convert project to poetry
#6423
Conversation
Codecov Report
@@ Coverage Diff @@
## master #6423 +/- ##
=======================================
Coverage 60.99% 60.99%
=======================================
Files 157 157
Lines 12819 12819
Branches 1741 1741
=======================================
Hits 7819 7819
Misses 4764 4764
Partials 236 236
|
No objection here, it sounds like it'll be useful. @getredash/maintainers @arikfr This ok with yourselves? 😄 |
This isn't quite ready yet :P |
I thought Poetry was a good attempt. |
No worries. Was more thinking we should ensure the concept itself is ok with people. 😄 |
I've made one important change to the Dockerfile: I removed the I'm now going to create a venv to compare the poetry install with the requirements.txt install and see if there are any differing packages. |
Ok, here's the diff list I got: 55a56
> futures==3.0.5
74c75
< inflection==0.5.1
---
> inflection==0.3.1
115a117
> pip==23.2.1
159c161,162
< rdflib==7.0.0
---
> rdflib==6.3.2
> redash==23.9.0 /home/sid/Git/redash
175a179
> setuptools==68.2.0
210a215
> wheel==0.40.0 wheel/setuptools are from my pyenv, and redash is because I installed without |
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.
Just noticed that this is missing the dependency updates from the rq related PR yesterday: 41495ba
They should be added yeah?
d727602 should be the rq changes. Is it not showing up on the diff? I forgot about the |
Ahhh, yeah that wasn't showing up for me. No worries. 😄 |
Alright, I've enabled auto-merge on this PR. @justinclift when you have a chance, can you re-review to merge? |
|
name = "redash" | ||
version = "23.09.0-dev" | ||
description = "Make Your Company Data Driven. Connect to any data source, easily visualize, dashboard and share your data." | ||
authors = ["Your Name <[email protected]>"] |
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.
authors = ["Your Name <[email protected]>"] | |
authors = ["Redash maintainers and contributors"] |
Or does it have to be an email address?
Shoot, the auto-merge didn't quite help here did it. Sorry @arikfr ! I'll create a followup PR. The author does indeed have to include an email address; do we have one on the |
I can set something up on redash.io - just wonder where to send it? Maybe there is some email->discord integration? |
Interesting idea. We'd better make sure it never sends anything confidential via that channel though (password resets, etc), unless we're sure it can direct to some private for-admins-only channel. 😄 |
What type of PR is this?
Description
This PR converts us from
requirements.txt
-pinned dependencies topoetry
, which has much more stable dependency chains and should prevent us from having updated dependencies break our project.I added two groups (besides the main group):
dev
, for development dependencies, andall_ds
, to keep the separation we had with the requirements files.How is this tested?
Untested as of yet (so don't merge), but the plan is to:
pip freeze > image_packages.txt
poetry install
pip freeze > poetry_packages.txt
diff image_packages.txt poetry_packages.txt
Related Tickets & Documents
#5910
Mobile & Desktop Screenshots/Recordings (if there are UI changes)
N/A