fastapi-router-versioning 1.2.1__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.1 → fastapi_router_versioning-1.2.3}/.github/latest-changes.yml +1 -1
- {fastapi_router_versioning-1.2.1 → fastapi_router_versioning-1.2.3}/.github/workflows/build-docs.yml +8 -8
- {fastapi_router_versioning-1.2.1 → fastapi_router_versioning-1.2.3}/.github/workflows/bump-pre-commit-hooks.yml +5 -5
- {fastapi_router_versioning-1.2.1 → fastapi_router_versioning-1.2.3}/.github/workflows/create-draft-release.yml +3 -3
- {fastapi_router_versioning-1.2.1 → fastapi_router_versioning-1.2.3}/.github/workflows/deploy-docs.yml +3 -3
- {fastapi_router_versioning-1.2.1 → fastapi_router_versioning-1.2.3}/.github/workflows/detect-conflicts.yml +1 -1
- {fastapi_router_versioning-1.2.1 → fastapi_router_versioning-1.2.3}/.github/workflows/guard-dependencies.yml +1 -1
- {fastapi_router_versioning-1.2.1 → fastapi_router_versioning-1.2.3}/.github/workflows/pre-commit.yml +4 -4
- {fastapi_router_versioning-1.2.1 → fastapi_router_versioning-1.2.3}/.github/workflows/prepare-release.yml +3 -3
- {fastapi_router_versioning-1.2.1 → fastapi_router_versioning-1.2.3}/.github/workflows/publish.yml +3 -3
- fastapi_router_versioning-1.2.3/.github/workflows/test-fastapi-main.yml +52 -0
- {fastapi_router_versioning-1.2.1 → fastapi_router_versioning-1.2.3}/.github/workflows/test-redistribute.yml +6 -6
- {fastapi_router_versioning-1.2.1 → fastapi_router_versioning-1.2.3}/.github/workflows/test.yml +27 -19
- {fastapi_router_versioning-1.2.1 → fastapi_router_versioning-1.2.3}/.github/workflows/zizmor.yml +2 -2
- {fastapi_router_versioning-1.2.1 → fastapi_router_versioning-1.2.3}/.pre-commit-config.yaml +1 -1
- {fastapi_router_versioning-1.2.1 → fastapi_router_versioning-1.2.3}/PKG-INFO +1 -1
- {fastapi_router_versioning-1.2.1 → fastapi_router_versioning-1.2.3}/docs/advanced/reverse-proxy-and-sub-apps.md +5 -2
- fastapi_router_versioning-1.2.3/docs/release-notes.md +307 -0
- {fastapi_router_versioning-1.2.1 → fastapi_router_versioning-1.2.3}/fastapi_router_versioning/__init__.py +1 -1
- {fastapi_router_versioning-1.2.1 → fastapi_router_versioning-1.2.3}/fastapi_router_versioning/_compat.py +7 -6
- {fastapi_router_versioning-1.2.1 → fastapi_router_versioning-1.2.3}/pyproject.toml +22 -10
- {fastapi_router_versioning-1.2.1 → fastapi_router_versioning-1.2.3}/scripts/build_icons.py +4 -3
- {fastapi_router_versioning-1.2.1 → 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.1 → fastapi_router_versioning-1.2.3}/tests/test_versioner.py +111 -2
- {fastapi_router_versioning-1.2.1 → fastapi_router_versioning-1.2.3}/uv.lock +472 -389
- fastapi_router_versioning-1.2.3/zensical.toml +127 -0
- fastapi_router_versioning-1.2.1/docs/release-notes.md +0 -256
- fastapi_router_versioning-1.2.1/mkdocs.yml +0 -130
- fastapi_router_versioning-1.2.1/tests/test_docs_src.py +0 -55
- {fastapi_router_versioning-1.2.1 → fastapi_router_versioning-1.2.3}/.github/dependabot.yml +0 -0
- {fastapi_router_versioning-1.2.1 → fastapi_router_versioning-1.2.3}/.gitignore +0 -0
- {fastapi_router_versioning-1.2.1 → fastapi_router_versioning-1.2.3}/.python-version +0 -0
- {fastapi_router_versioning-1.2.1 → fastapi_router_versioning-1.2.3}/LICENSE +0 -0
- {fastapi_router_versioning-1.2.1 → fastapi_router_versioning-1.2.3}/README.md +0 -0
- {fastapi_router_versioning-1.2.1 → fastapi_router_versioning-1.2.3}/docs/advanced/callback-hook.md +0 -0
- {fastapi_router_versioning-1.2.1 → fastapi_router_versioning-1.2.3}/docs/advanced/callbacks-and-webhooks.md +0 -0
- {fastapi_router_versioning-1.2.1 → fastapi_router_versioning-1.2.3}/docs/advanced/custom-url-format.md +0 -0
- {fastapi_router_versioning-1.2.1 → fastapi_router_versioning-1.2.3}/docs/advanced/deprecation-headers.md +0 -0
- {fastapi_router_versioning-1.2.1 → fastapi_router_versioning-1.2.3}/docs/advanced/index.md +0 -0
- {fastapi_router_versioning-1.2.1 → fastapi_router_versioning-1.2.3}/docs/advanced/latest-alias.md +0 -0
- {fastapi_router_versioning-1.2.1 → fastapi_router_versioning-1.2.3}/docs/advanced/multiple-routers.md +0 -0
- {fastapi_router_versioning-1.2.1 → fastapi_router_versioning-1.2.3}/docs/advanced/openapi-hook.md +0 -0
- {fastapi_router_versioning-1.2.1 → fastapi_router_versioning-1.2.3}/docs/advanced/self-hosted-assets.md +0 -0
- {fastapi_router_versioning-1.2.1 → fastapi_router_versioning-1.2.3}/docs/advanced/validation-error-status-code.md +0 -0
- {fastapi_router_versioning-1.2.1 → fastapi_router_versioning-1.2.3}/docs/advanced/version-discovery.md +0 -0
- {fastapi_router_versioning-1.2.1 → fastapi_router_versioning-1.2.3}/docs/assets/images/apple-touch-icon.png +0 -0
- {fastapi_router_versioning-1.2.1 → fastapi_router_versioning-1.2.3}/docs/assets/images/favicon.ico +0 -0
- {fastapi_router_versioning-1.2.1 → fastapi_router_versioning-1.2.3}/docs/assets/images/favicon.png +0 -0
- {fastapi_router_versioning-1.2.1 → fastapi_router_versioning-1.2.3}/docs/assets/images/favicon.svg +0 -0
- {fastapi_router_versioning-1.2.1 → fastapi_router_versioning-1.2.3}/docs/assets/images/logo-header.svg +0 -0
- {fastapi_router_versioning-1.2.1 → fastapi_router_versioning-1.2.3}/docs/assets/images/logo.svg +0 -0
- {fastapi_router_versioning-1.2.1 → fastapi_router_versioning-1.2.3}/docs/assets/images/wordmark.png +0 -0
- {fastapi_router_versioning-1.2.1 → fastapi_router_versioning-1.2.3}/docs/assets/screenshots/latest-alias.jpg +0 -0
- {fastapi_router_versioning-1.2.1 → fastapi_router_versioning-1.2.3}/docs/assets/screenshots/migration-root.jpg +0 -0
- {fastapi_router_versioning-1.2.1 → fastapi_router_versioning-1.2.3}/docs/assets/screenshots/quickstart-calver.jpg +0 -0
- {fastapi_router_versioning-1.2.1 → fastapi_router_versioning-1.2.3}/docs/assets/screenshots/quickstart-semver-v1.jpg +0 -0
- {fastapi_router_versioning-1.2.1 → fastapi_router_versioning-1.2.3}/docs/assets/screenshots/quickstart-semver-v2.jpg +0 -0
- {fastapi_router_versioning-1.2.1 → fastapi_router_versioning-1.2.3}/docs/assets/screenshots/redoc-v2.jpg +0 -0
- {fastapi_router_versioning-1.2.1 → fastapi_router_versioning-1.2.3}/docs/assets/screenshots/swagger-v1.jpg +0 -0
- {fastapi_router_versioning-1.2.1 → fastapi_router_versioning-1.2.3}/docs/assets/screenshots/swagger-v2.jpg +0 -0
- {fastapi_router_versioning-1.2.1 → fastapi_router_versioning-1.2.3}/docs/assets/screenshots/swagger-v3.jpg +0 -0
- {fastapi_router_versioning-1.2.1 → fastapi_router_versioning-1.2.3}/docs/assets/screenshots/url-format-latest.jpg +0 -0
- {fastapi_router_versioning-1.2.1 → fastapi_router_versioning-1.2.3}/docs/assets/screenshots/url-format-v1.jpg +0 -0
- {fastapi_router_versioning-1.2.1 → fastapi_router_versioning-1.2.3}/docs/assets/screenshots/versions-dashboard.jpg +0 -0
- {fastapi_router_versioning-1.2.1 → fastapi_router_versioning-1.2.3}/docs/assets/screenshots/webhooks-v1.jpg +0 -0
- {fastapi_router_versioning-1.2.1 → fastapi_router_versioning-1.2.3}/docs/assets/screenshots/webhooks-v2.jpg +0 -0
- {fastapi_router_versioning-1.2.1 → fastapi_router_versioning-1.2.3}/docs/examples.md +0 -0
- {fastapi_router_versioning-1.2.1 → fastapi_router_versioning-1.2.3}/docs/how-it-works.md +0 -0
- {fastapi_router_versioning-1.2.1 → fastapi_router_versioning-1.2.3}/docs/index.md +0 -0
- {fastapi_router_versioning-1.2.1 → fastapi_router_versioning-1.2.3}/docs/lifecycle.md +0 -0
- {fastapi_router_versioning-1.2.1 → fastapi_router_versioning-1.2.3}/docs/migrating.md +0 -0
- {fastapi_router_versioning-1.2.1 → fastapi_router_versioning-1.2.3}/docs/quickstart.md +0 -0
- {fastapi_router_versioning-1.2.1 → fastapi_router_versioning-1.2.3}/docs/reference.md +0 -0
- {fastapi_router_versioning-1.2.1 → fastapi_router_versioning-1.2.3}/docs/stylesheets/extra.css +0 -0
- {fastapi_router_versioning-1.2.1 → fastapi_router_versioning-1.2.3}/docs_src/advanced/callback_hook.py +0 -0
- {fastapi_router_versioning-1.2.1 → fastapi_router_versioning-1.2.3}/docs_src/advanced/callbacks.py +0 -0
- {fastapi_router_versioning-1.2.1 → fastapi_router_versioning-1.2.3}/docs_src/advanced/custom_url_format.py +0 -0
- {fastapi_router_versioning-1.2.1 → fastapi_router_versioning-1.2.3}/docs_src/advanced/deprecation_headers.py +0 -0
- {fastapi_router_versioning-1.2.1 → fastapi_router_versioning-1.2.3}/docs_src/advanced/latest_alias.py +0 -0
- {fastapi_router_versioning-1.2.1 → fastapi_router_versioning-1.2.3}/docs_src/advanced/multiple_routers.py +0 -0
- {fastapi_router_versioning-1.2.1 → fastapi_router_versioning-1.2.3}/docs_src/advanced/openapi_hook.py +0 -0
- {fastapi_router_versioning-1.2.1 → fastapi_router_versioning-1.2.3}/docs_src/advanced/reverse_proxy.py +0 -0
- {fastapi_router_versioning-1.2.1 → fastapi_router_versioning-1.2.3}/docs_src/advanced/self_hosted_assets.py +0 -0
- {fastapi_router_versioning-1.2.1 → fastapi_router_versioning-1.2.3}/docs_src/advanced/validation_error_status_code.py +0 -0
- {fastapi_router_versioning-1.2.1 → fastapi_router_versioning-1.2.3}/docs_src/advanced/version_discovery.py +0 -0
- {fastapi_router_versioning-1.2.1 → fastapi_router_versioning-1.2.3}/docs_src/advanced/webhooks.py +0 -0
- {fastapi_router_versioning-1.2.1 → fastapi_router_versioning-1.2.3}/docs_src/lifecycle/legacy_route.py +0 -0
- {fastapi_router_versioning-1.2.1 → fastapi_router_versioning-1.2.3}/docs_src/migration/adopt.py +0 -0
- {fastapi_router_versioning-1.2.1 → fastapi_router_versioning-1.2.3}/docs_src/migration/change_endpoint.py +0 -0
- {fastapi_router_versioning-1.2.1 → fastapi_router_versioning-1.2.3}/docs_src/migration/retire_unversioned.py +0 -0
- {fastapi_router_versioning-1.2.1 → fastapi_router_versioning-1.2.3}/docs_src/quickstart/calver.py +0 -0
- {fastapi_router_versioning-1.2.1 → fastapi_router_versioning-1.2.3}/docs_src/quickstart/semver.py +0 -0
- {fastapi_router_versioning-1.2.1 → fastapi_router_versioning-1.2.3}/examples/calver_app.py +0 -0
- {fastapi_router_versioning-1.2.1 → fastapi_router_versioning-1.2.3}/examples/dashboard_assets/versions_dashboard.css +0 -0
- {fastapi_router_versioning-1.2.1 → fastapi_router_versioning-1.2.3}/examples/dashboard_assets/versions_dashboard.html +0 -0
- {fastapi_router_versioning-1.2.1 → fastapi_router_versioning-1.2.3}/examples/deprecation_headers_app.py +0 -0
- {fastapi_router_versioning-1.2.1 → fastapi_router_versioning-1.2.3}/examples/download_static_assets.py +0 -0
- {fastapi_router_versioning-1.2.1 → fastapi_router_versioning-1.2.3}/examples/mounted_subapps_app.py +0 -0
- {fastapi_router_versioning-1.2.1 → fastapi_router_versioning-1.2.3}/examples/multi_router_app.py +0 -0
- {fastapi_router_versioning-1.2.1 → fastapi_router_versioning-1.2.3}/examples/openapi_hook_app.py +0 -0
- {fastapi_router_versioning-1.2.1 → fastapi_router_versioning-1.2.3}/examples/self_hosted_docs_app.py +0 -0
- {fastapi_router_versioning-1.2.1 → fastapi_router_versioning-1.2.3}/examples/semver_app.py +0 -0
- {fastapi_router_versioning-1.2.1 → fastapi_router_versioning-1.2.3}/examples/semver_major_only_app.py +0 -0
- {fastapi_router_versioning-1.2.1 → fastapi_router_versioning-1.2.3}/examples/validation_override_integration_app.py +0 -0
- {fastapi_router_versioning-1.2.1 → fastapi_router_versioning-1.2.3}/examples/versions_dashboard_app.py +0 -0
- {fastapi_router_versioning-1.2.1 → fastapi_router_versioning-1.2.3}/examples/versions_dashboard_hook_app.py +0 -0
- {fastapi_router_versioning-1.2.1 → fastapi_router_versioning-1.2.3}/examples/webhook_versioning_app.py +0 -0
- {fastapi_router_versioning-1.2.1 → fastapi_router_versioning-1.2.3}/fastapi_router_versioning/_builder.py +0 -0
- {fastapi_router_versioning-1.2.1 → fastapi_router_versioning-1.2.3}/fastapi_router_versioning/_dashboard.py +0 -0
- {fastapi_router_versioning-1.2.1 → fastapi_router_versioning-1.2.3}/fastapi_router_versioning/_deprecation.py +0 -0
- {fastapi_router_versioning-1.2.1 → fastapi_router_versioning-1.2.3}/fastapi_router_versioning/_docs.py +0 -0
- {fastapi_router_versioning-1.2.1 → fastapi_router_versioning-1.2.3}/fastapi_router_versioning/_lifecycle.py +0 -0
- {fastapi_router_versioning-1.2.1 → fastapi_router_versioning-1.2.3}/fastapi_router_versioning/_registry.py +0 -0
- {fastapi_router_versioning-1.2.1 → fastapi_router_versioning-1.2.3}/fastapi_router_versioning/_scheme.py +0 -0
- {fastapi_router_versioning-1.2.1 → fastapi_router_versioning-1.2.3}/fastapi_router_versioning/_versions.py +0 -0
- {fastapi_router_versioning-1.2.1 → fastapi_router_versioning-1.2.3}/fastapi_router_versioning/py.typed +0 -0
- {fastapi_router_versioning-1.2.1 → fastapi_router_versioning-1.2.3}/fastapi_router_versioning/versioner.py +0 -0
- {fastapi_router_versioning-1.2.1 → fastapi_router_versioning-1.2.3}/overrides/main.html +0 -0
- {fastapi_router_versioning-1.2.1 → fastapi_router_versioning-1.2.3}/scripts/docs-build.sh +0 -0
- {fastapi_router_versioning-1.2.1 → fastapi_router_versioning-1.2.3}/scripts/docs.sh +0 -0
- {fastapi_router_versioning-1.2.1 → fastapi_router_versioning-1.2.3}/scripts/format.sh +0 -0
- {fastapi_router_versioning-1.2.1 → fastapi_router_versioning-1.2.3}/scripts/generate_readme.py +0 -0
- {fastapi_router_versioning-1.2.1 → fastapi_router_versioning-1.2.3}/scripts/lint.sh +0 -0
- {fastapi_router_versioning-1.2.1 → fastapi_router_versioning-1.2.3}/scripts/prepare_release.py +0 -0
- {fastapi_router_versioning-1.2.1 → fastapi_router_versioning-1.2.3}/scripts/test-cov-html.sh +0 -0
- {fastapi_router_versioning-1.2.1 → fastapi_router_versioning-1.2.3}/scripts/test-cov.sh +0 -0
- {fastapi_router_versioning-1.2.1 → fastapi_router_versioning-1.2.3}/scripts/test.sh +0 -0
- {fastapi_router_versioning-1.2.1 → fastapi_router_versioning-1.2.3}/tests/__init__.py +0 -0
- {fastapi_router_versioning-1.2.1 → fastapi_router_versioning-1.2.3}/tests/test_calver.py +0 -0
- {fastapi_router_versioning-1.2.1 → fastapi_router_versioning-1.2.3}/tests/test_docs_src_behavior.py +0 -0
- {fastapi_router_versioning-1.2.1 → fastapi_router_versioning-1.2.3}/tests/test_examples.py +0 -0
- {fastapi_router_versioning-1.2.1 → fastapi_router_versioning-1.2.3}/tests/test_fastapi_integration.py +0 -0
- {fastapi_router_versioning-1.2.1 → fastapi_router_versioning-1.2.3}/tests/test_prepare_release.py +0 -0
- {fastapi_router_versioning-1.2.1 → fastapi_router_versioning-1.2.3}/tests/test_public_signature_docs.py +0 -0
- {fastapi_router_versioning-1.2.1 → fastapi_router_versioning-1.2.3}/tests/test_readme.py +0 -0
- {fastapi_router_versioning-1.2.1 → fastapi_router_versioning-1.2.3}/tests/test_semver.py +0 -0
- {fastapi_router_versioning-1.2.1 → fastapi_router_versioning-1.2.3}/tests/test_versioner_deprecation_headers.py +0 -0
- {fastapi_router_versioning-1.2.1 → fastapi_router_versioning-1.2.3}/tests/test_versioner_docs.py +0 -0
- {fastapi_router_versioning-1.2.1 → fastapi_router_versioning-1.2.3}/tests/test_versioner_errors.py +0 -0
- {fastapi_router_versioning-1.2.1 → fastapi_router_versioning-1.2.3}/tests/test_versioner_lifecycle.py +0 -0
- {fastapi_router_versioning-1.2.1 → fastapi_router_versioning-1.2.3}/tests/test_versioner_versions_dashboard.py +0 -0
- {fastapi_router_versioning-1.2.1 → fastapi_router_versioning-1.2.3}/tests/test_versioner_versions_route.py +0 -0
- {fastapi_router_versioning-1.2.1 → fastapi_router_versioning-1.2.3}/tests/test_versioner_webhooks.py +0 -0
{fastapi_router_versioning-1.2.1 → 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@
|
|
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@
|
|
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.1 → 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.1 → 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
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
name: Test FastAPI main
|
|
2
|
+
|
|
3
|
+
# Early warning, not a gate: runs the suite against FastAPI's development branch so that
|
|
4
|
+
# routing changes show up before they are released. Never runs on pull requests and is not
|
|
5
|
+
# part of any required check.
|
|
6
|
+
on:
|
|
7
|
+
schedule:
|
|
8
|
+
# cron every day: FastAPI often releases what lands on master within hours
|
|
9
|
+
- cron: "0 3 * * *"
|
|
10
|
+
workflow_dispatch:
|
|
11
|
+
|
|
12
|
+
permissions: {}
|
|
13
|
+
|
|
14
|
+
env:
|
|
15
|
+
UV_NO_SYNC: true
|
|
16
|
+
|
|
17
|
+
jobs:
|
|
18
|
+
test-fastapi-main:
|
|
19
|
+
runs-on: ubuntu-latest
|
|
20
|
+
timeout-minutes: 15
|
|
21
|
+
env:
|
|
22
|
+
UV_PYTHON: "3.14"
|
|
23
|
+
|
|
24
|
+
steps:
|
|
25
|
+
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
26
|
+
with:
|
|
27
|
+
persist-credentials: false
|
|
28
|
+
|
|
29
|
+
- name: Set up Python
|
|
30
|
+
uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0 # v7.1.0
|
|
31
|
+
with:
|
|
32
|
+
python-version: "3.14"
|
|
33
|
+
|
|
34
|
+
- name: Setup uv
|
|
35
|
+
uses: astral-sh/setup-uv@07a047e608db84b3d8c06cd9a7c7dcc9c355c18e # v10.3.2
|
|
36
|
+
with:
|
|
37
|
+
# Before upgrading uv version, make sure astral-sh/setup-uv knows its checksum.
|
|
38
|
+
# See: https://github.com/astral-sh/setup-uv/issues/851#issuecomment-4282017837
|
|
39
|
+
version: "0.11.18"
|
|
40
|
+
enable-cache: true
|
|
41
|
+
cache-dependency-glob: |
|
|
42
|
+
pyproject.toml
|
|
43
|
+
uv.lock
|
|
44
|
+
|
|
45
|
+
- name: Install Dependencies
|
|
46
|
+
run: uv sync --no-dev --group tests
|
|
47
|
+
|
|
48
|
+
- name: Install FastAPI from source
|
|
49
|
+
run: uv pip install -U "git+https://github.com/fastapi/fastapi@master"
|
|
50
|
+
|
|
51
|
+
- name: Test
|
|
52
|
+
run: uv run --no-sync bash scripts/test.sh
|
|
@@ -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.1 → 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: |
|
|
@@ -60,6 +60,9 @@ jobs:
|
|
|
60
60
|
- python-version: "3.14"
|
|
61
61
|
fastapi-version: "latest"
|
|
62
62
|
coverage: "coverage"
|
|
63
|
+
# Covers the 0.137.2-0.143.0 band, which takes its own branch in _compat.py.
|
|
64
|
+
- python-version: "3.14"
|
|
65
|
+
fastapi-version: "0.143.0"
|
|
63
66
|
|
|
64
67
|
runs-on: ubuntu-latest
|
|
65
68
|
env:
|
|
@@ -71,17 +74,17 @@ jobs:
|
|
|
71
74
|
GITHUB_CONTEXT: ${{ toJson(github) }}
|
|
72
75
|
run: echo "$GITHUB_CONTEXT"
|
|
73
76
|
|
|
74
|
-
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
77
|
+
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
75
78
|
with:
|
|
76
79
|
persist-credentials: false
|
|
77
80
|
|
|
78
81
|
- name: Set up Python
|
|
79
|
-
uses: actions/setup-python@
|
|
82
|
+
uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0 # v7.1.0
|
|
80
83
|
with:
|
|
81
84
|
python-version: ${{ matrix.python-version }}
|
|
82
85
|
|
|
83
86
|
- name: Setup uv
|
|
84
|
-
uses: astral-sh/setup-uv@
|
|
87
|
+
uses: astral-sh/setup-uv@07a047e608db84b3d8c06cd9a7c7dcc9c355c18e # v10.3.2
|
|
85
88
|
with:
|
|
86
89
|
# Before upgrading uv version, make sure astral-sh/setup-uv knows its checksum.
|
|
87
90
|
# See: https://github.com/astral-sh/setup-uv/issues/851#issuecomment-4282017837
|
|
@@ -93,12 +96,17 @@ jobs:
|
|
|
93
96
|
uv.lock
|
|
94
97
|
|
|
95
98
|
- name: Install Dependencies
|
|
96
|
-
run: uv sync
|
|
99
|
+
run: uv sync --no-dev --group tests
|
|
97
100
|
|
|
98
101
|
- name: Override FastAPI version
|
|
99
102
|
if: matrix.fastapi-version != 'latest'
|
|
100
103
|
run: uv pip install "fastapi==${{ matrix.fastapi-version }}"
|
|
101
104
|
|
|
105
|
+
# Without this, "latest" is whatever uv.lock pins, and only moves when Dependabot does.
|
|
106
|
+
- name: Upgrade to the latest FastAPI
|
|
107
|
+
if: matrix.fastapi-version == 'latest'
|
|
108
|
+
run: uv pip install -U fastapi
|
|
109
|
+
|
|
102
110
|
- name: Prepare coverage dir
|
|
103
111
|
run: mkdir coverage
|
|
104
112
|
|
|
@@ -111,7 +119,7 @@ jobs:
|
|
|
111
119
|
|
|
112
120
|
- name: Store coverage files
|
|
113
121
|
if: matrix.coverage == 'coverage'
|
|
114
|
-
uses: actions/upload-artifact@
|
|
122
|
+
uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
|
|
115
123
|
with:
|
|
116
124
|
name: coverage-${{ matrix.python-version }}-${{ matrix.fastapi-version }}
|
|
117
125
|
path: coverage
|
|
@@ -123,7 +131,7 @@ jobs:
|
|
|
123
131
|
steps:
|
|
124
132
|
- name: Check out the pull request
|
|
125
133
|
if: github.event_name == 'pull_request'
|
|
126
|
-
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
134
|
+
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
127
135
|
with:
|
|
128
136
|
ref: ${{ github.sha }}
|
|
129
137
|
path: pr
|
|
@@ -155,7 +163,7 @@ jobs:
|
|
|
155
163
|
|
|
156
164
|
- name: Check out the base revision
|
|
157
165
|
if: steps.changed-tests.outputs.found == 'true'
|
|
158
|
-
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
166
|
+
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
159
167
|
with:
|
|
160
168
|
ref: ${{ github.event.pull_request.base.sha }}
|
|
161
169
|
path: base
|
|
@@ -163,13 +171,13 @@ jobs:
|
|
|
163
171
|
|
|
164
172
|
- name: Set up Python
|
|
165
173
|
if: steps.changed-tests.outputs.found == 'true'
|
|
166
|
-
uses: actions/setup-python@
|
|
174
|
+
uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0 # v7.1.0
|
|
167
175
|
with:
|
|
168
176
|
python-version-file: "base/.python-version"
|
|
169
177
|
|
|
170
178
|
- name: Setup uv
|
|
171
179
|
if: steps.changed-tests.outputs.found == 'true'
|
|
172
|
-
uses: astral-sh/setup-uv@
|
|
180
|
+
uses: astral-sh/setup-uv@07a047e608db84b3d8c06cd9a7c7dcc9c355c18e # v10.3.2
|
|
173
181
|
with:
|
|
174
182
|
# Before upgrading uv version, make sure astral-sh/setup-uv knows its checksum.
|
|
175
183
|
# See: https://github.com/astral-sh/setup-uv/issues/851#issuecomment-4282017837
|
|
@@ -181,7 +189,7 @@ jobs:
|
|
|
181
189
|
working-directory: base
|
|
182
190
|
run: |
|
|
183
191
|
git apply "$RUNNER_TEMP/tests.patch"
|
|
184
|
-
uv sync --locked
|
|
192
|
+
uv sync --locked --no-dev --group tests
|
|
185
193
|
set +e
|
|
186
194
|
xargs -0 uv run --no-sync pytest -- < "$RUNNER_TEMP/changed-tests"
|
|
187
195
|
status=$?
|
|
@@ -206,12 +214,12 @@ jobs:
|
|
|
206
214
|
GITHUB_CONTEXT: ${{ toJson(github) }}
|
|
207
215
|
run: echo "$GITHUB_CONTEXT"
|
|
208
216
|
|
|
209
|
-
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
217
|
+
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
210
218
|
with:
|
|
211
219
|
persist-credentials: false
|
|
212
220
|
|
|
213
221
|
- name: Setup uv
|
|
214
|
-
uses: astral-sh/setup-uv@
|
|
222
|
+
uses: astral-sh/setup-uv@07a047e608db84b3d8c06cd9a7c7dcc9c355c18e # v10.3.2
|
|
215
223
|
with:
|
|
216
224
|
# Before upgrading uv version, make sure astral-sh/setup-uv knows its checksum.
|
|
217
225
|
# See: https://github.com/astral-sh/setup-uv/issues/851#issuecomment-4282017837
|
|
@@ -222,10 +230,10 @@ jobs:
|
|
|
222
230
|
uv.lock
|
|
223
231
|
|
|
224
232
|
- name: Install Dependencies
|
|
225
|
-
run: uv sync --locked
|
|
233
|
+
run: uv sync --locked --no-dev --group tests
|
|
226
234
|
|
|
227
235
|
- name: Get coverage files
|
|
228
|
-
uses: actions/download-artifact@
|
|
236
|
+
uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8.0.2
|
|
229
237
|
with:
|
|
230
238
|
pattern: coverage-*
|
|
231
239
|
path: coverage
|
|
@@ -237,14 +245,14 @@ jobs:
|
|
|
237
245
|
- run: uv run coverage xml
|
|
238
246
|
|
|
239
247
|
- name: Store coverage HTML
|
|
240
|
-
uses: actions/upload-artifact@
|
|
248
|
+
uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
|
|
241
249
|
with:
|
|
242
250
|
name: coverage-html
|
|
243
251
|
path: htmlcov
|
|
244
252
|
include-hidden-files: true
|
|
245
253
|
|
|
246
254
|
- name: Upload coverage to Codecov
|
|
247
|
-
uses: codecov/codecov-action@303a32d7a59b442fa8d48b6a1cc6825c09c847a5 # v7.
|
|
255
|
+
uses: codecov/codecov-action@303a32d7a59b442fa8d48b6a1cc6825c09c847a5 # v7.1.1
|
|
248
256
|
with:
|
|
249
257
|
token: ${{ secrets.CODECOV_TOKEN }}
|
|
250
258
|
files: coverage.xml
|
|
@@ -267,7 +275,7 @@ jobs:
|
|
|
267
275
|
GITHUB_CONTEXT: ${{ toJson(github) }}
|
|
268
276
|
run: echo "$GITHUB_CONTEXT"
|
|
269
277
|
- name: Decide whether the needed jobs succeeded or failed
|
|
270
|
-
uses: re-actors/alls-green@b5b5b37504aa4183270bd3d855c52a67f212be35 # v1.
|
|
278
|
+
uses: re-actors/alls-green@b5b5b37504aa4183270bd3d855c52a67f212be35 # v1.3.0
|
|
271
279
|
with:
|
|
272
280
|
jobs: ${{ toJSON(needs) }}
|
|
273
281
|
allowed-skips: test,coverage-combine
|
{fastapi_router_versioning-1.2.1 → 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.
|