Skip to content

Commit

Permalink
feat: better dependency management (#922)
Browse files Browse the repository at this point in the history
* feat: Add poetry docs group

* feat: Add new dependency group for easier poetry installation

* fix: update lock

* fix: install poetry without docs

* fix: move hypercorn to docs dependencies

* docs: update changelog
  • Loading branch information
JohannesWesch authored Jun 24, 2024
1 parent 3e439c3 commit 9b0263b
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/sdk-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ jobs:
if: steps.cached-poetry-dependencies.outputs.cache-hit != 'true'
run: |
poetry config installer.max-workers 10
poetry install --no-interaction
poetry install --no-interaction --without docs
- name: Run pytest
env:
Expand Down
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
- Add `how_to_resume_a_run_after_a_crash` notebook.

### Fixes
...
- Remove unnecessary dependencies from IL

### Deprecations
...
Expand Down
4 changes: 1 addition & 3 deletions poetry.lock

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

18 changes: 13 additions & 5 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,12 @@ packages = [{ include = "intelligence_layer", from = "src" }]
[tool.poetry.dependencies]
python = ">=3.10,<3.13"
pydantic = "2.7.*"
fastapi = "^0.110.3"
uvicorn = "^0.30.1"
aleph-alpha-client = ">=7.1.0"
python-dotenv = "*"
semantic-text-splitter = "^0.13.3"
qdrant-client = "^1.9.2"
rich = "^13.7.1"
nbconvert = "^7.16.4"
datasets = "^2.20.0"
jupyter = "^1.0.0"
requests = "^2.32.3"
pycountry = "24.6.1"
opentelemetry-api = "^1.22.0"
Expand All @@ -46,7 +42,7 @@ pre-commit = "^3.7.1"
# tests
pytest = "^8.2"
pytest-xdist = "^3.6.1"
hypercorn = "^0.17.3"
nbconvert = "^7.16.4"

# typing
httpx = "*"
Expand All @@ -64,6 +60,18 @@ sphinx-rtd-theme = "^2.0.0"
sphinx = "^7.3.7"
matplotlib = "^3.9.0"

[tool.poetry.group.docs.dependencies]
fastapi = "^0.110.3"
uvicorn = "^0.30.1"
hypercorn = "^0.17.3"
jupyter = "^1.0.0"

# [tool.poetry.extras]
# argilla = ["argilla"]
# grader = ["rouge-score", "sacrebleu"]
# language-detection = ["lingua-language-detector", "pycountry"]


[tool.mypy]
files = "src,tests"
strict = "True"
Expand Down

0 comments on commit 9b0263b

Please sign in to comment.