Skip to content

Commit 532ee57

Browse files
authored
Merge branch 'master' into feature/names
2 parents 87949c3 + 2a99653 commit 532ee57

File tree

354 files changed

+4396
-2566
lines changed

Some content is hidden

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

354 files changed

+4396
-2566
lines changed

.flake8

Lines changed: 0 additions & 4 deletions
This file was deleted.

.github/dependabot.yml

Lines changed: 0 additions & 12 deletions
This file was deleted.

.github/renovate.json

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
{
2+
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
3+
"extends": [
4+
"config:recommended",
5+
":dependencyDashboard",
6+
"helpers:pinGitHubActionDigests"
7+
],
8+
"automerge": true,
9+
"automergeType": "pr",
10+
"automergeStrategy": "rebase",
11+
"platformAutomerge": true,
12+
"pre-commit": {
13+
"enabled": true
14+
},
15+
"customManagers": [
16+
{
17+
"customType": "regex",
18+
"fileMatch": [
19+
"\\.pre-commit-config\\.yaml"
20+
],
21+
"matchStrings": [
22+
"(?<depName>[^'\" ]+)==(?<currentValue>[^'\" ,\\s]+)"
23+
],
24+
"datasourceTemplate": "pypi",
25+
"versioningTemplate": "pep440"
26+
},
27+
{
28+
"customType": "regex",
29+
"fileMatch": [
30+
"\\.pre-commit-config\\.yaml"
31+
],
32+
"matchStrings": [
33+
"(?<depName>[^'\" ]+)@(?<currentValue>[^'\" ,\\s]+)"
34+
],
35+
"datasourceTemplate": "npm",
36+
"versioningTemplate": "npm"
37+
}
38+
]
39+
}

.github/workflows/flake8.yml

Lines changed: 0 additions & 30 deletions
This file was deleted.
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: pre-commit check
2+
3+
on:
4+
workflow_call:
5+
6+
permissions:
7+
contents: read
8+
9+
jobs:
10+
pre-commit:
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
15+
with:
16+
persist-credentials: false
17+
18+
- uses: actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3
19+
with:
20+
path: ~/.cache/pre-commit
21+
key: ${{ runner.os }}-pre-commit-${{ hashFiles('.pre-commit-config.yaml', 'requirements*.txt') }}
22+
23+
- name: Setup Python
24+
uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0
25+
with:
26+
python-version: 3.x
27+
28+
- uses: astral-sh/setup-uv@f0ec1fc3b38f5e7cd731bb6ce540c5af426746bb # v6.1.0
29+
30+
- run: uvx pre-commit run --all
31+
env:
32+
RUFF_OUTPUT_FORMAT: github

.github/workflows/pre-commit.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
name: pre-commit check
2+
3+
on:
4+
push:
5+
pull_request:
6+
7+
permissions:
8+
contents: read
9+
10+
jobs:
11+
pre-commit:
12+
uses: ./.github/workflows/pre-commit-shared.yml

.github/workflows/release.yml

Lines changed: 30 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -1,54 +1,50 @@
11
name: Release
22

33
on:
4-
release:
5-
types: [published]
4+
push:
5+
pull_request:
6+
7+
permissions:
8+
contents: read
69

710
jobs:
811
release:
912
runs-on: ubuntu-latest
13+
permissions:
14+
id-token: write
1015
steps:
11-
- uses: actions/checkout@v4
12-
13-
- name: Set up Python
14-
uses: actions/setup-python@v5
16+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
1517
with:
16-
python-version: '3.9'
17-
cache: pip
18-
cache-dependency-path: requirements*.txt
18+
persist-credentials: false
19+
- uses: astral-sh/setup-uv@f0ec1fc3b38f5e7cd731bb6ce540c5af426746bb # v6.1.0
1920

