fastapi-router-versioning 1.2.2__tar.gz → 1.2.3__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {fastapi_router_versioning-1.2.2 → fastapi_router_versioning-1.2.3}/.github/latest-changes.yml +1 -1
- {fastapi_router_versioning-1.2.2 → fastapi_router_versioning-1.2.3}/.github/workflows/build-docs.yml +8 -8
- {fastapi_router_versioning-1.2.2 → fastapi_router_versioning-1.2.3}/.github/workflows/bump-pre-commit-hooks.yml +5 -5
- {fastapi_router_versioning-1.2.2 → fastapi_router_versioning-1.2.3}/.github/workflows/create-draft-release.yml +3 -3
- {fastapi_router_versioning-1.2.2 → fastapi_router_versioning-1.2.3}/.github/workflows/deploy-docs.yml +3 -3
- {fastapi_router_versioning-1.2.2 → fastapi_router_versioning-1.2.3}/.github/workflows/detect-conflicts.yml +1 -1
- {fastapi_router_versioning-1.2.2 → fastapi_router_versioning-1.2.3}/.github/workflows/guard-dependencies.yml +1 -1
- {fastapi_router_versioning-1.2.2 → fastapi_router_versioning-1.2.3}/.github/workflows/pre-commit.yml +4 -4
- {fastapi_router_versioning-1.2.2 → fastapi_router_versioning-1.2.3}/.github/workflows/prepare-release.yml +3 -3
- {fastapi_router_versioning-1.2.2 → fastapi_router_versioning-1.2.3}/.github/workflows/publish.yml +3 -3
- {fastapi_router_versioning-1.2.2 → fastapi_router_versioning-1.2.3}/.github/workflows/test-fastapi-main.yml +6 -6
- {fastapi_router_versioning-1.2.2 → fastapi_router_versioning-1.2.3}/.github/workflows/test-redistribute.yml +6 -6
- {fastapi_router_versioning-1.2.2 → fastapi_router_versioning-1.2.3}/.github/workflows/test.yml +19 -19
- {fastapi_router_versioning-1.2.2 → fastapi_router_versioning-1.2.3}/.github/workflows/zizmor.yml +2 -2
- {fastapi_router_versioning-1.2.2 → fastapi_router_versioning-1.2.3}/.pre-commit-config.yaml +1 -1
- {fastapi_router_versioning-1.2.2 → fastapi_router_versioning-1.2.3}/PKG-INFO +1 -1
- {fastapi_router_versioning-1.2.2 → fastapi_router_versioning-1.2.3}/docs/advanced/reverse-proxy-and-sub-apps.md +5 -2
- {fastapi_router_versioning-1.2.2 → fastapi_router_versioning-1.2.3}/docs/release-notes.md +27 -0
- {fastapi_router_versioning-1.2.2 → fastapi_router_versioning-1.2.3}/fastapi_router_versioning/__init__.py +1 -1
- {fastapi_router_versioning-1.2.2 → fastapi_router_versioning-1.2.3}/pyproject.toml +20 -9
- {fastapi_router_versioning-1.2.2 → fastapi_router_versioning-1.2.3}/scripts/build_icons.py +4 -3
- {fastapi_router_versioning-1.2.2 → fastapi_router_versioning-1.2.3}/scripts/docs_screenshots.py +5 -5
- fastapi_router_versioning-1.2.3/tests/test_docs_src.py +145 -0
- {fastapi_router_versioning-1.2.2 → fastapi_router_versioning-1.2.3}/uv.lock +109 -102
- fastapi_router_versioning-1.2.3/zensical.toml +127 -0
- fastapi_router_versioning-1.2.2/mkdocs.yml +0 -130
- fastapi_router_versioning-1.2.2/tests/test_docs_src.py +0 -55
- {fastapi_router_versioning-1.2.2 → fastapi_router_versioning-1.2.3}/.github/dependabot.yml +0 -0
- {fastapi_router_versioning-1.2.2 → fastapi_router_versioning-1.2.3}/.gitignore +0 -0
- {fastapi_router_versioning-1.2.2 → fastapi_router_versioning-1.2.3}/.python-version +0 -0
- {fastapi_router_versioning-1.2.2 → fastapi_router_versioning-1.2.3}/LICENSE +0 -0
- {fastapi_router_versioning-1.2.2 → fastapi_router_versioning-1.2.3}/README.md +0 -0
- {fastapi_router_versioning-1.2.2 → fastapi_router_versioning-1.2.3}/docs/advanced/callback-hook.md +0 -0
- {fastapi_router_versioning-1.2.2 → fastapi_router_versioning-1.2.3}/docs/advanced/callbacks-and-webhooks.md +0 -0
- {fastapi_router_versioning-1.2.2 → fastapi_router_versioning-1.2.3}/docs/advanced/custom-url-format.md +0 -0
- {fastapi_router_versioning-1.2.2 → fastapi_router_versioning-1.2.3}/docs/advanced/deprecation-headers.md +0 -0
- {fastapi_router_versioning-1.2.2 → fastapi_router_versioning-1.2.3}/docs/advanced/index.md +0 -0
- {fastapi_router_versioning-1.2.2 → fastapi_router_versioning-1.2.3}/docs/advanced/latest-alias.md +0 -0
- {fastapi_router_versioning-1.2.2 → fastapi_router_versioning-1.2.3}/docs/advanced/multiple-routers.md +0 -0
- {fastapi_router_versioning-1.2.2 → fastapi_router_versioning-1.2.3}/docs/advanced/openapi-hook.md +0 -0
- {fastapi_router_versioning-1.2.2 → fastapi_router_versioning-1.2.3}/docs/advanced/self-hosted-assets.md +0 -0
- {fastapi_router_versioning-1.2.2 → fastapi_router_versioning-1.2.3}/docs/advanced/validation-error-status-code.md +0 -0
- {fastapi_router_versioning-1.2.2 → fastapi_router_versioning-1.2.3}/docs/advanced/version-discovery.md +0 -0
- {fastapi_router_versioning-1.2.2 → fastapi_router_versioning-1.2.3}/docs/assets/images/apple-touch-icon.png +0 -0
- {fastapi_router_versioning-1.2.2 → fastapi_router_versioning-1.2.3}/docs/assets/images/favicon.ico +0 -0
- {fastapi_router_versioning-1.2.2 → fastapi_router_versioning-1.2.3}/docs/assets/images/favicon.png +0 -0
- {fastapi_router_versioning-1.2.2 → fastapi_router_versioning-1.2.3}/docs/assets/images/favicon.svg +0 -0
- {fastapi_router_versioning-1.2.2 → fastapi_router_versioning-1.2.3}/docs/assets/images/logo-header.svg +0 -0
- {fastapi_router_versioning-1.2.2 → fastapi_router_versioning-1.2.3}/docs/assets/images/logo.svg +0 -0
- {fastapi_router_versioning-1.2.2 → fastapi_router_versioning-1.2.3}/docs/assets/images/wordmark.png +0 -0
- {fastapi_router_versioning-1.2.2 → fastapi_router_versioning-1.2.3}/docs/assets/screenshots/latest-alias.jpg +0 -0
- {fastapi_router_versioning-1.2.2 → fastapi_router_versioning-1.2.3}/docs/assets/screenshots/migration-root.jpg +0 -0
- {fastapi_router_versioning-1.2.2 → fastapi_router_versioning-1.2.3}/docs/assets/screenshots/quickstart-calver.jpg +0 -0
- {fastapi_router_versioning-1.2.2 → fastapi_router_versioning-1.2.3}/docs/assets/screenshots/quickstart-semver-v1.jpg +0 -0
- {fastapi_router_versioning-1.2.2 → fastapi_router_versioning-1.2.3}/docs/assets/screenshots/quickstart-semver-v2.jpg +0 -0
- {fastapi_router_versioning-1.2.2 → fastapi_router_versioning-1.2.3}/docs/assets/screenshots/redoc-v2.jpg +0 -0
- {fastapi_router_versioning-1.2.2 → fastapi_router_versioning-1.2.3}/docs/assets/screenshots/swagger-v1.jpg +0 -0
- {fastapi_router_versioning-1.2.2 → fastapi_router_versioning-1.2.3}/docs/assets/screenshots/swagger-v2.jpg +0 -0
- {fastapi_router_versioning-1.2.2 → fastapi_router_versioning-1.2.3}/docs/assets/screenshots/swagger-v3.jpg +0 -0
- {fastapi_router_versioning-1.2.2 → fastapi_router_versioning-1.2.3}/docs/assets/screenshots/url-format-latest.jpg +0 -0
- {fastapi_router_versioning-1.2.2 → fastapi_router_versioning-1.2.3}/docs/assets/screenshots/url-format-v1.jpg +0 -0
- {fastapi_router_versioning-1.2.2 → fastapi_router_versioning-1.2.3}/docs/assets/screenshots/versions-dashboard.jpg +0 -0
- {fastapi_router_versioning-1.2.2 → fastapi_router_versioning-1.2.3}/docs/assets/screenshots/webhooks-v1.jpg +0 -0
- {fastapi_router_versioning-1.2.2 → fastapi_router_versioning-1.2.3}/docs/assets/screenshots/webhooks-v2.jpg +0 -0
- {fastapi_router_versioning-1.2.2 → fastapi_router_versioning-1.2.3}/docs/examples.md +0 -0
- {fastapi_router_versioning-1.2.2 → fastapi_router_versioning-1.2.3}/docs/how-it-works.md +0 -0
- {fastapi_router_versioning-1.2.2 → fastapi_router_versioning-1.2.3}/docs/index.md +0 -0
- {fastapi_router_versioning-1.2.2 → fastapi_router_versioning-1.2.3}/docs/lifecycle.md +0 -0
- {fastapi_router_versioning-1.2.2 → fastapi_router_versioning-1.2.3}/docs/migrating.md +0 -0
- {fastapi_router_versioning-1.2.2 → fastapi_router_versioning-1.2.3}/docs/quickstart.md +0 -0
- {fastapi_router_versioning-1.2.2 → fastapi_router_versioning-1.2.3}/docs/reference.md +0 -0
- {fastapi_router_versioning-1.2.2 → fastapi_router_versioning-1.2.3}/docs/stylesheets/extra.css +0 -0
- {fastapi_router_versioning-1.2.2 → fastapi_router_versioning-1.2.3}/docs_src/advanced/callback_hook.py +0 -0
- {fastapi_router_versioning-1.2.2 → fastapi_router_versioning-1.2.3}/docs_src/advanced/callbacks.py +0 -0
- {fastapi_router_versioning-1.2.2 → fastapi_router_versioning-1.2.3}/docs_src/advanced/custom_url_format.py +0 -0
- {fastapi_router_versioning-1.2.2 → fastapi_router_versioning-1.2.3}/docs_src/advanced/deprecation_headers.py +0 -0
- {fastapi_router_versioning-1.2.2 → fastapi_router_versioning-1.2.3}/docs_src/advanced/latest_alias.py +0 -0
- {fastapi_router_versioning-1.2.2 → fastapi_router_versioning-1.2.3}/docs_src/advanced/multiple_routers.py +0 -0
- {fastapi_router_versioning-1.2.2 → fastapi_router_versioning-1.2.3}/docs_src/advanced/openapi_hook.py +0 -0
- {fastapi_router_versioning-1.2.2 → fastapi_router_versioning-1.2.3}/docs_src/advanced/reverse_proxy.py +0 -0
- {fastapi_router_versioning-1.2.2 → fastapi_router_versioning-1.2.3}/docs_src/advanced/self_hosted_assets.py +0 -0
- {fastapi_router_versioning-1.2.2 → fastapi_router_versioning-1.2.3}/docs_src/advanced/validation_error_status_code.py +0 -0
- {fastapi_router_versioning-1.2.2 → fastapi_router_versioning-1.2.3}/docs_src/advanced/version_discovery.py +0 -0
- {fastapi_router_versioning-1.2.2 → fastapi_router_versioning-1.2.3}/docs_src/advanced/webhooks.py +0 -0
- {fastapi_router_versioning-1.2.2 → fastapi_router_versioning-1.2.3}/docs_src/lifecycle/legacy_route.py +0 -0
- {fastapi_router_versioning-1.2.2 → fastapi_router_versioning-1.2.3}/docs_src/migration/adopt.py +0 -0
- {fastapi_router_versioning-1.2.2 → fastapi_router_versioning-1.2.3}/docs_src/migration/change_endpoint.py +0 -0
- {fastapi_router_versioning-1.2.2 → fastapi_router_versioning-1.2.3}/docs_src/migration/retire_unversioned.py +0 -0
- {fastapi_router_versioning-1.2.2 → fastapi_router_versioning-1.2.3}/docs_src/quickstart/calver.py +0 -0
- {fastapi_router_versioning-1.2.2 → fastapi_router_versioning-1.2.3}/docs_src/quickstart/semver.py +0 -0
- {fastapi_router_versioning-1.2.2 → fastapi_router_versioning-1.2.3}/examples/calver_app.py +0 -0
- {fastapi_router_versioning-1.2.2 → fastapi_router_versioning-1.2.3}/examples/dashboard_assets/versions_dashboard.css +0 -0
- {fastapi_router_versioning-1.2.2 → fastapi_router_versioning-1.2.3}/examples/dashboard_assets/versions_dashboard.html +0 -0
- {fastapi_router_versioning-1.2.2 → fastapi_router_versioning-1.2.3}/examples/deprecation_headers_app.py +0 -0
- {fastapi_router_versioning-1.2.2 → fastapi_router_versioning-1.2.3}/examples/download_static_assets.py +0 -0
- {fastapi_router_versioning-1.2.2 → fastapi_router_versioning-1.2.3}/examples/mounted_subapps_app.py +0 -0
- {fastapi_router_versioning-1.2.2 → fastapi_router_versioning-1.2.3}/examples/multi_router_app.py +0 -0
- {fastapi_router_versioning-1.2.2 → fastapi_router_versioning-1.2.3}/examples/openapi_hook_app.py +0 -0
- {fastapi_router_versioning-1.2.2 → fastapi_router_versioning-1.2.3}/examples/self_hosted_docs_app.py +0 -0
- {fastapi_router_versioning-1.2.2 → fastapi_router_versioning-1.2.3}/examples/semver_app.py +0 -0
- {fastapi_router_versioning-1.2.2 → fastapi_router_versioning-1.2.3}/examples/semver_major_only_app.py +0 -0
- {fastapi_router_versioning-1.2.2 → fastapi_router_versioning-1.2.3}/examples/validation_override_integration_app.py +0 -0
- {fastapi_router_versioning-1.2.2 → fastapi_router_versioning-1.2.3}/examples/versions_dashboard_app.py +0 -0
- {fastapi_router_versioning-1.2.2 → fastapi_router_versioning-1.2.3}/examples/versions_dashboard_hook_app.py +0 -0
- {fastapi_router_versioning-1.2.2 → fastapi_router_versioning-1.2.3}/examples/webhook_versioning_app.py +0 -0
- {fastapi_router_versioning-1.2.2 → fastapi_router_versioning-1.2.3}/fastapi_router_versioning/_builder.py +0 -0
- {fastapi_router_versioning-1.2.2 → fastapi_router_versioning-1.2.3}/fastapi_router_versioning/_compat.py +0 -0
- {fastapi_router_versioning-1.2.2 → fastapi_router_versioning-1.2.3}/fastapi_router_versioning/_dashboard.py +0 -0
- {fastapi_router_versioning-1.2.2 → fastapi_router_versioning-1.2.3}/fastapi_router_versioning/_deprecation.py +0 -0
- {fastapi_router_versioning-1.2.2 → fastapi_router_versioning-1.2.3}/fastapi_router_versioning/_docs.py +0 -0
- {fastapi_router_versioning-1.2.2 → fastapi_router_versioning-1.2.3}/fastapi_router_versioning/_lifecycle.py +0 -0
- {fastapi_router_versioning-1.2.2 → fastapi_router_versioning-1.2.3}/fastapi_router_versioning/_registry.py +0 -0
- {fastapi_router_versioning-1.2.2 → fastapi_router_versioning-1.2.3}/fastapi_router_versioning/_scheme.py +0 -0
- {fastapi_router_versioning-1.2.2 → fastapi_router_versioning-1.2.3}/fastapi_router_versioning/_versions.py +0 -0
- {fastapi_router_versioning-1.2.2 → fastapi_router_versioning-1.2.3}/fastapi_router_versioning/py.typed +0 -0
- {fastapi_router_versioning-1.2.2 → fastapi_router_versioning-1.2.3}/fastapi_router_versioning/versioner.py +0 -0
- {fastapi_router_versioning-1.2.2 → fastapi_router_versioning-1.2.3}/overrides/main.html +0 -0
- {fastapi_router_versioning-1.2.2 → fastapi_router_versioning-1.2.3}/scripts/docs-build.sh +0 -0
- {fastapi_router_versioning-1.2.2 → fastapi_router_versioning-1.2.3}/scripts/docs.sh +0 -0
- {fastapi_router_versioning-1.2.2 → fastapi_router_versioning-1.2.3}/scripts/format.sh +0 -0
- {fastapi_router_versioning-1.2.2 → fastapi_router_versioning-1.2.3}/scripts/generate_readme.py +0 -0
- {fastapi_router_versioning-1.2.2 → fastapi_router_versioning-1.2.3}/scripts/lint.sh +0 -0
- {fastapi_router_versioning-1.2.2 → fastapi_router_versioning-1.2.3}/scripts/prepare_release.py +0 -0
- {fastapi_router_versioning-1.2.2 → fastapi_router_versioning-1.2.3}/scripts/test-cov-html.sh +0 -0
- {fastapi_router_versioning-1.2.2 → fastapi_router_versioning-1.2.3}/scripts/test-cov.sh +0 -0
- {fastapi_router_versioning-1.2.2 → fastapi_router_versioning-1.2.3}/scripts/test.sh +0 -0
- {fastapi_router_versioning-1.2.2 → fastapi_router_versioning-1.2.3}/tests/__init__.py +0 -0
- {fastapi_router_versioning-1.2.2 → fastapi_router_versioning-1.2.3}/tests/test_calver.py +0 -0
- {fastapi_router_versioning-1.2.2 → fastapi_router_versioning-1.2.3}/tests/test_docs_src_behavior.py +0 -0
- {fastapi_router_versioning-1.2.2 → fastapi_router_versioning-1.2.3}/tests/test_examples.py +0 -0
- {fastapi_router_versioning-1.2.2 → fastapi_router_versioning-1.2.3}/tests/test_fastapi_integration.py +0 -0
- {fastapi_router_versioning-1.2.2 → fastapi_router_versioning-1.2.3}/tests/test_prepare_release.py +0 -0
- {fastapi_router_versioning-1.2.2 → fastapi_router_versioning-1.2.3}/tests/test_public_signature_docs.py +0 -0
- {fastapi_router_versioning-1.2.2 → fastapi_router_versioning-1.2.3}/tests/test_readme.py +0 -0
- {fastapi_router_versioning-1.2.2 → fastapi_router_versioning-1.2.3}/tests/test_semver.py +0 -0
- {fastapi_router_versioning-1.2.2 → fastapi_router_versioning-1.2.3}/tests/test_versioner.py +0 -0
- {fastapi_router_versioning-1.2.2 → fastapi_router_versioning-1.2.3}/tests/test_versioner_deprecation_headers.py +0 -0
- {fastapi_router_versioning-1.2.2 → fastapi_router_versioning-1.2.3}/tests/test_versioner_docs.py +0 -0
- {fastapi_router_versioning-1.2.2 → fastapi_router_versioning-1.2.3}/tests/test_versioner_errors.py +0 -0
- {fastapi_router_versioning-1.2.2 → fastapi_router_versioning-1.2.3}/tests/test_versioner_lifecycle.py +0 -0
- {fastapi_router_versioning-1.2.2 → fastapi_router_versioning-1.2.3}/tests/test_versioner_versions_dashboard.py +0 -0
- {fastapi_router_versioning-1.2.2 → fastapi_router_versioning-1.2.3}/tests/test_versioner_versions_route.py +0 -0
- {fastapi_router_versioning-1.2.2 → fastapi_router_versioning-1.2.3}/tests/test_versioner_webhooks.py +0 -0
{fastapi_router_versioning-1.2.2 → fastapi_router_versioning-1.2.3}/.github/workflows/build-docs.yml
RENAMED
|
@@ -19,11 +19,11 @@ jobs:
|
|
|
19
19
|
outputs:
|
|
20
20
|
docs: ${{ steps.filter.outputs.docs }}
|
|
21
21
|
steps:
|
|
22
|
-
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
22
|
+
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
23
23
|
with:
|
|
24
24
|
persist-credentials: false
|
|
25
25
|
# For pull requests it's not necessary to checkout the code but for the main branch it is
|
|
26
|
-
- uses: dorny/paths-filter@ceb8a2b8f2d89434be7ff52d3de7ec3738c5cc9d # v4.0.
|
|
26
|
+
- uses: dorny/paths-filter@ceb8a2b8f2d89434be7ff52d3de7ec3738c5cc9d # v4.0.3
|
|
27
27
|
id: filter
|
|
28
28
|
with:
|
|
29
29
|
filters: |
|
|
@@ -34,7 +34,7 @@ jobs:
|
|
|
34
34
|
- docs_src/**
|
|
35
35
|
- examples/**
|
|
36
36
|
- fastapi_router_versioning/**
|
|
37
|
-
-
|
|
37
|
+
- zensical.toml
|
|
38
38
|
- overrides/**
|
|
39
39
|
- scripts/docs-build.sh
|
|
40
40
|
- pyproject.toml
|
|
@@ -51,17 +51,17 @@ jobs:
|
|
|
51
51
|
env:
|
|
52
52
|
GITHUB_CONTEXT: ${{ toJson(github) }}
|
|
53
53
|
run: echo "$GITHUB_CONTEXT"
|
|
54
|
-
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
54
|
+
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
55
55
|
with:
|
|
56
56
|
persist-credentials: false
|
|
57
57
|
|
|
58
58
|
- name: Set up Python
|
|
59
|
-
uses: actions/setup-python@
|
|
59
|
+
uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0 # v7.1.0
|
|
60
60
|
with:
|
|
61
61
|
python-version-file: .python-version
|
|
62
62
|
|
|
63
63
|
- name: Setup uv
|
|
64
|
-
uses: astral-sh/setup-uv@
|
|
64
|
+
uses: astral-sh/setup-uv@07a047e608db84b3d8c06cd9a7c7dcc9c355c18e # v10.3.2
|
|
65
65
|
with:
|
|
66
66
|
# Before upgrading uv version, make sure astral-sh/setup-uv knows its checksum.
|
|
67
67
|
# See: https://github.com/astral-sh/setup-uv/issues/851#issuecomment-4282017837
|
|
@@ -76,7 +76,7 @@ jobs:
|
|
|
76
76
|
run: uv run --no-sync bash scripts/docs-build.sh
|
|
77
77
|
|
|
78
78
|
# The site is deployed by Deploy Docs, which runs once this workflow has finished
|
|
79
|
-
- uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.
|
|
79
|
+
- uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
|
|
80
80
|
with:
|
|
81
81
|
name: docs-site
|
|
82
82
|
path: ./site
|
|
@@ -91,7 +91,7 @@ jobs:
|
|
|
91
91
|
timeout-minutes: 5
|
|
92
92
|
steps:
|
|
93
93
|
- name: Decide whether the needed jobs succeeded or failed
|
|
94
|
-
uses: re-actors/alls-green@b5b5b37504aa4183270bd3d855c52a67f212be35 # v1.
|
|
94
|
+
uses: re-actors/alls-green@b5b5b37504aa4183270bd3d855c52a67f212be35 # v1.3.0
|
|
95
95
|
with:
|
|
96
96
|
jobs: ${{ toJSON(needs) }}
|
|
97
97
|
allowed-skips: build-docs
|
|
@@ -17,15 +17,15 @@ jobs:
|
|
|
17
17
|
env:
|
|
18
18
|
GITHUB_CONTEXT: ${{ toJson(github) }}
|
|
19
19
|
run: echo "$GITHUB_CONTEXT"
|
|
20
|
-
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
20
|
+
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
21
21
|
with:
|
|
22
22
|
persist-credentials: false
|
|
23
23
|
- name: Set up Python
|
|
24
|
-
uses: actions/setup-python@
|
|
24
|
+
uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0 # v7.1.0
|
|
25
25
|
with:
|
|
26
26
|
python-version-file: ".python-version"
|
|
27
27
|
- name: Setup uv
|
|
28
|
-
uses: astral-sh/setup-uv@
|
|
28
|
+
uses: astral-sh/setup-uv@07a047e608db84b3d8c06cd9a7c7dcc9c355c18e # v10.3.2
|
|
29
29
|
with:
|
|
30
30
|
# Before upgrading uv version, make sure astral-sh/setup-uv knows its checksum.
|
|
31
31
|
# See: https://github.com/astral-sh/setup-uv/issues/851#issuecomment-4282017837
|
|
@@ -34,7 +34,7 @@ jobs:
|
|
|
34
34
|
pyproject.toml
|
|
35
35
|
uv.lock
|
|
36
36
|
- name: Bump pre-commit hooks
|
|
37
|
-
run: uv run prek
|
|
37
|
+
run: uv run prek update --freeze --cooldown-days 7
|
|
38
38
|
- name: Create pull request
|
|
39
39
|
env:
|
|
40
40
|
GH_TOKEN: ${{ secrets.FASTAPI_ROUTER_VERSIONING_LATEST_CHANGES }}
|
|
@@ -58,7 +58,7 @@ jobs:
|
|
|
58
58
|
--base "$BASE_BRANCH" \
|
|
59
59
|
--head "$branch" \
|
|
60
60
|
--title "⬆ Bump pre-commit hooks" \
|
|
61
|
-
--body "Bump pre-commit hook versions via \`prek
|
|
61
|
+
--body "Bump pre-commit hook versions via \`prek update --freeze --cooldown-days 7\`." \
|
|
62
62
|
--label internal \
|
|
63
63
|
--label dependencies \
|
|
64
64
|
--label pre-commit
|
|
@@ -22,16 +22,16 @@ jobs:
|
|
|
22
22
|
env:
|
|
23
23
|
GITHUB_CONTEXT: ${{ toJson(github) }}
|
|
24
24
|
run: echo "$GITHUB_CONTEXT"
|
|
25
|
-
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
25
|
+
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
26
26
|
with:
|
|
27
27
|
ref: ${{ github.event.repository.default_branch }}
|
|
28
28
|
persist-credentials: false
|
|
29
29
|
- name: Set up Python
|
|
30
|
-
uses: actions/setup-python@
|
|
30
|
+
uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0 # v7.1.0
|
|
31
31
|
with:
|
|
32
32
|
python-version-file: ".python-version"
|
|
33
33
|
- name: Install uv
|
|
34
|
-
uses: astral-sh/setup-uv@
|
|
34
|
+
uses: astral-sh/setup-uv@07a047e608db84b3d8c06cd9a7c7dcc9c355c18e # v10.3.2
|
|
35
35
|
with:
|
|
36
36
|
# Before upgrading uv version, make sure astral-sh/setup-uv knows its checksum.
|
|
37
37
|
# See: https://github.com/astral-sh/setup-uv/issues/851#issuecomment-4282017837
|
|
@@ -39,14 +39,14 @@ jobs:
|
|
|
39
39
|
mkdir ./site
|
|
40
40
|
# Build Docs is skipped when nothing that goes into the site changed: it uploads no artifact,
|
|
41
41
|
# the download below finds nothing, and the steps that need ./site/ are skipped
|
|
42
|
-
- uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8.0.
|
|
42
|
+
- uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8.0.2
|
|
43
43
|
with:
|
|
44
44
|
path: ./site/
|
|
45
45
|
pattern: docs-site
|
|
46
46
|
merge-multiple: true
|
|
47
47
|
github-token: ${{ secrets.GITHUB_TOKEN }}
|
|
48
48
|
run-id: ${{ github.event.workflow_run.id }}
|
|
49
|
-
- uses: actions/upload-pages-artifact@fc324d3547104276b827a68afc52ff2a11cc49c9 # v5.0.0
|
|
49
|
+
- uses: actions/upload-pages-artifact@fc324d3547104276b827a68afc52ff2a11cc49c9 # v5.0.0
|
|
50
50
|
# hashFiles returns an empty string if there are no files
|
|
51
51
|
if: hashFiles('./site/*')
|
|
52
52
|
with:
|
|
@@ -55,4 +55,4 @@ jobs:
|
|
|
55
55
|
# hashFiles returns an empty string if there are no files
|
|
56
56
|
if: hashFiles('./site/*')
|
|
57
57
|
id: deployment
|
|
58
|
-
uses: actions/deploy-pages@368f82528645a54fb793d4d04e342629a3f51346 # v5.0.1
|
|
58
|
+
uses: actions/deploy-pages@368f82528645a54fb793d4d04e342629a3f51346 # v5.0.1
|
|
@@ -15,7 +15,7 @@ jobs:
|
|
|
15
15
|
timeout-minutes: 5
|
|
16
16
|
steps:
|
|
17
17
|
- name: Check if PRs have merge conflicts
|
|
18
|
-
uses: eps1lon/actions-label-merge-conflict@0273be72a0bbd58fcd71d0d6c02c209b50d1e5e1 # v3.1.0
|
|
18
|
+
uses: eps1lon/actions-label-merge-conflict@0273be72a0bbd58fcd71d0d6c02c209b50d1e5e1 # v3.1.0
|
|
19
19
|
with:
|
|
20
20
|
dirtyLabel: "conflicts"
|
|
21
21
|
repoToken: "${{ secrets.GITHUB_TOKEN }}"
|
|
@@ -18,7 +18,7 @@ jobs:
|
|
|
18
18
|
timeout-minutes: 5
|
|
19
19
|
steps:
|
|
20
20
|
- name: Check if author is org member or allowed bot
|
|
21
|
-
uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0
|
|
21
|
+
uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0
|
|
22
22
|
with:
|
|
23
23
|
script: |
|
|
24
24
|
const pr = context.payload.pull_request;
|
{fastapi_router_versioning-1.2.2 → fastapi_router_versioning-1.2.3}/.github/workflows/pre-commit.yml
RENAMED
|
@@ -18,19 +18,19 @@ jobs:
|
|
|
18
18
|
run: echo "$GITHUB_CONTEXT"
|
|
19
19
|
|
|
20
20
|
- name: Checkout code
|
|
21
|
-
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
21
|
+
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
22
22
|
with:
|
|
23
23
|
persist-credentials: false
|
|
24
24
|
# Full history required for --from-ref/--to-ref diff in prek
|
|
25
25
|
fetch-depth: 0
|
|
26
26
|
|
|
27
27
|
- name: Set up Python
|
|
28
|
-
uses: actions/setup-python@
|
|
28
|
+
uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0 # v7.1.0
|
|
29
29
|
with:
|
|
30
30
|
python-version-file: ".python-version"
|
|
31
31
|
|
|
32
32
|
- name: Setup uv
|
|
33
|
-
uses: astral-sh/setup-uv@
|
|
33
|
+
uses: astral-sh/setup-uv@07a047e608db84b3d8c06cd9a7c7dcc9c355c18e # v10.3.2
|
|
34
34
|
with:
|
|
35
35
|
# Before upgrading uv version, make sure astral-sh/setup-uv knows its checksum.
|
|
36
36
|
# See: https://github.com/astral-sh/setup-uv/issues/851#issuecomment-4282017837
|
|
@@ -60,6 +60,6 @@ jobs:
|
|
|
60
60
|
run: echo "$GITHUB_CONTEXT"
|
|
61
61
|
|
|
62
62
|
- name: Decide whether the needed jobs succeeded or failed
|
|
63
|
-
uses: re-actors/alls-green@b5b5b37504aa4183270bd3d855c52a67f212be35 # v1.
|
|
63
|
+
uses: re-actors/alls-green@b5b5b37504aa4183270bd3d855c52a67f212be35 # v1.3.0
|
|
64
64
|
with:
|
|
65
65
|
jobs: ${{ toJSON(needs) }}
|
|
@@ -34,15 +34,15 @@ jobs:
|
|
|
34
34
|
env:
|
|
35
35
|
GITHUB_CONTEXT: ${{ toJson(github) }}
|
|
36
36
|
run: echo "$GITHUB_CONTEXT"
|
|
37
|
-
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
37
|
+
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
38
38
|
with:
|
|
39
39
|
persist-credentials: false
|
|
40
40
|
- name: Set up Python
|
|
41
|
-
uses: actions/setup-python@
|
|
41
|
+
uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0 # v7.1.0
|
|
42
42
|
with:
|
|
43
43
|
python-version-file: ".python-version"
|
|
44
44
|
- name: Install uv
|
|
45
|
-
uses: astral-sh/setup-uv@
|
|
45
|
+
uses: astral-sh/setup-uv@07a047e608db84b3d8c06cd9a7c7dcc9c355c18e # v10.3.2
|
|
46
46
|
with:
|
|
47
47
|
# Before upgrading uv version, make sure astral-sh/setup-uv knows its checksum.
|
|
48
48
|
# See: https://github.com/astral-sh/setup-uv/issues/851#issuecomment-4282017837
|
{fastapi_router_versioning-1.2.2 → fastapi_router_versioning-1.2.3}/.github/workflows/publish.yml
RENAMED
|
@@ -20,15 +20,15 @@ jobs:
|
|
|
20
20
|
env:
|
|
21
21
|
GITHUB_CONTEXT: ${{ toJson(github) }}
|
|
22
22
|
run: echo "$GITHUB_CONTEXT"
|
|
23
|
-
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
23
|
+
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
24
24
|
with:
|
|
25
25
|
persist-credentials: false
|
|
26
26
|
- name: Set up Python
|
|
27
|
-
uses: actions/setup-python@
|
|
27
|
+
uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0 # v7.1.0
|
|
28
28
|
with:
|
|
29
29
|
python-version-file: ".python-version"
|
|
30
30
|
- name: Install uv
|
|
31
|
-
uses: astral-sh/setup-uv@
|
|
31
|
+
uses: astral-sh/setup-uv@07a047e608db84b3d8c06cd9a7c7dcc9c355c18e # v10.3.2
|
|
32
32
|
with:
|
|
33
33
|
# Before upgrading uv version, make sure astral-sh/setup-uv knows its checksum.
|
|
34
34
|
# See: https://github.com/astral-sh/setup-uv/issues/851#issuecomment-4282017837
|
|
@@ -5,8 +5,8 @@ name: Test FastAPI main
|
|
|
5
5
|
# part of any required check.
|
|
6
6
|
on:
|
|
7
7
|
schedule:
|
|
8
|
-
# cron every
|
|
9
|
-
- cron: "0
|
|
8
|
+
# cron every day: FastAPI often releases what lands on master within hours
|
|
9
|
+
- cron: "0 3 * * *"
|
|
10
10
|
workflow_dispatch:
|
|
11
11
|
|
|
12
12
|
permissions: {}
|
|
@@ -22,17 +22,17 @@ jobs:
|
|
|
22
22
|
UV_PYTHON: "3.14"
|
|
23
23
|
|
|
24
24
|
steps:
|
|
25
|
-
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
25
|
+
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
26
26
|
with:
|
|
27
27
|
persist-credentials: false
|
|
28
28
|
|
|
29
29
|
- name: Set up Python
|
|
30
|
-
uses: actions/setup-python@
|
|
30
|
+
uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0 # v7.1.0
|
|
31
31
|
with:
|
|
32
32
|
python-version: "3.14"
|
|
33
33
|
|
|
34
34
|
- name: Setup uv
|
|
35
|
-
uses: astral-sh/setup-uv@
|
|
35
|
+
uses: astral-sh/setup-uv@07a047e608db84b3d8c06cd9a7c7dcc9c355c18e # v10.3.2
|
|
36
36
|
with:
|
|
37
37
|
# Before upgrading uv version, make sure astral-sh/setup-uv knows its checksum.
|
|
38
38
|
# See: https://github.com/astral-sh/setup-uv/issues/851#issuecomment-4282017837
|
|
@@ -43,7 +43,7 @@ jobs:
|
|
|
43
43
|
uv.lock
|
|
44
44
|
|
|
45
45
|
- name: Install Dependencies
|
|
46
|
-
run: uv sync
|
|
46
|
+
run: uv sync --no-dev --group tests
|
|
47
47
|
|
|
48
48
|
- name: Install FastAPI from source
|
|
49
49
|
run: uv pip install -U "git+https://github.com/fastapi/fastapi@master"
|
|
@@ -18,10 +18,10 @@ jobs:
|
|
|
18
18
|
outputs:
|
|
19
19
|
src: ${{ steps.filter.outputs.src }}
|
|
20
20
|
steps:
|
|
21
|
-
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
21
|
+
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
22
22
|
with:
|
|
23
23
|
persist-credentials: false
|
|
24
|
-
- uses: dorny/paths-filter@ceb8a2b8f2d89434be7ff52d3de7ec3738c5cc9d # v4.0.
|
|
24
|
+
- uses: dorny/paths-filter@ceb8a2b8f2d89434be7ff52d3de7ec3738c5cc9d # v4.0.3
|
|
25
25
|
id: filter
|
|
26
26
|
with:
|
|
27
27
|
filters: |
|
|
@@ -46,11 +46,11 @@ jobs:
|
|
|
46
46
|
env:
|
|
47
47
|
GITHUB_CONTEXT: ${{ toJson(github) }}
|
|
48
48
|
run: echo "$GITHUB_CONTEXT"
|
|
49
|
-
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
49
|
+
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
50
50
|
with:
|
|
51
51
|
persist-credentials: false
|
|
52
52
|
- name: Set up Python
|
|
53
|
-
uses: actions/setup-python@
|
|
53
|
+
uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0 # v7.1.0
|
|
54
54
|
with:
|
|
55
55
|
python-version-file: ".python-version"
|
|
56
56
|
- name: Install build dependencies
|
|
@@ -64,7 +64,7 @@ jobs:
|
|
|
64
64
|
- name: Install test dependencies
|
|
65
65
|
run: |
|
|
66
66
|
cd dist/fastapi_router_versioning*/
|
|
67
|
-
pip install --group
|
|
67
|
+
pip install --group tests --editable .
|
|
68
68
|
- name: Run source distribution tests
|
|
69
69
|
run: |
|
|
70
70
|
cd dist/fastapi_router_versioning*/
|
|
@@ -83,7 +83,7 @@ jobs:
|
|
|
83
83
|
timeout-minutes: 5
|
|
84
84
|
steps:
|
|
85
85
|
- name: Decide whether the needed jobs succeeded or failed
|
|
86
|
-
uses: re-actors/alls-green@b5b5b37504aa4183270bd3d855c52a67f212be35 # v1.
|
|
86
|
+
uses: re-actors/alls-green@b5b5b37504aa4183270bd3d855c52a67f212be35 # v1.3.0
|
|
87
87
|
with:
|
|
88
88
|
jobs: ${{ toJSON(needs) }}
|
|
89
89
|
allowed-skips: test-redistribute
|
{fastapi_router_versioning-1.2.2 → fastapi_router_versioning-1.2.3}/.github/workflows/test.yml
RENAMED
|
@@ -25,11 +25,11 @@ jobs:
|
|
|
25
25
|
outputs:
|
|
26
26
|
src: ${{ steps.filter.outputs.src }}
|
|
27
27
|
steps:
|
|
28
|
-
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
28
|
+
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
29
29
|
with:
|
|
30
30
|
persist-credentials: false
|
|
31
31
|
# For pull requests it's not necessary to checkout the code but for the main branch it is
|
|
32
|
-
- uses: dorny/paths-filter@ceb8a2b8f2d89434be7ff52d3de7ec3738c5cc9d # v4.0.
|
|
32
|
+
- uses: dorny/paths-filter@ceb8a2b8f2d89434be7ff52d3de7ec3738c5cc9d # v4.0.3
|
|
33
33
|
id: filter
|
|
34
34
|
with:
|
|
35
35
|
filters: |
|
|
@@ -74,17 +74,17 @@ jobs:
|
|
|
74
74
|
GITHUB_CONTEXT: ${{ toJson(github) }}
|
|
75
75
|
run: echo "$GITHUB_CONTEXT"
|
|
76
76
|
|
|
77
|
-
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
77
|
+
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
78
78
|
with:
|
|
79
79
|
persist-credentials: false
|
|
80
80
|
|
|
81
81
|
- name: Set up Python
|
|
82
|
-
uses: actions/setup-python@
|
|
82
|
+
uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0 # v7.1.0
|
|
83
83
|
with:
|
|
84
84
|
python-version: ${{ matrix.python-version }}
|
|
85
85
|
|
|
86
86
|
- name: Setup uv
|
|
87
|
-
uses: astral-sh/setup-uv@
|
|
87
|
+
uses: astral-sh/setup-uv@07a047e608db84b3d8c06cd9a7c7dcc9c355c18e # v10.3.2
|
|
88
88
|
with:
|
|
89
89
|
# Before upgrading uv version, make sure astral-sh/setup-uv knows its checksum.
|
|
90
90
|
# See: https://github.com/astral-sh/setup-uv/issues/851#issuecomment-4282017837
|
|
@@ -96,7 +96,7 @@ jobs:
|
|
|
96
96
|
uv.lock
|
|
97
97
|
|
|
98
98
|
- name: Install Dependencies
|
|
99
|
-
run: uv sync
|
|
99
|
+
run: uv sync --no-dev --group tests
|
|
100
100
|
|
|
101
101
|
- name: Override FastAPI version
|
|
102
102
|
if: matrix.fastapi-version != 'latest'
|
|
@@ -119,7 +119,7 @@ jobs:
|
|
|
119
119
|
|
|
120
120
|
- name: Store coverage files
|
|
121
121
|
if: matrix.coverage == 'coverage'
|
|
122
|
-
uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.
|
|
122
|
+
uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
|
|
123
123
|
with:
|
|
124
124
|
name: coverage-${{ matrix.python-version }}-${{ matrix.fastapi-version }}
|
|
125
125
|
path: coverage
|
|
@@ -131,7 +131,7 @@ jobs:
|
|
|
131
131
|
steps:
|
|
132
132
|
- name: Check out the pull request
|
|
133
133
|
if: github.event_name == 'pull_request'
|
|
134
|
-
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
134
|
+
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
135
135
|
with:
|
|
136
136
|
ref: ${{ github.sha }}
|
|
137
137
|
path: pr
|
|
@@ -163,7 +163,7 @@ jobs:
|
|
|
163
163
|
|
|
164
164
|
- name: Check out the base revision
|
|
165
165
|
if: steps.changed-tests.outputs.found == 'true'
|
|
166
|
-
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
166
|
+
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
167
167
|
with:
|
|
168
168
|
ref: ${{ github.event.pull_request.base.sha }}
|
|
169
169
|
path: base
|
|
@@ -171,13 +171,13 @@ jobs:
|
|
|
171
171
|
|
|
172
172
|
- name: Set up Python
|
|
173
173
|
if: steps.changed-tests.outputs.found == 'true'
|
|
174
|
-
uses: actions/setup-python@
|
|
174
|
+
uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0 # v7.1.0
|
|
175
175
|
with:
|
|
176
176
|
python-version-file: "base/.python-version"
|
|
177
177
|
|
|
178
178
|
- name: Setup uv
|
|
179
179
|
if: steps.changed-tests.outputs.found == 'true'
|
|
180
|
-
uses: astral-sh/setup-uv@
|
|
180
|
+
uses: astral-sh/setup-uv@07a047e608db84b3d8c06cd9a7c7dcc9c355c18e # v10.3.2
|
|
181
181
|
with:
|
|
182
182
|
# Before upgrading uv version, make sure astral-sh/setup-uv knows its checksum.
|
|
183
183
|
# See: https://github.com/astral-sh/setup-uv/issues/851#issuecomment-4282017837
|
|
@@ -189,7 +189,7 @@ jobs:
|
|
|
189
189
|
working-directory: base
|
|
190
190
|
run: |
|
|
191
191
|
git apply "$RUNNER_TEMP/tests.patch"
|
|
192
|
-
uv sync --locked
|
|
192
|
+
uv sync --locked --no-dev --group tests
|
|
193
193
|
set +e
|
|
194
194
|
xargs -0 uv run --no-sync pytest -- < "$RUNNER_TEMP/changed-tests"
|
|
195
195
|
status=$?
|
|
@@ -214,12 +214,12 @@ jobs:
|
|
|
214
214
|
GITHUB_CONTEXT: ${{ toJson(github) }}
|
|
215
215
|
run: echo "$GITHUB_CONTEXT"
|
|
216
216
|
|
|
217
|
-
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
217
|
+
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
218
218
|
with:
|
|
219
219
|
persist-credentials: false
|
|
220
220
|
|
|
221
221
|
- name: Setup uv
|
|
222
|
-
uses: astral-sh/setup-uv@
|
|
222
|
+
uses: astral-sh/setup-uv@07a047e608db84b3d8c06cd9a7c7dcc9c355c18e # v10.3.2
|
|
223
223
|
with:
|
|
224
224
|
# Before upgrading uv version, make sure astral-sh/setup-uv knows its checksum.
|
|
225
225
|
# See: https://github.com/astral-sh/setup-uv/issues/851#issuecomment-4282017837
|
|
@@ -230,10 +230,10 @@ jobs:
|
|
|
230
230
|
uv.lock
|
|
231
231
|
|
|
232
232
|
- name: Install Dependencies
|
|
233
|
-
run: uv sync --locked
|
|
233
|
+
run: uv sync --locked --no-dev --group tests
|
|
234
234
|
|
|
235
235
|
- name: Get coverage files
|
|
236
|
-
uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8.0.
|
|
236
|
+
uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8.0.2
|
|
237
237
|
with:
|
|
238
238
|
pattern: coverage-*
|
|
239
239
|
path: coverage
|
|
@@ -245,14 +245,14 @@ jobs:
|
|
|
245
245
|
- run: uv run coverage xml
|
|
246
246
|
|
|
247
247
|
- name: Store coverage HTML
|
|
248
|
-
uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.
|
|
248
|
+
uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
|
|
249
249
|
with:
|
|
250
250
|
name: coverage-html
|
|
251
251
|
path: htmlcov
|
|
252
252
|
include-hidden-files: true
|
|
253
253
|
|
|
254
254
|
- name: Upload coverage to Codecov
|
|
255
|
-
uses: codecov/codecov-action@303a32d7a59b442fa8d48b6a1cc6825c09c847a5 # v7.
|
|
255
|
+
uses: codecov/codecov-action@303a32d7a59b442fa8d48b6a1cc6825c09c847a5 # v7.1.1
|
|
256
256
|
with:
|
|
257
257
|
token: ${{ secrets.CODECOV_TOKEN }}
|
|
258
258
|
files: coverage.xml
|
|
@@ -275,7 +275,7 @@ jobs:
|
|
|
275
275
|
GITHUB_CONTEXT: ${{ toJson(github) }}
|
|
276
276
|
run: echo "$GITHUB_CONTEXT"
|
|
277
277
|
- name: Decide whether the needed jobs succeeded or failed
|
|
278
|
-
uses: re-actors/alls-green@b5b5b37504aa4183270bd3d855c52a67f212be35 # v1.
|
|
278
|
+
uses: re-actors/alls-green@b5b5b37504aa4183270bd3d855c52a67f212be35 # v1.3.0
|
|
279
279
|
with:
|
|
280
280
|
jobs: ${{ toJSON(needs) }}
|
|
281
281
|
allowed-skips: test,coverage-combine
|
{fastapi_router_versioning-1.2.2 → fastapi_router_versioning-1.2.3}/.github/workflows/zizmor.yml
RENAMED
|
@@ -18,8 +18,8 @@ jobs:
|
|
|
18
18
|
security-events: write # Required for upload-sarif (used by zizmor-action) to upload SARIF files.
|
|
19
19
|
steps:
|
|
20
20
|
- name: Checkout repository
|
|
21
|
-
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
21
|
+
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
22
22
|
with:
|
|
23
23
|
persist-credentials: false
|
|
24
24
|
- name: Run zizmor
|
|
25
|
-
uses: zizmorcore/zizmor-action@
|
|
25
|
+
uses: zizmorcore/zizmor-action@53290badfa369cb0bf7ad16342cb62c2fa47ac7b # v0.8.0
|
|
@@ -15,7 +15,7 @@ repos:
|
|
|
15
15
|
- id: trailing-whitespace
|
|
16
16
|
|
|
17
17
|
- repo: https://github.com/crate-ci/typos
|
|
18
|
-
rev:
|
|
18
|
+
rev: 7f9d0819ca1c008ade73f4b41fa9d258d48f605b # frozen: v1.51.1
|
|
19
19
|
hooks:
|
|
20
20
|
- id: typos
|
|
21
21
|
args: [ --force-exclude ]
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: fastapi-router-versioning
|
|
3
|
-
Version: 1.2.
|
|
3
|
+
Version: 1.2.3
|
|
4
4
|
Summary: Router-based API versioning for FastAPI, with per-version docs and a declarative route lifecycle.
|
|
5
5
|
Project-URL: Homepage, https://fastapi-router-versioning.matblack81.com/
|
|
6
6
|
Project-URL: Repository, https://github.com/matblack81/fastapi-router-versioning
|
|
@@ -4,13 +4,16 @@ description: How root_path is handled behind a proxy and when mounting sub-appli
|
|
|
4
4
|
|
|
5
5
|
# Reverse proxy and sub-apps
|
|
6
6
|
|
|
7
|
-
The ASGI `root_path
|
|
8
|
-
|
|
7
|
+
The ASGI `root_path`, set by the server behind a proxy (`--root-path`) or by `app.mount()`,
|
|
8
|
+
is picked up automatically in every per-version doc URL:
|
|
9
9
|
|
|
10
10
|
```python
|
|
11
11
|
--8<-- "docs_src/advanced/reverse_proxy.py:snippet"
|
|
12
12
|
```
|
|
13
13
|
|
|
14
|
+
For the proxy side (stripping the prefix, `--root-path`), see FastAPI's
|
|
15
|
+
[Behind a Proxy](https://fastapi.tiangolo.com/advanced/behind-a-proxy/) guide.
|
|
16
|
+
|
|
14
17
|
A mounted sub-application is a separate `FastAPI()` instance, so a `RouterVersioner` attached to
|
|
15
18
|
it is entirely independent from one attached to the parent, or to another sub-application, with
|
|
16
19
|
no prefix coordination needed.
|
|
@@ -2,6 +2,33 @@
|
|
|
2
2
|
|
|
3
3
|
## Latest Changes
|
|
4
4
|
|
|
5
|
+
## 1.2.3 (2026-11-02)
|
|
6
|
+
|
|
7
|
+
### Docs
|
|
8
|
+
|
|
9
|
+
* 🔧 Move the site configuration from mkdocs.yml to zensical.toml. PR [#148](https://github.com/matblack81/fastapi-router-versioning/pull/148) by [@matblack81](https://github.com/matblack81).
|
|
10
|
+
* 📝 Link FastAPI's Behind a Proxy guide from the reverse proxy page. PR [#135](https://github.com/matblack81/fastapi-router-versioning/pull/135) by [@matblack81](https://github.com/matblack81).
|
|
11
|
+
* 📝 Say who sets root_path on the reverse proxy page. PR [#134](https://github.com/matblack81/fastapi-router-versioning/pull/134) by [@matblack81](https://github.com/matblack81).
|
|
12
|
+
|
|
13
|
+
### Internal
|
|
14
|
+
|
|
15
|
+
* ⬆ Bump pre-commit hooks. PR [#152](https://github.com/matblack81/fastapi-router-versioning/pull/152) by [@matblack81](https://github.com/matblack81).
|
|
16
|
+
* 🐛 Fix the pre-commit hooks bump workflow after the prek command rename. PR [#151](https://github.com/matblack81/fastapi-router-versioning/pull/151) by [@matblack81](https://github.com/matblack81).
|
|
17
|
+
* ⬆ Bump the github-actions group with 2 updates. PR [#150](https://github.com/matblack81/fastapi-router-versioning/pull/150) by [@dependabot[bot]](https://github.com/apps/dependabot).
|
|
18
|
+
* ⬆ Bump the python-packages group with 3 updates. PR [#149](https://github.com/matblack81/fastapi-router-versioning/pull/149) by [@dependabot[bot]](https://github.com/apps/dependabot).
|
|
19
|
+
* ⬆ Bump FastAPI to 0.162.0. PR [#147](https://github.com/matblack81/fastapi-router-versioning/pull/147) by [@matblack81](https://github.com/matblack81).
|
|
20
|
+
* ⬆ Bump fastapi from 0.143.3 to 0.159.1. PR [#146](https://github.com/matblack81/fastapi-router-versioning/pull/146) by [@dependabot[bot]](https://github.com/apps/dependabot).
|
|
21
|
+
* ⬆ Bump the python-packages group with 3 updates. PR [#145](https://github.com/matblack81/fastapi-router-versioning/pull/145) by [@dependabot[bot]](https://github.com/apps/dependabot).
|
|
22
|
+
* ⬆ Bump the github-actions group with 2 updates. PR [#144](https://github.com/matblack81/fastapi-router-versioning/pull/144) by [@dependabot[bot]](https://github.com/apps/dependabot).
|
|
23
|
+
* 💡 Fix the snapshot regeneration command for new examples. PR [#143](https://github.com/matblack81/fastapi-router-versioning/pull/143) by [@matblack81](https://github.com/matblack81).
|
|
24
|
+
* 🔨 Keep the icon and screenshot script checks under python -O. PR [#142](https://github.com/matblack81/fastapi-router-versioning/pull/142) by [@matblack81](https://github.com/matblack81).
|
|
25
|
+
* ✅ Snapshot the routes and deprecations of every docs example. PR [#141](https://github.com/matblack81/fastapi-router-versioning/pull/141) by [@matblack81](https://github.com/matblack81).
|
|
26
|
+
* 🔨 Simplify the run commands in the screenshot and icon scripts. PR [#140](https://github.com/matblack81/fastapi-router-versioning/pull/140) by [@matblack81](https://github.com/matblack81).
|
|
27
|
+
* 🔥 Remove the leftover sync-pin markers from the workflows. PR [#139](https://github.com/matblack81/fastapi-router-versioning/pull/139) by [@matblack81](https://github.com/matblack81).
|
|
28
|
+
* 👷 Install only the tests dependency group in the test workflows. PR [#138](https://github.com/matblack81/fastapi-router-versioning/pull/138) by [@matblack81](https://github.com/matblack81).
|
|
29
|
+
* 🔧 Split the dev dependencies into tests, docs and screenshots groups. PR [#137](https://github.com/matblack81/fastapi-router-versioning/pull/137) by [@matblack81](https://github.com/matblack81).
|
|
30
|
+
* 👷 Run the FastAPI master workflow daily. PR [#136](https://github.com/matblack81/fastapi-router-versioning/pull/136) by [@matblack81](https://github.com/matblack81).
|
|
31
|
+
|
|
5
32
|
## 1.2.2 (2026-10-25)
|
|
6
33
|
|
|
7
34
|
### Refactors
|
|
@@ -44,23 +44,30 @@ Changelog = "https://fastapi-router-versioning.matblack81.com/release-notes/"
|
|
|
44
44
|
|
|
45
45
|
[dependency-groups]
|
|
46
46
|
dev = [
|
|
47
|
+
{ include-group = "tests" },
|
|
48
|
+
{ include-group = "docs" },
|
|
49
|
+
{ include-group = "screenshots" },
|
|
50
|
+
"ruff>=0.14.0",
|
|
51
|
+
"mypy>=1.17.0",
|
|
52
|
+
"ty>=0.0.28",
|
|
53
|
+
"pyrefly>=0.60.0",
|
|
54
|
+
"prek >=0.2.22",
|
|
55
|
+
"zizmor>=1.0.0",
|
|
56
|
+
"uvicorn>=0.49.0",
|
|
57
|
+
]
|
|
58
|
+
|
|
59
|
+
# Everything the test suite imports, so CI can install it alone with --no-dev --group tests:
|
|
60
|
+
# typer for scripts/prepare_release.py, jinja2 and fastapi-validation-override for examples/.
|
|
61
|
+
tests = [
|
|
47
62
|
"httpx>=0.28.1",
|
|
48
63
|
"httpx2>=0.28.0",
|
|
49
|
-
"ruff>=0.14.0",
|
|
50
64
|
"pytest>=9.1.0",
|
|
51
65
|
"pytest-asyncio>=1.3.0",
|
|
52
|
-
"pytest-dotenv>=0.5.2",
|
|
53
|
-
"mypy>=1.17.0",
|
|
54
66
|
"coverage[toml]>=7.14.1",
|
|
55
67
|
"inline-snapshot >=0.21.1",
|
|
56
|
-
"prek >=0.2.22",
|
|
57
|
-
"ty>=0.0.28",
|
|
58
|
-
"pyrefly>=0.60.0",
|
|
59
68
|
"typer>=0.15.0",
|
|
60
|
-
"uvicorn>=0.49.0",
|
|
61
|
-
"zizmor>=1.0.0",
|
|
62
|
-
"fastapi-validation-override>=0.2.0",
|
|
63
69
|
"jinja2>=3.1.0",
|
|
70
|
+
"fastapi-validation-override>=0.2.0",
|
|
64
71
|
]
|
|
65
72
|
|
|
66
73
|
docs = [
|
|
@@ -146,6 +153,10 @@ known-third-party = ["fastapi", "pydantic", "starlette"]
|
|
|
146
153
|
[tool.ruff.lint.pyupgrade]
|
|
147
154
|
keep-runtime-typing = true
|
|
148
155
|
|
|
156
|
+
[tool.inline-snapshot]
|
|
157
|
+
# Snapshots that --inline-snapshot=fix rewrites come out already formatted.
|
|
158
|
+
format-command = "ruff format --stdin-filename {filename}"
|
|
159
|
+
|
|
149
160
|
[tool.typos.default.extend-identifiers]
|
|
150
161
|
alls = "alls"
|
|
151
162
|
certifi = "certifi"
|