Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,7 @@ ipython_config.py
# in version control.
# https://pdm.fming.dev/#use-with-ide
.pdm.toml
uv.lock

# PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
__pypackages__/
Expand Down
2 changes: 1 addition & 1 deletion examples/adaptive-crag/application.py
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ def router(state: State, query: str, attempts: int = ATTEMPTS) -> tuple[dict[str
table_names = db.table_names()
chat_history = state["chat_history"]
# using this as a `response_model` to ensure the route is valid
routes = Literal[*table_names, "web_search", "assistant"] # type: ignore
routes = Literal.__getitem__((*table_names, "web_search", "assistant")) # type: ignore
try:
route = ask_gemini.create(
messages=[
Expand Down
4 changes: 4 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,10 @@ redis = [
"redis"
]

release = [
"jinja2",
]

tests = [
"pytest",
"pytest-asyncio",
Expand Down
5 changes: 5 additions & 0 deletions scripts/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,11 @@ python scripts/apache_release.py verify 0.41.0 0

# Skip upload step in 'all' command
python scripts/apache_release.py all 0.41.0 0 your_apache_id --no-upload

# Generate release emails from templates
python scripts/apache_release.py vote-email --version 0.41.0 --rc 0
python scripts/apache_release.py result-email --version 0.41.0 --rc 0 --binding-yes 3 --non-binding-yes 2 --binding-no 0 --non-binding-no 1
python scripts/apache_release.py announce-email --version 0.41.0
```

Output: `dist/` directory with tar.gz (archive + sdist), whl, plus .asc and .sha512 files. The wheel is validated with `twine check` to ensure metadata correctness before signing. Install from the whl file to test it out after running the `wheel` subcommand.
Expand Down
Loading
Loading