Skip to content

Commit a68e915

Browse files
committed
Set for 5.7.0
Copy publish github actions from flask to try to get working with latest upload/download artifacts.
1 parent 11f28a8 commit a68e915

6 files changed

Lines changed: 38 additions & 18 deletions

File tree

.github/workflows/publish-too.yaml

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ on:
66
jobs:
77
build:
88
runs-on: ubuntu-latest
9+
outputs:
10+
artifact-id: ${{ steps.upload-artifact.outputs.artifact-id }}
911
steps:
1012
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
1113
- uses: actions/setup-python@e797f83bcb11b83ae66e0230d6156d7c80228e7c # v6.0.0
@@ -21,19 +23,23 @@ jobs:
2123
pip install tox
2224
tox -e makedist-too
2325
- uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5.0.0
26+
id: upload-artifact
2427
with:
25-
path: ./dist
28+
name: dist
29+
path: dist/
30+
if-no-files-found: error
2631
create-release:
2732
needs: [build]
2833
runs-on: ubuntu-latest
2934
permissions:
3035
contents: write
3136
steps:
3237
- uses: actions/download-artifact@018cc2cf5baa6db3ef3c5f8a56943fffe632ef53 # v6.0.0
38+
with:
39+
artifact-ids: ${{ needs.build.outputs.artifact-id }}
40+
path: dist/
3341
- name: create release
34-
run: >
35-
gh release create --draft --repo ${{ github.repository }}
36-
${{ github.ref_name }}-Too artifact/*
42+
run: gh release create --draft --repo ${{ github.repository }} ${{ github.ref_name }}-Too dist/*
3743
env:
3844
GH_TOKEN: ${{ github.token }}
3945
publish-pypi-too:
@@ -48,6 +54,9 @@ jobs:
4854
id-token: write
4955
steps:
5056
- uses: actions/download-artifact@018cc2cf5baa6db3ef3c5f8a56943fffe632ef53 # v6.0.0
57+
with:
58+
artifact-ids: ${{ needs.build.outputs.artifact-id }}
59+
path: dist/
5160
- uses: pypa/gh-action-pypi-publish@ed0c53931b1dc9bd32cbe73a98c7f6766f8a527e # v1.13.0
5261
with:
53-
packages-dir: artifact/
62+
packages-dir: dist/

.github/workflows/publish.yaml

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ on:
66
jobs:
77
build:
88
runs-on: ubuntu-latest
9+
outputs:
10+
artifact-id: ${{ steps.upload-artifact.outputs.artifact-id }}
911
steps:
1012
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
1113
- uses: actions/setup-python@e797f83bcb11b83ae66e0230d6156d7c80228e7c # v6.0.0
@@ -21,19 +23,23 @@ jobs:
2123
pip install tox
2224
tox -e makedist
2325
- uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5.0.0
26+
id: upload-artifact
2427
with:
25-
path: ./dist
28+
name: dist
29+
path: dist/
30+
if-no-files-found: error
2631
create-release:
2732
needs: [build]
2833
runs-on: ubuntu-latest
2934
permissions:
3035
contents: write
3136
steps:
3237
- uses: actions/download-artifact@018cc2cf5baa6db3ef3c5f8a56943fffe632ef53 # v6.0.0
38+
with:
39+
artifact-ids: ${{ needs.build.outputs.artifact-id }}
40+
path: dist/
3341
- name: create release
34-
run: >
35-
gh release create --draft --repo ${{ github.repository }}
36-
${{ github.ref_name }} artifact/*
42+
run: gh release create --draft --repo ${{ github.repository }} ${{ github.ref_name }} dist/*
3743
env:
3844
GH_TOKEN: ${{ github.token }}
3945
publish-pypi:
@@ -48,6 +54,9 @@ jobs:
4854
id-token: write
4955
steps:
5056
- uses: actions/download-artifact@018cc2cf5baa6db3ef3c5f8a56943fffe632ef53 # v6.0.0
57+
with:
58+
artifact-ids: ${{ needs.build.outputs.artifact-id }}
59+
path: dist/
5160
- uses: pypa/gh-action-pypi-publish@ed0c53931b1dc9bd32cbe73a98c7f6766f8a527e # v1.13.0
5261
with:
53-
packages-dir: artifact/
62+
packages-dir: dist/

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,12 @@ repos:
1515
- id: check-merge-conflict
1616
- id: fix-byte-order-marker
1717
- repo: https://github.com/asottile/pyupgrade
18-
rev: v3.21.0
18+
rev: v3.21.1
1919
hooks:
2020
- id: pyupgrade
2121
args: [--py310-plus]
2222
- repo: https://github.com/psf/black
23-
rev: 25.9.0
23+
rev: 25.11.0
2424
hooks:
2525
- id: black
2626
- repo: https://github.com/pycqa/flake8

CHANGES.rst

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Here you can see the full list of changes between each Flask-Security release.
66
Version 5.7.0
77
-------------
88

9-
Released XXX
9+
Released November 14, 2025
1010

1111
This release contains a set of small backward incompatible changes. Please read these notes carefully.
1212

@@ -17,21 +17,22 @@ Features & Improvements
1717

1818
Fixes
1919
+++++
20-
- (:issue:`1109`) Fix broken link in docs and improve docstrings/typing for util classes.
20+
- (:pr:`1115`) Fix broken link in docs and improve docstrings/typing for util classes.
2121
- (:issue:`1127`) Add nonce to script tags if configured to support nonce-based Content-Security-Policy (ahanak).
2222
- (:issue:`1133`) Remove unnecessary (optional) dependency on sqlalchemy_utils.
2323
- (:pr:`1140`) Fix localization of tf_select choices.
24-
- (:pr:`xx`) Support bcrypt 5.0 - See below for important compatibility concerns.
24+
- (:pr:`1143`) Support bcrypt 5.0 - See below for important compatibility concerns.
2525
This also replaces passlib with libpass for all versions.
2626

2727
Docs and Chores
2828
+++++++++++++++
29+
- (:pr:`1144`) Update ES and IT translations (gissimo)
2930
- (:pr:`1106`) Drop support for Python 3.9. This removes the dependency on importlib_resources,
3031
updates pypy to 3.10, and uses 3.12 as base python for tests/tox.
3132
- (:pr:`1112`) Flip :py:data:`SECURITY_USE_REGISTER_V2` default to ``True``.
3233
- (:pr:`1117`) Flip default mail package back to Flask-Mail (from Flask-Mailman).
3334
- (:issue:`1139`) Change external facing terminology from 'WebAuthn Credential' to 'passkey'.
34-
- (:pr:`xx`) Setting of xx_util_cls from kwargs which was deprecated in 5.6.1 has been removed.
35+
- (:pr:`1142`) Setting of xx_util_cls from kwargs which was deprecated in 5.6.1 has been removed.
3536
The BACKWARDS_COMPAT_UNAUTHN option (code) which has been deprecated since 5.4 has been removed.
3637

3738
Backwards Compatibility Concerns

flask_security/models/sqla.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,8 @@
3838

3939
class FsModels:
4040
"""
41-
Helper class for model mixins.
41+
Helper class for model mixins when utilizing the pre-packaged models
42+
for Flask-SQLAlchemy-Lite.
4243
"""
4344

4445
roles_users = None

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ dependencies = [
4949
[project.optional-dependencies]
5050
babel = ["babel>=2.12.1", "flask_babel>=4.0.0"]
5151
fsqla = ["flask_sqlalchemy>=3.1.0", "sqlalchemy>=2.0.18"]
52-
common = ["argon2_cffi>=23.1.0", "bcrypt>4.2.1", "flask_mail>=0.10.0", "bleach>=6.0.0"]
52+
common = ["argon2_cffi>=23.1.0", "bcrypt>=4.2.1", "flask_mail>=0.10.0", "bleach>=6.0.0"]
5353
mfa = ["cryptography>=42.0.4", "qrcode>=7.4.2", "phonenumberslite>=8.13.11", "webauthn>=2.5.0"]
5454
low = [
5555
# Lowest supported versions

0 commit comments

Comments
 (0)