Skip to content

Commit

Permalink
chore: apply pre-commit fixes
Browse files Browse the repository at this point in the history
Automated update of shared files from the social-core repository, see
https://github.com/python-social-auth/.github/blob/main/repo-sync.py
  • Loading branch information
nijel committed Jan 10, 2025
1 parent 885e55a commit 9a66efd
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 45 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,26 +8,31 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
## [Unreleased](https://github.com/python-social-auth/social-app-flask-sqlalchemy/commits/master)

### Changed

- Modified model and access code to work with SQLAlchemy version 2 (Issue #3)
- Updated packaging information files per PEP 517, PEP 518 (Issue #4)
- Restricted Python minimum working version to 3.7 or higher to align with SQLAlchemy 2 (Issue #3)

## [1.0.1](https://github.com/python-social-auth/social-app-flask-sqlalchemy/releases/tag/1.0.1) - 2017-01-29

### Added

- Missing social-auth-storage-sqlalchemy dependency

## [1.0.0](https://github.com/python-social-auth/social-app-flask-sqlalchemy/releases/tag/1.0.0) - 2017-01-22

### Added

- Added partial pipeline db storage solution

### Changed

- Allow apps to have any type of user_id field (port of [#1040](https://github.com/omab/python-social-auth/pull/1040)
by prmtl)

## [0.0.1](https://github.com/python-social-auth/social-app-flask-sqlalchemy/releases/tag/0.0.1) - 2016-11-27

### Changed

- Split from the monolitic [python-social-auth](https://github.com/omab/python-social-auth)
codebase
74 changes: 37 additions & 37 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,60 +1,60 @@
[build-system]
requires = ["setuptools"]
build-backend = "setuptools.build_meta"
requires = ["setuptools"]

[options]
zip_safe = false

[project]
name = 'social-auth-app-flask-sqlalchemy'
dynamic = ["version"]
dependencies = [
"six",
"sqlalchemy",
"social-auth-core>=1.0.0",
"social-auth-app-flask>=1.0.0",
"social-auth-storage-sqlalchemy>=1.0.1",
]
authors = [
{name = "Matias Aguirre", email = "matiasaguirre@gmail.com"},
{name = "Lee Ji-ho", email = "search5@gmail.com"},
{name = "Lee Ji-ho", email = "search5@gmail.com"}
]
classifiers = [
'Development Status :: 4 - Beta',
'Topic :: Internet',
'License :: OSI Approved :: BSD License',
'Intended Audience :: Developers',
'Environment :: Web Environment',
'Programming Language :: Python',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
'Programming Language :: Python :: 3.12'
]
dependencies = [
"six",
"sqlalchemy",
"social-auth-core>=1.0.0",
"social-auth-app-flask>=1.0.0",
"social-auth-storage-sqlalchemy>=1.0.1"
]
description = 'Python Social Authentication, SQLAlchemy Flask models integration.'
license = {text = 'BSD'}
dynamic = ["version"]
keywords = ["flask", "sqlalchemy", "social auth"]
license = {text = 'BSD'}
name = 'social-auth-app-flask-sqlalchemy'
readme = "README.md"
classifiers=[
'Development Status :: 4 - Beta',
'Topic :: Internet',
'License :: OSI Approved :: BSD License',
'Intended Audience :: Developers',
'Environment :: Web Environment',
'Programming Language :: Python',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
'Programming Language :: Python :: 3.12'
]
requires-python = ">= 3.7"

[project.urls]
Repository = 'https://github.com/python-social-auth/social-app-flask-sqlalchemy'
Changelog = 'https://github.com/python-social-auth/social-app-flask-sqlalchemy/blob/master/CHANGELOG.md'
Documentation = 'http://python-social-auth.readthedocs.org'
Issues = 'https://github.com/python-social-auth/social-app-flask-sqlalchemy/issues'
Changelog = 'https://github.com/python-social-auth/social-app-flask-sqlalchemy/blob/master/CHANGELOG.md'
Repository = 'https://github.com/python-social-auth/social-app-flask-sqlalchemy'

[options]
zip_safe = false
[tool.flake8]
# Ignore some well known paths
exclude = ['.venv', '.tox', 'dist', 'doc', 'build', '*.egg', 'db/env.py', 'db/versions/*.py', 'site', 'Pipfile', 'Pipfile.lock']
max-line-length = 79

[tool.setuptools]
include-package-data = true

[tool.setuptools.packages]
find = {}

[tool.setuptools.dynamic]
version = {attr = "social_flask_sqlalchemy.__version__"}

[tool.flake8]
max-line-length = 79
# Ignore some well known paths
exclude = ['.venv','.tox','dist','doc','build','*.egg','db/env.py','db/versions/*.py','site','Pipfile','Pipfile.lock']
[tool.setuptools.packages]
find = {}
8 changes: 0 additions & 8 deletions social_flask_sqlalchemy/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,26 +54,18 @@ def username_max_length(cls):
class Nonce(_AppSession, SQLAlchemyNonceMixin):
"""One use numbers"""

pass


class Association(_AppSession, SQLAlchemyAssociationMixin):
"""OpenId account association"""

pass


class Code(_AppSession, SQLAlchemyCodeMixin):
"""Mail validation single one time use code"""

pass


class Partial(_AppSession, SQLAlchemyPartialMixin):
"""Partial pipeline storage"""

pass


class FlaskStorage(BaseSQLAlchemyStorage):
user = UserSocialAuth
Expand Down

0 comments on commit 9a66efd

Please sign in to comment.