Skip to content

Commit

Permalink
Merge branch 'master' into yasondinalt-master
Browse files Browse the repository at this point in the history
  • Loading branch information
blag committed Jan 9, 2024
2 parents 3ddb9f1 + 870ad82 commit 86c7813
Show file tree
Hide file tree
Showing 83 changed files with 3,190 additions and 1,242 deletions.
7 changes: 0 additions & 7 deletions .coveragerc

This file was deleted.

16 changes: 16 additions & 0 deletions .deepsource.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
version = 1

exclude_patterns = [
"makemigrations.py",
"runtests.py",
"account/tests/**",
"account/tests/test_*.py",
]

[[analyzers]]
name = "python"
enabled = true

[analyzers.meta]
max_line_length = 120
runtime_version = "3.x.x"
56 changes: 56 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
name: Lints and Tests
on: [push]
jobs:
lint:
name: Linting
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

- name: Set up Python 3.11
uses: actions/setup-python@v4
with:
python-version: "3.11"

- name: Install lint dependencies
run: |
python -m pip install --upgrade pip
pip install ruff
- name: Lint with ruff
run: |
ruff --format=github --target-version=py311 account
test:
name: Testing
runs-on: ubuntu-latest
strategy:
matrix:
python:
- "3.8"
- "3.9"
- "3.10"
- "3.11"
django:
- "3.2.*"
- "4.2.*"
exclude:
- python: "3.11"
django: "3.2.*"

steps:
- uses: actions/checkout@v2

- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python }}

- name: Install Django
shell: bash
run: pip install Django==${{ matrix.django }} 'django-appconf>=1.0.4' 'pytz>=2020.4'

- name: Running Python Tests
shell: bash
run: python3 runtests.py
45 changes: 43 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,44 @@
*.pyc
MANIFEST
.DS_Store

# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]

# Distribution / packaging
.Python
env/
build/
develop-eggs/
dist/
docs/_build/
eggs/
lib/
lib64/
parts/
sdist/
var/
*.egg-info/
.installed.cfg
*.egg
*.eggs
.python-version

# Pipfile
Pipfile
Pipfile.lock

# Installer logs
pip-log.txt
pip-delete-this-directory.txt

# Unit test / coverage reports
htmlcov/
.tox/
.coverage
*.egg-info
.cache
nosetests.xml
coverage.xml

# IDEs
.idea/
25 changes: 0 additions & 25 deletions .travis.yml

This file was deleted.

89 changes: 88 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,91 @@
# ChangeLog
# Change Log

BI indicates a backward incompatible change. Take caution when upgrading to a
version with these. Your code will need to be updated to continue working.

## 3.3.2

* #375 - Include migration for `SignupCode.max_uses` (closes #374)
* #376 - Static analysis fixups

## 3.3.1

* #373 - Re-include migrations in distribution

## 3.3.0

* #370 Drop Django 2.2, fix timezone-aware comparison, packaging tweaks

## 3.2.1

* #364 - Performance fix to admin classes

## 3.2.0

* #363 - Django 4.0 compat: `ugettext_lazy` -> `gettext_lazy`

## 3.1.0

* #205 - Bug fix on checking email against email not signup code
* #225 - Fix case sensitivity mismatch on email addresses
* #233 - Fix link to languages in docs
* #247 - Update Spanish translations
* #273 - Update German translations
* #135 - Update Russian translations
* #242 - Fix callbacks/hooks for account deletion
* #251 (#249) - Allow overriding the password reset token url
* #280 - Raise improper config error if signup view can't login
* #348 (#337) - Make https the default protocol
* #351 (#332) - Reduction in queries
* #360 (#210) - Updates to docs
* #361 (#141) - Added ability to override clean passwords
* #362 - Updated CI to use Pinax Actions
* Updates to packaging
* Dropped Python 3.5 and Django 3.1 from test matrix
* Added Python 3.10 to test matrix


## 3.0.3

* Fix deprecated urls
* Update template context processors docs
* Fix deprecrated argument in signals
* Update decorators for Django 3
* Fix issue with lazy string
* Drop deprecated `force_text()`

## 3.0.2

* Drop Django 2.0 and Python 2,7, 3.4, and 3.5 support
* Add Django 2.1, 2.2 and 3.0, and Python 3.7 and 3.8 support
* Update packaging configs

## 2.0.3

* fixed breaking change in 2.0.2 where context did not have uidb36 and token
* improved documentation

## 2.0.2

* fixed potentional security issue with leaking password reset tokens through HTTP Referer header
* added `never_cache`, `csrf_protect` and `sensitive_post_parameters` to appropriate views

## 2.0.1

@@@ todo

## 2.0.0

* BI: moved account deletion callbacks to hooksets
* BI: dropped Django 1.7 support
* BI: dropped Python 3.2 support
* BI: removed deprecated `ACCOUNT_USE_AUTH_AUTHENTICATE` setting with behavior matching its `True` value
* added Django 1.10 support
* added Turkish translations
* fixed migration with language codes to dynamically set
* added password expiration
* added password stripping by default
* added `ACCOUNT_EMAIL_CONFIRMATION_AUTO_LOGIN` feature (default is `False`)

## 1.3.0

Expand Down
Loading

0 comments on commit 86c7813

Please sign in to comment.