Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upstream changes #1

Open
wants to merge 155 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
155 commits
Select commit Hold shift + click to select a range
26d89db
[pre-commit.ci] pre-commit autoupdate
pre-commit-ci[bot] Sep 19, 2023
ca841a0
New backend for the WLCG IAM testing site (#820)
maikenp Sep 19, 2023
251887e
[pre-commit.ci] pre-commit autoupdate
pre-commit-ci[bot] Sep 26, 2023
ffc0ac4
[pre-commit.ci] pre-commit autoupdate
pre-commit-ci[bot] Oct 3, 2023
7f314b5
[pre-commit.ci] pre-commit autoupdate
pre-commit-ci[bot] Oct 9, 2023
b7a36c7
build(deps-dev): bump pre-commit from 3.4.0 to 3.5.0
dependabot[bot] Oct 13, 2023
a8cf324
[pre-commit.ci] pre-commit autoupdate
pre-commit-ci[bot] Oct 16, 2023
8e21c61
Support Python 3.12 (and 3.11) (#839)
pfouque Oct 17, 2023
4cdf890
Add new backend for EGI Check-in (#836)
enolfc Oct 17, 2023
9995648
[pre-commit.ci] pre-commit autoupdate
pre-commit-ci[bot] Oct 23, 2023
9c630a6
[pre-commit.ci] pre-commit autoupdate
pre-commit-ci[bot] Oct 30, 2023
e0cb888
Add new backend for LinkedIn OpenID Connect (#833)
noxan Oct 31, 2023
6c69c60
Version bump 4.5.0
nijel Oct 31, 2023
8fed29b
Skip 'at_hash' claim validation when missing
browniebroke Nov 7, 2023
2f08a38
Add documentation to PR checklist
nijel Nov 9, 2023
b9d9937
Use shared templates from the .github repo
nijel Nov 9, 2023
0d629f4
Pass `redirect_name` from `do_complete` action to Backend
RJPercival Nov 6, 2023
b631796
Pass "next" URL through SAML RelayState
RJPercival Nov 6, 2023
fcc6894
Merge pull request #851 from RJPercival/next_url_in_relay_state
digismack Nov 10, 2023
1025578
Create a backend for OAuth1 connection to Discogs
Nov 9, 2023
a670659
[pre-commit.ci] pre-commit autoupdate
pre-commit-ci[bot] Nov 13, 2023
51ff887
feat: add new backend `BitbucketDataCenterOAuth2` (#856)
eshaan7 Nov 22, 2023
0925304
Revert "Make Keycloak's ID_KEY configurable"
RJPercival Nov 15, 2023
f1b9fa5
Version bump 4.5.1
nijel Nov 29, 2023
a01ba25
build(deps): bump actions/setup-python from 4 to 5
dependabot[bot] Dec 6, 2023
d584701
[pre-commit.ci] pre-commit autoupdate
pre-commit-ci[bot] Dec 11, 2023
26bdff5
build(deps-dev): bump pre-commit from 3.5.0 to 3.6.0
dependabot[bot] Dec 11, 2023
9498b4e
build(deps): bump actions/upload-artifact from 3 to 4
dependabot[bot] Dec 14, 2023
044f3c1
[pre-commit.ci] pre-commit autoupdate
pre-commit-ci[bot] Dec 18, 2023
61a5ec1
[pre-commit.ci] pre-commit autoupdate
pre-commit-ci[bot] Dec 25, 2023
03f67ae
[pre-commit.ci] pre-commit autoupdate
pre-commit-ci[bot] Jan 8, 2024
34e4746
Update the Facebook API version from 12.0 to 18.0
Tenzer Jan 12, 2024
9d3ba91
feat: Added Backend 'EtsyOAuth2' (#874)
amitray007 Jan 12, 2024
a5a34d5
Make AppleID work with multiple identifiers
nossila Dec 21, 2023
ca41f2a
Version bump 4.5.2
nijel Jan 26, 2024
c19ae66
[pre-commit.ci] pre-commit autoupdate
pre-commit-ci[bot] Jan 29, 2024
22dcdaa
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Jan 29, 2024
f6d81fd
[feat] Add OAuth2 support for OpenStreetMap (#877)
mmd-osm Jan 30, 2024
4bb29b1
fix: Etsy OAuth2 Authentication bugs (#880)
amitray007 Jan 31, 2024
4d0dae7
build(deps-dev): bump pre-commit from 3.6.0 to 3.6.1
dependabot[bot] Feb 12, 2024
5c4f403
[pre-commit.ci] pre-commit autoupdate
pre-commit-ci[bot] Feb 12, 2024
27bbf67
Release 4.5.3 (#885)
yohanboniface Feb 14, 2024
213b391
[pre-commit.ci] pre-commit autoupdate
pre-commit-ci[bot] Feb 19, 2024
2dfad71
build(deps-dev): bump pre-commit from 3.6.1 to 3.6.2
dependabot[bot] Feb 19, 2024
dbc880c
Add `refresh_token` into Linkedin `EXTRA_DATA` (#890)
adipascu Feb 20, 2024
51359ba
Fix values check in extra_data
igorgaming Feb 29, 2024
93aca9e
[pre-commit.ci] pre-commit autoupdate
pre-commit-ci[bot] Mar 18, 2024
830d956
build(deps-dev): bump pre-commit from 3.6.2 to 3.7.0
dependabot[bot] Mar 25, 2024
d03a572
[pre-commit.ci] pre-commit autoupdate
pre-commit-ci[bot] Mar 25, 2024
61d58d6
[pre-commit.ci] pre-commit autoupdate
pre-commit-ci[bot] Apr 1, 2024
d216c96
[pre-commit.ci] pre-commit autoupdate
pre-commit-ci[bot] Apr 8, 2024
019cb70
[pre-commit.ci] pre-commit autoupdate
pre-commit-ci[bot] Apr 15, 2024
948235e
tox: remove lxml/xmlsec workaround
nijel Apr 25, 2024
146a634
Update mediawiki.py
albertoleoncio Apr 4, 2024
70aad43
pipeline: make sure uid is string
nijel Apr 25, 2024
7eb6c06
Set redirect_state to False for box backend
Arnautt Feb 19, 2024
1f706e1
fix: SteamOpenId does not validate identity url (#807)
zhuang42 Apr 25, 2024
4a7d470
Release 4.5.4
nijel Apr 25, 2024
4384f38
[pre-commit.ci] pre-commit autoupdate
pre-commit-ci[bot] Apr 29, 2024
654eda0
deps: Fixes defusedxml requirement (#912)
bj00rn May 6, 2024
2c53cb1
build(deps-dev): bump pre-commit from 3.7.0 to 3.7.1
dependabot[bot] May 13, 2024
4328bc6
Fix social-app-django/issues/355
nikoder May 15, 2024
95316b0
Nicer implementation of ORCID login fix for missing family name
nikoder May 16, 2024
d7bba22
[pre-commit.ci] pre-commit autoupdate
pre-commit-ci[bot] Jun 10, 2024
49d589e
[pre-commit.ci] pre-commit autoupdate
pre-commit-ci[bot] Jun 17, 2024
3449faf
fix(telegram): ensure username is string even if based on id
Fleapse Jun 24, 2024
ec8d84f
fix: Allow per-backend user pipeline settings (#677)
dehnert Jul 15, 2024
e9f996a
[pre-commit.ci] pre-commit autoupdate
pre-commit-ci[bot] Jul 15, 2024
fd7dd90
Use timezone-aware datetime objects
Tenzer Jul 17, 2024
f803525
build(deps-dev): bump pre-commit from 3.7.1 to 3.8.0
dependabot[bot] Jul 29, 2024
b051334
[pre-commit.ci] pre-commit autoupdate
pre-commit-ci[bot] Jul 29, 2024
5899cb9
[pre-commit.ci] pre-commit autoupdate
pre-commit-ci[bot] Aug 5, 2024
19ae97d
Fix access_token expiration and refresh handling in GitHub backend
gmargaritis Aug 30, 2024
d9554fa
Add AzureADOauth2 backend using the v2.0 API.
mateuszmandera Aug 22, 2024
e294f03
[pre-commit.ci] pre-commit autoupdate
pre-commit-ci[bot] Oct 7, 2024
7e36f5b
build(deps-dev): bump pre-commit from 3.8.0 to 4.0.0
dependabot[bot] Oct 7, 2024
1d6b173
build(deps-dev): bump pre-commit from 4.0.0 to 4.0.1
dependabot[bot] Oct 8, 2024
5b7ec01
[pre-commit.ci] pre-commit autoupdate
pre-commit-ci[bot] Oct 14, 2024
c2b71d7
chore: add funding.json url
nijel Oct 17, 2024
f6d0cdd
Fix deprecated Atlassian field `name`
fsto Oct 24, 2024
a7f9478
[pre-commit.ci] pre-commit autoupdate
pre-commit-ci[bot] Oct 28, 2024
02900f5
build(deps): bump codecov/codecov-action from 3 to 5
dependabot[bot] Nov 14, 2024
7ad0dc4
Allow overriding emails to be fully lowercase
selten Nov 25, 2024
8f288e4
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Nov 25, 2024
f71316a
Cleanup erroneous copy-paste for testing of lowercase emails
selten Nov 25, 2024
073f6a1
Ensure returning the email is supported
selten Nov 25, 2024
326d4b3
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Nov 25, 2024
505ce60
Merge pull request #943 from selten/lowercase-email-enforcement
gersona Nov 29, 2024
9e08c3d
944 fix params in auth url (#945)
gersona Dec 9, 2024
49fbc7a
[pre-commit.ci] pre-commit autoupdate
pre-commit-ci[bot] Dec 23, 2024
6221412
fix: LinkedIn OAuth API updates (#950)
offbyone Jan 6, 2025
c9e4b6b
chore: use ruff for linting and code formatting
nijel Jan 6, 2025
089e262
Modify the dummy tests to be timezone-safe (#953)
nijel Jan 6, 2025
ec82b56
feat: Switch to pyproject.toml for project metadata (#951)
offbyone Jan 6, 2025
8fc823b
feat: modernize release process
nijel Jan 6, 2025
10db9cc
chore: drop support for Python 3.8
nijel Jan 6, 2025
28e9f73
feat: add support for Python 3.13
nijel Jan 6, 2025
90ebc0a
chore: remove not needed else statement
nijel Jan 6, 2025
e3332e8
chore: use startswith with tuple
nijel Jan 6, 2025
f08c75f
chore: remove not needed else after return
nijel Jan 6, 2025
1548d6c
fix: remove outdated Python 2 code
nijel Jan 6, 2025
9f04a63
chore: use next() instead of getting first element from list
nijel Jan 6, 2025
444937b
chore: avoid using join on string literals
nijel Jan 6, 2025
4b31506
chore: remove legacy code for no longer supported Python versions
nijel Jan 6, 2025
21b1a07
chore: use dict literals
nijel Jan 6, 2025
191bf03
fix: add explicit return None
nijel Jan 6, 2025
813822a
chore: use unpacking instead of manual concatenation
nijel Jan 6, 2025
8a6be98
chore: remove not needed params from exception class
nijel Jan 6, 2025
6051318
chore: use f-strings instead of format()
nijel Jan 6, 2025
b3c7dc1
chore: use values when only dict values are needed
nijel Jan 6, 2025
70b6354
chore: avoid import as when not renaming
nijel Jan 6, 2025
c0ce8e2
chore: use literals and comprehensions more effectively
nijel Jan 6, 2025
9e7ca8b
chore: simplify return statements
nijel Jan 6, 2025
0feeb57
chore: bring back isort ordering
nijel Jan 6, 2025
b9de505
chore: remove not needed pass statements
nijel Jan 6, 2025
ecec3f6
chore: merge nested with statements
nijel Jan 6, 2025
fca71b8
feat(ci): extend ruff rulesets
nijel Jan 6, 2025
74e2020
chore: apply assorted ruff fixes
nijel Jan 6, 2025
54102e9
chore: use f-strings where applicable
nijel Jan 6, 2025
3d95a29
chore: build string directly instead of intermediate bits tuple
nijel Jan 6, 2025
2c4994c
fix(ci): correctly check for version info
nijel Jan 8, 2025
f351427
Remve call for maintainers from README.md
nijel Jan 8, 2025
e093a9a
chore: drop unused SSLHttpAdapter
nijel Jan 10, 2025
3aac098
chore(deps): update ruff to 0.9.0
nijel Jan 10, 2025
3cce6f3
feat: Type Annotate the *heck* out of social-core (#986)
offbyone Jan 10, 2025
72d4725
feat(ci): extend pre-commit hooks
nijel Jan 10, 2025
cd4396c
feat(ci): pretty format toml files
nijel Jan 10, 2025
19e9ef0
feat(ci): pretty format markdown files
nijel Jan 10, 2025
23f737d
feat(ci): add pyproject validation
nijel Jan 10, 2025
2e91313
feat(ci): introduce codespell
nijel Jan 10, 2025
d43d442
feat: switch to renovate from dependabot
nijel Jan 10, 2025
3f19af7
chore(deps): update python docker tag to v3.11.4
renovate[bot] Jan 10, 2025
37d5ccd
feat: enable dependency dashboard for renovate
nijel Jan 10, 2025
c77c4ed
chore: drop docker-compose based test and releaase workflows
nijel Jan 10, 2025
1267178
chore: remove no longer used rerequirements-*.txt
nijel Jan 10, 2025
4eb1656
chore(deps): update dependency ubuntu to v24
renovate[bot] Jan 10, 2025
86decc9
chore: update shared files
nijel Jan 10, 2025
810cbf2
feat: improve readme
nijel Jan 10, 2025
24231b3
fix: use https link for semver
nijel Jan 10, 2025
6ac7325
feat(ci): turn pre-commit into reusable workflow
nijel Jan 10, 2025
834edb6
fix: fix repo name
nijel Jan 10, 2025
773c729
chore: use logging native formatting
nijel Jan 10, 2025
9fe73f4
chore: drop 10 years deprecated interface
nijel Jan 10, 2025
5217ad9
chore: move the logic to the sync script
nijel Jan 10, 2025
c8e60d7
fix: remove no longer needed condition
nijel Jan 10, 2025
71bfcfe
feat: make release flow reusable
nijel Jan 10, 2025
43b8b7e
chore(deps): update pre-commit hook astral-sh/ruff-pre-commit to v0.9.1
renovate[bot] Jan 10, 2025
138c2f1
chore(deps): update pre-commit hook astral-sh/ruff-pre-commit to v0.9.2
renovate[bot] Jan 16, 2025
b010c81
feat(ci): enable dep updates automerge
nijel Jan 16, 2025
d27f63c
chore(deps): update pre-commit hook codespell-project/codespell to v2…
renovate[bot] Jan 21, 2025
8fdc85b
chore(deps): update pre-commit hook astral-sh/ruff-pre-commit to v0.9.3
renovate[bot] Jan 23, 2025
67abf8f
feat: Log `HTTPError` response text (#1008)
dases Jan 27, 2025
7c6fa64
chore(deps): update pre-commit hook codespell-project/codespell to v2…
renovate[bot] Jan 28, 2025
44f0137
Merge remote-tracking branch 'upstream/master' into upstream
Rub21 Jan 29, 2025
5772e9b
Replace openstreetmap -> openhistoricalmap
Rub21 Jan 29, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
4 changes: 0 additions & 4 deletions .flake8

This file was deleted.

30 changes: 0 additions & 30 deletions .github/ISSUE_TEMPLATE.md

This file was deleted.

39 changes: 0 additions & 39 deletions .github/PULL_REQUEST_TEMPLATE.md

This file was deleted.

12 changes: 0 additions & 12 deletions .github/dependabot.yml

This file was deleted.

38 changes: 38 additions & 0 deletions .github/renovate.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": [
"config:recommended",
":dependencyDashboard"
],
"automerge": true,
"automergeType": "pr",
"automergeStrategy": "rebase",
"platformAutomerge": true,
"pre-commit": {
"enabled": true
},
"customManagers": [
{
"customType": "regex",
"fileMatch": [
"\\.pre-commit-config\\.yaml"
],
"matchStrings": [
"(?<depName>[^'\" ]+)==(?<currentValue>[^'\" ,\\s]+)"
],
"datasourceTemplate": "pypi",
"versioningTemplate": "pep440"
},
{
"customType": "regex",
"fileMatch": [
"\\.pre-commit-config\\.yaml"
],
"matchStrings": [
"(?<depName>[^'\" ]+)@(?<currentValue>[^'\" ,\\s]+)"
],
"datasourceTemplate": "npm",
"versioningTemplate": "npm"
}
]
}
30 changes: 0 additions & 30 deletions .github/workflows/flake8.yml

This file was deleted.

27 changes: 27 additions & 0 deletions .github/workflows/pre-commit-shared.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: pre-commit check

on:
workflow_call:

jobs:
pre-commit:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- uses: actions/cache@v4
with:
path: ~/.cache/pre-commit
key: ${{ runner.os }}-pre-commit-${{ hashFiles('.pre-commit-config.yaml', 'requirements*.txt') }}

- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: 3.x

- uses: astral-sh/setup-uv@v5

- run: uvx pre-commit run --all
env:
RUFF_OUTPUT_FORMAT: github
9 changes: 9 additions & 0 deletions .github/workflows/pre-commit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
name: pre-commit check

on:
push:
pull_request:

jobs:
pre-commit:
uses: ./.github/workflows/pre-commit-shared.yml
56 changes: 56 additions & 0 deletions .github/workflows/release-shared.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
name: Release

on:
workflow_call:
inputs:
github_event_name:
required: true
type: string

jobs:
release:
runs-on: ubuntu-latest
permissions:
id-token: write
steps:
- uses: actions/checkout@v4
- uses: astral-sh/setup-uv@v5

- name: Verify tag is documented
if: inputs.github_event_name == 'release'
run: |
CURRENT_TAG=${GITHUB_REF#refs/tags/}
CURRENT_VERSION=$(sed -n 's/version = "\(.*\)"/\1/p' pyproject.toml)
if [ "${CURRENT_VERSION}" != "${CURRENT_TAG}" ]; then
echo "========================================================================"
echo "Error: tag '${CURRENT_TAG}' and version '${CURRENT_VERSION}' don't match"
echo "========================================================================"
exit 1;
fi

- run: uv build

- name: Verify wheel install
run: |
uv venv venv-install-whl
source venv-install-whl/bin/activate
uv pip install dist/*.whl

- name: Verify source install
run: |
uv venv venv-install-tar
source venv-install-tar/bin/activate
uv pip install dist/*.tar.gz

- uses: actions/upload-artifact@v4
if: inputs.github_event_name == 'release'
with:
name: dist
path: |
dist/*.tar.gz
dist/*.whl

- run: uvx twine check dist/*

- if: inputs.github_event_name == 'release'
run: uv publish --trusted-publishing always
53 changes: 7 additions & 46 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,52 +3,13 @@ name: Release
on:
release:
types: [published]
push:
pull_request:

jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.9'
cache: pip
cache-dependency-path: requirements*.txt

- name: Install Python dependencies
run: |
python -m pip install --upgrade pip
pip install wheel twine

- name: Verify tag is documented
run: |
CURRENT_TAG=${GITHUB_REF#refs/tags/}
CURRENT_VERSION=$(head -n1 social_core/__init__.py | awk '{print $3}' | sed 's/[^0-9\.]//g')
if [ "${CURRENT_VERSION}" != "${CURRENT_TAG}" ]; then
echo "========================================================================"
echo "Error: tag '${CURRENT_TAG}' and version '${CURRENT_VERSION}' don't match"
echo "========================================================================"
exit 1;
fi

- name: Build dist
run: python setup.py sdist bdist_wheel --python-tag py3

- name: Archive dist
uses: actions/upload-artifact@v3
with:
name: dist
path: |
dist/*.tar.gz
dist/*.whl

- name: Verify long description rendering
run: twine check dist/*

- name: Publish
env:
PYPI_API_TOKEN: ${{ secrets.PYPI_API_TOKEN }}
run: |
twine upload --non-interactive -u __token__ -p "${PYPI_API_TOKEN}" dist/*
uses: ./.github/workflows/release-shared.yml
with:
github_event_name: ${{ github.event_name }}
permissions:
id-token: write
47 changes: 43 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,54 @@ name: Tests
on: [push, pull_request]

jobs:
types:
runs-on: ubuntu-24.04
strategy:
fail-fast: false
matrix:
python-version:
- '3.9'
- '3.13'
env:
PYTHON_VERSION: ${{ matrix.python-version }}
PYTHONUNBUFFERED: 1

steps:
- uses: actions/checkout@v4
with:
persist-credentials: false

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: pip
cache-dependency-path: pyproject.toml

- name: Install System dependencies
run: |
sudo apt-get update
sudo apt-get install -qq -y --no-install-recommends libxmlsec1-dev swig

- name: Install Python dependencies
run: |
python -m pip install --upgrade pip
pip install tox

- name: Type check with tox
run: tox -e "py${PYTHON_VERSION/\./}-pyright"

test:
runs-on: ubuntu-20.04
runs-on: ubuntu-24.04
strategy:
fail-fast: false
matrix:
python-version:
- '3.8'
- '3.9'
- '3.10'
- '3.11'
- '3.12'
- '3.13'
env:
PYTHON_VERSION: ${{ matrix.python-version }}
PYTHONUNBUFFERED: 1
Expand All @@ -20,7 +59,7 @@ jobs:
- uses: actions/checkout@v4

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: pip
Expand All @@ -39,7 +78,7 @@ jobs:
- name: Test with tox
run: tox -e "py${PYTHON_VERSION/\./}"

- uses: codecov/codecov-action@v3
- uses: codecov/codecov-action@v5
with:
flags: unittests
name: Python ${{ matrix.python-version }}
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -52,5 +52,4 @@ changelog.sh

.pytest_cache/

files/local.env
.env
Loading
Loading