20-
- name: Install Python dependencies
21+
- run: uv build
22+
23+
- name: Verify wheel install
2124
run: |
22-
python -m pip install --upgrade pip
23-
pip install wheel twine
25+
uv venv .venv-install-whl
26+
source .venv-install-whl/bin/activate
27+
uv pip install dist/*.whl
2428
25-
- name: Verify tag is documented
29+
- name: Verify source install
2630
run: |
27-
CURRENT_TAG=${GITHUB_REF#refs/tags/}
28-
CURRENT_VERSION=$(head -n1 social_core/__init__.py | awk '{print $3}' | sed 's/[^0-9\.]//g')
29-
if [ "${CURRENT_VERSION}" != "${CURRENT_TAG}" ]; then
30-
echo "========================================================================"
31-
echo "Error: tag '${CURRENT_TAG}' and version '${CURRENT_VERSION}' don't match"
32-
echo "========================================================================"
33-
exit 1;
34-
fi
35-
36-
- name: Build dist
37-
run: python setup.py sdist bdist_wheel --python-tag py3
38-
39-
- name: Archive dist
40-
uses: actions/upload-artifact@v4
31+
uv venv .venv-install-tar
32+
source .venv-install-tar/bin/activate
33+
uv pip install dist/*.tar.gz
34+
35+
- uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
36+
if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags/')
4137
with:
4238
name: dist
4339
path: |
4440
dist/*.tar.gz
4541
dist/*.whl
4642
47-
- name: Verify long description rendering
48-
run: twine check dist/*
43+
- run: uvx twine check dist/*
44+
- run: uvx pydistcheck --inspect dist/*
45+
- run: uvx pyroma dist/*.tar.gz
46+
- run: uvx check-wheel-contents dist/*.whl
47+
- run: uvx check-manifest -v
4948

50-
- name: Publish
51-
env:
52-
PYPI_API_TOKEN: ${{ secrets.PYPI_API_TOKEN }}
53-
run: |
54-
twine upload --non-interactive -u __token__ -p "${PYPI_API_TOKEN}" dist/*
49+
- if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags/')
50+
run: uv publish --trusted-publishing always

.github/workflows/test.yml

Lines changed: 51 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2,45 +2,83 @@ name: Tests
22

33
on: [push, pull_request]
44

5+
permissions:
6+
contents: read
7+
58
jobs:
9+
types:
10+
runs-on: ubuntu-24.04
11+
strategy:
12+
fail-fast: false
13+
matrix:
14+
python-version:
15+
- '3.9'
16+
- '3.13'
17+
env:
18+
PYTHON_VERSION: ${{ matrix.python-version }}
19+
PYTHONUNBUFFERED: 1
20+
21+
steps:
22+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
23+
with:
24+
persist-credentials: false
25+
26+
- name: Set up Python ${{ matrix.python-version }}
27+
uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0
28+
with:
29+
python-version: ${{ matrix.python-version }}
30+
31+
- uses: astral-sh/setup-uv@f0ec1fc3b38f5e7cd731bb6ce540c5af426746bb # v6.1.0
32+
with:
33+
cache-suffix: ${{ matrix.python-version }}
34+
35+
- name: Install System dependencies
36+
run: |
37+
sudo apt-get update
38+
sudo apt-get install -qq -y --no-install-recommends libxmlsec1-dev swig
39+
40+
- name: Type check with tox
41+
run: uvx tox -e "py${PYTHON_VERSION/\./}-pyright"
42+
643
test:
7-
runs-on: ubuntu-20.04
44+
runs-on: ubuntu-24.04
845
strategy:
46+
fail-fast: false
947
matrix:
1048
python-version:
11-
- '3.8'
1249
- '3.9'
1350
- '3.10'
1451
- '3.11'
1552
- '3.12'
53+
- '3.13'
1654
env:
1755
PYTHON_VERSION: ${{ matrix.python-version }}
1856
PYTHONUNBUFFERED: 1
1957

2058
steps:
21-
- uses: actions/checkout@v4
59+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
60+
with:
61+
persist-credentials: false
2262

2363
- name: Set up Python ${{ matrix.python-version }}
24-
uses: actions/setup-python@v5
64+
uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0
2565
with:
2666
python-version: ${{ matrix.python-version }}
27-
cache: pip
28-
cache-dependency-path: requirements*.txt
67+
68+
- uses: astral-sh/setup-uv@f0ec1fc3b38f5e7cd731bb6ce540c5af426746bb # v6.1.0
69+
with:
70+
cache-suffix: ${{ matrix.python-version }}
2971

3072
- name: Install System dependencies
3173
run: |
3274
sudo apt-get update
3375
sudo apt-get install -qq -y --no-install-recommends libxmlsec1-dev swig
3476
35-
- name: Install Python dependencies
36-
run: |
37-
python -m pip install --upgrade pip
38-
pip install coverage tox
39-
4077
- name: Test with tox
41-
run: tox -e "py${PYTHON_VERSION/\./}"
78+
run: uvx tox -e "py${PYTHON_VERSION/\./}"
4279

43-
- uses: codecov/codecov-action@v3
80+
- uses: codecov/codecov-action@18283e04ce6e62d37312384ff67231eb8fd56d24 # v5.4.3
4481
with:
4582
flags: unittests
4683
name: Python ${{ matrix.python-version }}
84+
token: ${{secrets.CODECOV_TOKEN}}

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ pip-log.txt
2525
.coverage
2626
.tox
2727
nosetests.xml
28+
uv.lock
2829

2930
# Translations
3031
*.mo
@@ -52,5 +53,5 @@ changelog.sh
5253

5354
.pytest_cache/
5455

55-
files/local.env
5656
.env
57+
.venv*

0 commit comments

Comments
 (0)