-
Notifications
You must be signed in to change notification settings - Fork 6
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
chore: refactor dependencies #67
chore: refactor dependencies #67
Conversation
- Remove unused dependencies from requirements.txt - Add common requirements to requirements/common.in - Add duckdb requirements to requirements/duckdb.in - Add postgres requirements to requirements/postgres.in - Autogenerate requirements/duckdb.txt and requirements/postgres.txt using uv pip compile
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 tested locally and it works great. Thanks for the clean up :)
One small change suggested and then good to go.
5838c18
to
a9e4c89
Compare
README.md
Outdated
4. In your virtual environment, install dbt and other required dependencies as follows: | ||
```bash | ||
pip3 install -r requirements.txt | ||
# choose requirements depending on which database you're targeting | ||
pip3 install -r requirements/duckdb.txt | ||
pip3 install -r requirements/postgres.txt | ||
pre-commit install | ||
``` | ||
- This will install dbt-core, the dbt duckdb and postgres adapters, SQLFluff (a SQL linter), pre-commit (in order to run SQLFluff on all newly-committed code in this repo), duckdb (to support bootstrapping scripts), and various dependencies for the listed packages |
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.
can remove this now! and maybe just add the specification that requirements needs to be installed in the virtual env (maybe obvious, but can't be too careful :))
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.
ahhh dim moment - thought I had!!
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.
🏇 🏇 🏇 🏇
This pull request updates the project's dependencies and requirements. It removes unused dependencies from the requirements.txt file and adds common requirements to requirements/common.in - allowing deterministic builds for devcontainers/codespaces/ci - and allowing easier updates of packages.
Compiled output requirement files are generated with
uv pip compile ...