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 7130510 commit b025eed
Show file tree
Hide file tree
Showing 4 changed files with 40 additions and 44 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
## [Unreleased](https://github.com/python-social-auth/social-app-tornado/commits/master)

### Changed

- Modified model and access code to work with SQLAlchemy version 2 (Issue #2)
- Updated packaging information files per PEP 517, PEP 518 (Issue #3)
- Restricted Python minimum working version to 3.7 or higher to align with SQLAlchemy 2 (Issue #2)
Expand All @@ -17,14 +18,17 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
## [1.0.0](https://github.com/python-social-auth/social-app-tornado/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-tornado/releases/tag/0.0.1) - 2016-11-27

### Changed

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

[options]
zip_safe = false

[project]
name = 'social-auth-app-tornado'
dynamic = ["version"]
dependencies = [
"six",
"social-auth-core>=1.0.0",
"social-auth-storage-sqlalchemy>=1.0.0",
]
authors = [
{name = "Matias Aguirre", email = "[email protected]"},
{name = "Lee Ji-ho", email = "[email protected]"},
{name = "Lee Ji-ho", email = "[email protected]"}
]
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",
"social-auth-core>=1.0.0",
"social-auth-storage-sqlalchemy>=1.0.0"
]
description = 'Python Social Authentication, Tornado integration.'
license = {text = 'BSD'}
dynamic = ["version"]
keywords = ["tornado", "sqlalchemy", "social auth"]
license = {text = 'BSD'}
name = 'social-auth-app-tornado'
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-tornado'
Changelog = 'https://github.com/python-social-auth/social-app-tornado/blob/master/CHANGELOG.md'
Documentation = 'http://python-social-auth.readthedocs.org'
Issues = 'https://github.com/python-social-auth/social-app-tornado/issues'
Changelog = 'https://github.com/python-social-auth/social-app-tornado/blob/master/CHANGELOG.md'
Repository = 'https://github.com/python-social-auth/social-app-tornado'

[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_tornado.__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_tornado/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,23 +53,15 @@ def user_model(cls):
class Nonce(_AppSession, Base, SQLAlchemyNonceMixin):
"""One use numbers"""

pass

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

pass

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

pass

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

pass

# Set the references in the storage class
TornadoStorage.user = UserSocialAuth
TornadoStorage.nonce = Nonce
Expand Down
2 changes: 1 addition & 1 deletion social_tornado/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

def get_helper(request_handler, name):
return request_handler.settings.get( # fmt: skip
setting_name(name), DEFAULTS.get(name, None)
setting_name(name), DEFAULTS.get(name)
)


Expand Down

0 comments on commit b025eed

Please sign in to comment.