Skip to content

Commit 5ed5c74

Browse files
chore(deps): update from template
1 parent 69e8701 commit 5ed5c74

15 files changed

Lines changed: 418 additions & 239 deletions

.copier-answers.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
_commit: v0.9.4
1+
_commit: v0.9.6
22
_src_path: gh:helmut-hoffer-von-ankershoffen/oe-python-template
33
attestations_enabled: true
44
author_email: helmuthva@googlemail.com

ATTRIBUTIONS.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1963,7 +1963,7 @@ SOFTWARE.
19631963

19641964
```
19651965

1966-
## brave-search-python-client (0.4.15) - MIT License
1966+
## brave-search-python-client (0.4.18) - MIT License
19671967

19681968
🦁 Brave Search Python Client supporting Web, Image, News and Video search.
19691969

CLI_REFERENCE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ $ brave-search-python-client [OPTIONS] COMMAND [ARGS]...
1212
* `--show-completion`: Show completion for the current shell, to copy it or customize the installation.
1313
* `--help`: Show this message and exit.
1414

15-
🦁 Brave Search Python Client v0.4.16 - built with love in Berlin 🐻
15+
🦁 Brave Search Python Client v0.4.18 - built with love in Berlin 🐻
1616

1717
**Commands**:
1818

Dockerfile

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,26 +17,30 @@ ENV PATH="/app/.venv/bin:$PATH"
1717
RUN --mount=type=cache,target=/root/.cache/uv \
1818
--mount=type=bind,source=uv.lock,target=uv.lock \
1919
--mount=type=bind,source=pyproject.toml,target=pyproject.toml \
20-
uv sync --frozen --no-install-project --no-dev --no-editable
20+
uv sync --frozen --no-install-project --all-extras --no-dev --no-editable
2121

2222
# Then, add the rest of the project source code and install it
2323
# Installing separately from its dependencies allows optimal layer caching
2424
COPY pyproject.toml /app
25+
COPY .python-version /app
2526
COPY uv.lock /app
2627
COPY src /app/src
27-
COPY .env.example /app/.env.example
28-
COPY tests /app/tests
2928
COPY LICENSE /app
3029
COPY *.md /app
31-
COPY .python-version /app
30+
31+
COPY .env.example /app/.env.example
32+
COPY tests /app/tests
33+
34+
# Install project specifics
35+
# Nothing yet
3236

3337
RUN --mount=type=cache,target=/root/.cache/uv \
34-
uv sync --frozen --no-dev --no-editable
38+
uv sync --frozen --all-extras --no-dev --no-editable
3539

3640
ENV BRAVE_SEARCH_PYTHON_CLIENT_RUNNING_IN_CONTAINER=1
3741

3842
# No healthcheck by default
3943
HEALTHCHECK NONE
4044

4145
# But feel free to add arguments and options as needed when doing a docker run
42-
ENTRYPOINT ["uv", "run", "--no-dev", "brave-search-python-client"]
46+
ENTRYPOINT ["uv", "run", "--all-extras", "--no-dev", "brave-search-python-client"]

Makefile

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Makefile for running common development tasks
22

33
# Define all PHONY targets
4-
.PHONY: all act audit bump clean dist docs docker_build lint setup setup test test_scheduled update_from_template
4+
.PHONY: all act audit bump clean dist docs docker_build lint setup setup test test_scheduled test_long_running update_from_template
55

66
# Main target i.e. default sessions defined in noxfile.py
77
all:
@@ -34,6 +34,10 @@ act audit bump dist docs lint setup test update_from_template:
3434
test_scheduled:
3535
uv run --all-extras nox -s test -p 3.11 -- -m scheduled
3636

37+
## Run tests marked as long_running
38+
test_long_running:
39+
uv run --all-extras nox -s test -p 3.11 -- -m long_running
40+
3741
## Clean build artifacts and caches
3842
clean:
3943
rm -rf .mypy_cache
@@ -73,6 +77,7 @@ help:
7377
@echo " setup - Setup development environment"
7478
@echo " test [3.11|3.12|3.13] - Run tests (for specific Python version)"
7579
@echo " test_scheduled - Run tests marked as scheduled with Python 3.11"
80+
@echo " test_long_running - Run tests marked as long running with Python 3.11"
7681
@echo " update_from_template - Update from template using copier"
7782
@echo ""
7883
@echo "Built with love in Berlin 🐻"

README.md

Lines changed: 229 additions & 223 deletions
Large diffs are not rendered by default.

noxfile.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -467,6 +467,8 @@ def test(session: nox.Session) -> None:
467467
pytest_args = ["pytest", "--disable-warnings", JUNIT_XML, "-n", "auto", "--dist", "loadgroup"]
468468
if _is_act_environment():
469469
pytest_args.extend(["-k", NOT_SKIP_WITH_ACT])
470+
if session.posargs:
471+
pytest_args.extend(session.posargs)
470472
session.run(*pytest_args)
471473

472474

pyproject.toml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -255,10 +255,12 @@ asyncio_default_fixture_loop_scope = "function"
255255
env = ["COVERAGE_FILE=.coverage", "COVERAGE_PROCESS_START=pyproject.toml"]
256256
markers = [
257257
# From Template
258-
"no_extras: tests that do require no extras installed",
259-
"scheduled: tests to run on a schedule",
260-
"sequential: exclude from parallel test execution",
261-
"skip_with_act: don't run with act",
258+
"no_extras: Tests that do require no extras installed.",
259+
"scheduled: Tests to run on a schedule. They will still be part on non-scheduled test executions.",
260+
"sequential: Exclude from parallel test execution.",
261+
"skip_with_act: Don't run with act.",
262+
"docker: tests That require Docker.",
263+
"long_running: Tests that take a long time to run. Tests marked as long runing excluded from execution by default. Enable by passing any -m your_marker that matches a marker of the test.",
262264
# Custom
263265
# Nothing yet
264266
]

sonar-project.properties

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,5 @@ sonar.links.ci=https://github.com/helmut-hoffer-von-ankershoffen/brave-search-py
88
sonar.links.issues=https://github.com/helmut-hoffer-von-ankershoffen/brave-search-python-client/issues
99
sonar.python.coverage.reportPaths=reports/coverage.xml
1010
sonar.python.version=3.11, 3.12, 3.13
11-
sonar.coverage.exclusions=noxfile.py, tests/**, examples/**, docs/**
12-
sonar.exclusions=examples/**, docs/**
11+
sonar.coverage.exclusions=noxfile.py, tests/**, examples/**, docs/**, dist/**, dist_vercel/**
12+
sonar.exclusions=examples/**, docs/**, dist/**, dist_vercel/**
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
"""Test suite for package brave_search_python_client."""

0 commit comments

Comments
 (0)