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

chore: refactor dependencies #67

Merged
merged 4 commits into from
Oct 4, 2024

Conversation

lawrenceadams
Copy link
Collaborator

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 ...

- 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
@lawrenceadams lawrenceadams linked an issue Sep 29, 2024 that may be closed by this pull request
Copy link
Collaborator

@katy-sadowski katy-sadowski left a 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.

README.md Outdated Show resolved Hide resolved
@lawrenceadams lawrenceadams force-pushed the 66-chore-cleanup-and-refactor-requirements branch from 5838c18 to a9e4c89 Compare October 1, 2024 14:20
README.md Outdated
Comment on lines 37 to 44
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
Copy link
Collaborator

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 :))

Copy link
Collaborator Author

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!!

Copy link
Collaborator

@katy-sadowski katy-sadowski left a comment

Choose a reason for hiding this comment

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

🏇 🏇 🏇 🏇

@lawrenceadams lawrenceadams merged commit 7cc3567 into main Oct 4, 2024
@lawrenceadams lawrenceadams deleted the 66-chore-cleanup-and-refactor-requirements branch October 4, 2024 07:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

chore: cleanup and refactor requirements
2 participants