Skip to content

Commit 213d88e

Browse files
committed
Merge branch 'main' into DRIVERS-2917
2 parents 87e29ac + 4411a08 commit 213d88e

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

77 files changed

+1939
-966
lines changed

.github/workflows/codeql.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,18 +45,18 @@ jobs:
4545

4646
steps:
4747
- name: Checkout repository
48-
uses: actions/checkout@v4
48+
uses: actions/checkout@v5
4949
with:
5050
ref: ${{ inputs.ref }}
5151
persist-credentials: false
5252
- name: Set up Python
53-
uses: actions/setup-python@v5
53+
uses: actions/setup-python@v6
5454
with:
5555
python-version: 3.x
5656

5757
# Initializes the CodeQL tools for scanning.
5858
- name: Initialize CodeQL
59-
uses: github/codeql-action/init@76621b61decf072c1cee8dd1ce2d2a82d33c17ed # v3.29.5
59+
uses: github/codeql-action/init@192325c86100d080feab897ff886c34abd4c83a3 # v3.30.3
6060
with:
6161
languages: ${{ matrix.language }}
6262
build-mode: none
@@ -72,6 +72,6 @@ jobs:
7272
pip install -e .
7373
7474
- name: Perform CodeQL Analysis
75-
uses: github/codeql-action/analyze@76621b61decf072c1cee8dd1ce2d2a82d33c17ed # v3.29.5
75+
uses: github/codeql-action/analyze@192325c86100d080feab897ff886c34abd4c83a3 # v3.30.3
7676
with:
7777
category: "/language:${{ matrix.language }}"

.github/workflows/dist.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,12 @@ jobs:
1919
runs-on: ubuntu-latest
2020
environment: release
2121
steps:
22-
- uses: actions/checkout@v4
22+
- uses: actions/checkout@v5
2323
with:
2424
ref: ${{ inputs.ref }}
2525
persist-credentials: false
2626
- name: Set up Python
27-
uses: actions/setup-python@v5
27+
uses: actions/setup-python@v6
2828
with:
2929
python-version: 3.x
3030
- name: Install dependencies

.github/workflows/linters.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@ jobs:
1212
lint:
1313
runs-on: ubuntu-latest
1414
steps:
15-
- uses: actions/checkout@v4
15+
- uses: actions/checkout@v5
1616
with:
1717
persist-credentials: false
18-
- uses: actions/setup-python@v5
18+
- uses: actions/setup-python@v6
1919
with:
2020
python-version: '3.10'
2121
cache: 'pip'
@@ -32,10 +32,10 @@ jobs:
3232
name: Docs Checks
3333
runs-on: ubuntu-latest
3434
steps:
35-
- uses: actions/checkout@v4
35+
- uses: actions/checkout@v5
3636
with:
3737
persist-credentials: false
38-
- uses: actions/setup-python@v5
38+
- uses: actions/setup-python@v6
3939
with:
4040
cache: 'pip'
4141
cache-dependency-path: 'pyproject.toml'

.github/workflows/mongodb_settings.py

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,16 @@
11
import os
22

3-
from django_mongodb_backend import parse_uri
3+
from pymongo.uri_parser import parse_uri
44

