Skip to content

Commit

Permalink
Merge pull request #3 from DeepLcom/extra-packages
Browse files Browse the repository at this point in the history
Labeled database specific dependencies in the extras
  • Loading branch information
Somtom authored Oct 19, 2023
2 parents 3a28b78 + d063287 commit e908c72
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 36 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
curl -sSL https://install.python-poetry.org | python3 - --version 1.5.1
- name: Install dependencies
run: |
poetry install
poetry install --all-extras
- name: Lint with flake8
run: |
# stop the build if there are Python syntax errors or undefined names
Expand Down
70 changes: 37 additions & 33 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 6 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,14 @@ jinja2 = "^3.1.2"
pydantic-settings = "^2.0.3"

# Clickhouse specific
clickhouse-driver = {extras = ["numpy"], version = "^0.2.6"}
clickhouse-driver = {extras = ["numpy"], version = "^0.2.6", optional = true}

# Google Bigquery specific
google-cloud-bigquery = "^3.11.4"
google-cloud-bigquery = {version ="^3.11.4", optional = true}

[tool.poetry.extras]
bigquery = ["google-cloud-bigquery"]
clickhouse = ["clickhouse-driver"]

[tool.poetry.dev-dependencies]
pytest = "^7.2"
Expand Down

0 comments on commit e908c72

Please sign in to comment.