Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Commit

Permalink
Merge pull request #90 from climatepolicyradar/bugfix/vespa-ml-deps
Browse files Browse the repository at this point in the history
Bugfix - swollen image size.
  • Loading branch information
THOR300 authored Nov 13, 2023
2 parents 207881e + ff9530c commit ee83671
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/check-version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
GITHUB_RELEASE_VERSION=$(curl --silent "https://api.github.com/repos/climatepolicyradar/data-access/releases/latest" | jq -r '.tag_name')
# remove the "v" from the version
GITHUB_RELEASE_VERSION=${GITHUB_RELEASE_VERSION:1}
GITHUB_RELEASE_VERSION=${GITHUB_RELEASE_VERSION#v}
echo "GITHUB_RELEASE_VERSION=${GITHUB_RELEASE_VERSION}"
# Check that semver tag is greater than the github release version
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pre-commit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:

- name: Install dependencies
run: |
python -m pip install "poetry==1.3.2" && poetry install && poetry run pre-commit install
python -m pip install "poetry==1.3.2" && poetry install --with vespa,dev,extras
- name: Run pre-commit checks
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:

- name: Install dependencies
run: |
python -m pip install "poetry==1.3.2" && poetry install
python -m pip install "poetry==1.3.2" && poetry install --with vespa,dev,extras
- name: Run test suite
run: |
poetry run python -m pytest -vvv
2 changes: 1 addition & 1 deletion poetry.lock

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

12 changes: 11 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "cpr-data-access"
version = "0.2.9"
version = "0.3.0"
description = ""
authors = ["CPR Tech <[email protected]>"]
readme = "README.md"
Expand All @@ -16,11 +16,19 @@ pandas = "^1.5.3"
datasets = "^2.14.0"
langdetect = "^1.0.9"
deprecation = "^2.1.0"

[tool.poetry.group.vespa]
optional = true

[tool.poetry.group.vespa.dependencies]
pyvespa = "^0.37.1"
pyyaml = "^6.0.1"
sentence-transformers = "^2.2.2"
torch = "2.0.0"

[tool.poetry.group.dev]
optional = true

[tool.poetry.group.dev.dependencies]
pre-commit = "^2.20.0"
pyright = "^1.1.281"
Expand All @@ -29,6 +37,8 @@ black = "^22.10.0"
moto = "^4.0.11"
pytest-dotenv = "^0.5.2"

[tool.poetry.group.extras]
optional = true

[tool.poetry.group.extras.dependencies]
spacy = "^3.5.1"
Expand Down

0 comments on commit ee83671

Please sign in to comment.