55
if mongodb_uri := os.getenv("MONGODB_URI"):
6-
db_settings = parse_uri(mongodb_uri, db_name="dummy")
7-
6+
db_settings = {
7+
"ENGINE": "django_mongodb_backend",
8+
"HOST": mongodb_uri,
9+
}
810
# Workaround for https://github.com/mongodb-labs/mongo-orchestration/issues/268
9-
if db_settings["USER"] and db_settings["PASSWORD"]:
10-
db_settings["OPTIONS"].update({"tls": True, "tlsAllowInvalidCertificates": True})
11+
uri = parse_uri(mongodb_uri)
12+
if uri.get("username") and uri.get("password"):
13+
db_settings["OPTIONS"] = {"tls": True, "tlsAllowInvalidCertificates": True}
1114
DATABASES = {
1215
"default": {**db_settings, "NAME": "djangotests"},
1316
"other": {**db_settings, "NAME": "djangotests-other"},

.github/workflows/release-python.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,14 +80,14 @@ jobs:
8080
name: all-dist-${{ github.run_id }}
8181
path: dist/
8282
- name: Publish package distributions to TestPyPI
83-
uses: pypa/gh-action-pypi-publish@76f52bc884231f62b9a034ebfe128415bbaabdfc # release/v1
83+
uses: pypa/gh-action-pypi-publish@ed0c53931b1dc9bd32cbe73a98c7f6766f8a527e # 1.13.0
8484
with:
8585
repository-url: https://test.pypi.org/legacy/
8686
skip-existing: true
8787
attestations: ${{ env.DRY_RUN }}
8888
- name: Publish package distributions to PyPI
8989
if: startsWith(env.DRY_RUN, 'false')
90-
uses: pypa/gh-action-pypi-publish@76f52bc884231f62b9a034ebfe128415bbaabdfc # release/v1
90+
uses: pypa/gh-action-pypi-publish@ed0c53931b1dc9bd32cbe73a98c7f6766f8a527e # 1.13.0
9191

9292
post-publish:
9393
needs: [publish]

.github/workflows/test-python-atlas.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,15 +22,15 @@ jobs:
2222
runs-on: ubuntu-latest
2323
steps:
2424
- name: Checkout django-mongodb-backend
25-
uses: actions/checkout@v4
25+
uses: actions/checkout@v5
2626
with:
2727
persist-credentials: false
2828
- name: install django-mongodb-backend
2929
run: |
3030
pip3 install --upgrade pip
3131
pip3 install -e .
3232
- name: Checkout Django
33-
uses: actions/checkout@v4
33+
uses: actions/checkout@v5
3434
with:
3535
repository: 'mongodb-forks/django'
3636
ref: 'mongodb-5.2.x'

.github/workflows/test-python-geo.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,15 +23,15 @@ jobs:
2323
runs-on: ubuntu-latest
2424
steps:
2525
- name: Checkout django-mongodb-backend
26-
uses: actions/checkout@v4
26+
uses: actions/checkout@v5
2727
with:
2828
persist-credentials: false
2929
- name: install django-mongodb-backend
3030
run: |
3131
pip3 install --upgrade pip
3232
pip3 install -e .
3333
- name: Checkout Django
34-
uses: actions/checkout@v4
34+
uses: actions/checkout@v5
3535
with:
3636
repository: 'mongodb-forks/django'
3737
ref: 'mongodb-5.2.x'

.github/workflows/test-python.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,15 +22,15 @@ jobs:
2222
runs-on: ubuntu-latest
2323
steps:
2424
- name: Checkout django-mongodb-backend
25-
uses: actions/checkout@v4
25+
uses: actions/checkout@v5
2626
with:
2727
persist-credentials: false
2828
- name: install django-mongodb-backend
2929
run: |
3030
pip3 install --upgrade pip
3131
pip3 install -e .
3232
- name: Checkout Django
33-
uses: actions/checkout@v4
33+
uses: actions/checkout@v5
3434
with:
3535
repository: 'mongodb-forks/django'
3636
ref: 'mongodb-5.2.x'

.github/workflows/zizmor.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ jobs:
1414
security-events: write
1515
steps:
1616
- name: Checkout repository
17-
uses: actions/checkout@v4
17+
uses: actions/checkout@v5
1818
with:
1919
persist-credentials: false
2020
- name: Run zizmor
21-
uses: zizmorcore/zizmor-action@383d31df2eb66a2f42db98c9654bdc73231f3e3a
21+
uses: zizmorcore/zizmor-action@e673c3917a1aef3c65c972347ed84ccd013ecda4 # v0.2.0

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,5 +47,5 @@ __pycache__
4747

4848
# documentation build artifacts
4949

50-
docs/build
50+
docs/_build
5151
site/

0 commit comments

Comments
 (0)