-
-
Notifications
You must be signed in to change notification settings - Fork 2
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
Binding DB sessions based on SQLAlchemy 1, changing how to declare Base Model classes, and other code modernization #4
Changes from 3 commits
b7f0891
c1e9a37
87752c6
b184f7d
e670695
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
# See https://pre-commit.com for more information | ||
# See https://pre-commit.com/hooks.html for more hooks | ||
repos: | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v4.5.0 | ||
hooks: | ||
- id: check-merge-conflict | ||
- id: debug-statements | ||
- id: mixed-line-ending | ||
args: [--fix=lf] | ||
- repo: https://github.com/pycqa/isort | ||
rev: 5.13.2 | ||
hooks: | ||
- id: isort | ||
args: [--profile=black] | ||
- repo: https://github.com/asottile/pyupgrade | ||
rev: v3.15.1 | ||
hooks: | ||
- id: pyupgrade | ||
args: [--py36-plus] | ||
- repo: https://github.com/psf/black | ||
rev: 24.2.0 | ||
hooks: | ||
- id: black | ||
- repo: https://github.com/PyCQA/flake8 | ||
rev: 7.0.0 | ||
hooks: | ||
- id: flake8 | ||
- repo: meta | ||
hooks: | ||
- id: check-hooks-apply | ||
- id: check-useless-excludes | ||
- repo: https://github.com/macisamuele/language-formatters-pre-commit-hooks | ||
rev: v2.12.0 | ||
hooks: | ||
- id: pretty-format-yaml | ||
args: [--autofix, --indent, '2'] |
Original file line number | Diff line number | Diff line change | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
@@ -2,31 +2,31 @@ language: python | |||||||||||||
sudo: false | ||||||||||||||
env: | ||||||||||||||
global: | ||||||||||||||
- REQUIREMENTS=requirements.txt | ||||||||||||||
- TEST_REQUIREMENTS=social/tests/requirements.txt | ||||||||||||||
- REQUIREMENTS=requirements.txt | ||||||||||||||
- TEST_REQUIREMENTS=social/tests/requirements.txt | ||||||||||||||
python: | ||||||||||||||
- "2.7" | ||||||||||||||
- '2.7' | ||||||||||||||
matrix: | ||||||||||||||
include: | ||||||||||||||
- python: "pypy" | ||||||||||||||
env: | ||||||||||||||
- TEST_REQUIREMENTS=social/tests/requirements-pypy.txt | ||||||||||||||
- python: "3.3" | ||||||||||||||
env: | ||||||||||||||
- REQUIREMENTS=requirements-python3.txt | ||||||||||||||
- TEST_REQUIREMENTS=social/tests/requirements-python3.txt | ||||||||||||||
- python: "3.4" | ||||||||||||||
env: | ||||||||||||||
- REQUIREMENTS=requirements-python3.txt | ||||||||||||||
- TEST_REQUIREMENTS=social/tests/requirements-python3.txt | ||||||||||||||
- python: pypy | ||||||||||||||
env: | ||||||||||||||
- TEST_REQUIREMENTS=social/tests/requirements-pypy.txt | ||||||||||||||
- python: '3.3' | ||||||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Python version - - python: '3.3' Committable suggestion
Suggested change
|
||||||||||||||
env: | ||||||||||||||
- REQUIREMENTS=requirements-python3.txt | ||||||||||||||
- TEST_REQUIREMENTS=social/tests/requirements-python3.txt | ||||||||||||||
- python: '3.4' | ||||||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Python version - - python: '3.4' Committable suggestion
Suggested change
|
||||||||||||||
env: | ||||||||||||||
- REQUIREMENTS=requirements-python3.txt | ||||||||||||||
- TEST_REQUIREMENTS=social/tests/requirements-python3.txt | ||||||||||||||
addons: | ||||||||||||||
apt: | ||||||||||||||
packages: | ||||||||||||||
- libxmlsec1-dev | ||||||||||||||
- swig | ||||||||||||||
- libxmlsec1-dev | ||||||||||||||
- swig | ||||||||||||||
install: | ||||||||||||||
- "python setup.py -q install" | ||||||||||||||
- "travis_retry pip install -r $REQUIREMENTS" | ||||||||||||||
- "travis_retry pip install -r $TEST_REQUIREMENTS" | ||||||||||||||
- python setup.py -q install | ||||||||||||||
- travis_retry pip install -r $REQUIREMENTS | ||||||||||||||
- travis_retry pip install -r $TEST_REQUIREMENTS | ||||||||||||||
Comment on lines
+28
to
+30
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The installation commands use - - python setup.py -q install
+ - pip install . Committable suggestion
Suggested change
|
||||||||||||||
script: | ||||||||||||||
- "nosetests --with-coverage --cover-package=social --where=social/tests" | ||||||||||||||
- nosetests --with-coverage --cover-package=social --where=social/tests |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
[build-system] | ||
requires = ["setuptools"] | ||
build-backend = "setuptools.build_meta" | ||
|
||
[project] | ||
name = 'social-auth-app-webpy' | ||
dynamic = ["version"] | ||
dependencies = [ | ||
"six", | ||
"social-auth-core>=1.0.0", | ||
"social-auth-storage-sqlalchemy>=1.0.0", | ||
] | ||
authors = [ | ||
{name = "Matias Aguirre", email = "matiasaguirre@gmail.com"}, | ||
{name = "Lee Ji-ho", email = "search5@gmail.com"}, | ||
] | ||
description = 'Python Social Authentication, web.py integration.' | ||
license = {text = 'BSD'} | ||
keywords = ["web.py", "sqlalchemy", "social auth"] | ||
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-webpy' | ||
Documentation = 'http://python-social-auth.readthedocs.org' | ||
Issues = 'https://github.com/python-social-auth/social-app-webpy/issues' | ||
Changelog = 'https://github.com/python-social-auth/social-app-webpy/blob/master/CHANGELOG.md' | ||
|
||
[options] | ||
zip_safe = false | ||
|
||
[tool.setuptools] | ||
include-package-data = true | ||
|
||
[tool.setuptools.packages] | ||
find = {} | ||
|
||
[tool.setuptools.dynamic] | ||
version = {attr = "social_webpy.__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'] |
This file was deleted.
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
__version__ = '1.0.0' | ||
__version__ = "1.0.0" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The Python version
2.7
is specified, but the PR objectives mention setting the minimum Python version to 3.7. This version should be updated or removed to align with the new minimum version requirement.- - '2.7'
Committable suggestion