Skip to content

Commit

Permalink
[Auto-generated] Check & update dependencies (pyproject.toml) (#217)
Browse files Browse the repository at this point in the history
* Update dependencies in `pyproject.toml`

* Loosen httpx-related packages

Support httpx-auth.

* Set upper limit on DLite-Python

Use non-deprecated typer parameter 'autocompletion' instead of
'shell_complete'

---------

Co-authored-by: Casper Welzel Andersen <casper.w.andersen@sintef.no>
  • Loading branch information
TEAM4-0 and CasperWA authored Jan 6, 2025
1 parent 2c7b9ec commit c28479d
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 11 deletions.
4 changes: 2 additions & 2 deletions entities_service/cli/commands/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ def set_config(
f"{CONFIG.model_config['env_prefix'].upper()!r}."
),
show_choices=True,
shell_complete=ConfigFields.autocomplete,
autocompletion=ConfigFields.autocomplete,
case_sensitive=False,
show_default=False,
),
Expand Down Expand Up @@ -197,7 +197,7 @@ def unset(
typer.Argument(
help="Configuration option to unset.",
show_choices=True,
shell_complete=ConfigFields.autocomplete,
autocompletion=ConfigFields.autocomplete,
case_sensitive=False,
show_default=False,
),
Expand Down
19 changes: 10 additions & 9 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -42,28 +42,29 @@ requires-python = "~=3.10"
dynamic = ["version", "description"]

dependencies = [
"fastapi ~=0.115.5",
"httpx ~=0.27.2",
"pydantic-settings ~=2.6",
"fastapi ~=0.115.6",
"httpx >=0.27.2,<1",
"pydantic-settings ~=2.7",
"pymongo ~=4.10",
"python-dotenv ~=1.0",
"uvicorn ~=0.32.1",
"uvicorn ~=0.34.0",
]

[project.optional-dependencies]
cli = [
"httpx-auth ~=0.22.0",
"pyyaml ~=6.0",
"typer ~=0.13.1",
"typer ~=0.15.1",
]
testing = [
"cryptography ~=43.0",
"dlite-python ~=0.5.23",
"cryptography >=43.0.0,<45",
# Pytest runs, end in Segmentation Fault for dlite-python versions >0.5.23
"dlite-python <=0.5.23; python_version<'3.13'", # DLite is not yet compatible with Python 3.13
"mongomock ~=4.3",
"pytest ~=8.3",
"pytest-asyncio ~=0.24.0",
"pytest-asyncio ~=0.25.1",
"pytest-cov ~=6.0",
"pytest-httpx ~=0.34.0",
"pytest-httpx >=0.34.0,<1",
"entities-service[cli]",
]
server = [
Expand Down

0 comments on commit c28479d

Please sign in to comment.