Skip to content

Commit

Permalink
Prep a release.
Browse files Browse the repository at this point in the history
  • Loading branch information
ubernostrum committed May 28, 2022
1 parent 49a61b1 commit 164cccf
Show file tree
Hide file tree
Showing 8 changed files with 52 additions and 36 deletions.
23 changes: 12 additions & 11 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,22 +3,23 @@ name: CI
on: [push]

jobs:
build:
tests:
name: tox on ${{ matrix.python-version }}
runs-on: ubuntu-latest

strategy:
max-parallel: 5
fail-fast: false
matrix:
python-version: [3.6, 3.7, 3.8, 3.9]
python-version: ["3.7", "3.8", "3.9", "3.10"]

steps:
- uses: actions/checkout@v1
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
- uses: actions/checkout@v3
- uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
- name: "Install dependencies"
run: |
python -m pip install --upgrade pip
pip install tox tox-gh-actions
- name: Test with tox
run: tox
python -VV
python -m pip install --upgrade pip setuptools wheel
python -m pip install --upgrade virtualenv tox tox-gh-actions
- run: "python -m tox"
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Copyright (c) 2007-2021, James Bennett
Copyright (c) 2007-2022, James Bennett
All rights reserved.

Redistribution and use in source and binary forms, with or without
Expand Down
6 changes: 3 additions & 3 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@
source_suffix = ".rst"
master_doc = "index"
project = "django-registration"
copyright = "2007-2021, James Bennett"
version = "3.2"
release = "3.2"
copyright = "2007-2022, James Bennett"
version = "3.3"
release = "3.3"
exclude_trees = ["_build"]
pygments_style = "sphinx"
htmlhelp_basename = "django-registrationdoc"
Expand Down
8 changes: 6 additions & 2 deletions docs/faq.rst
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,12 @@ this file, you can view it online at
What versions of Django and Python are supported?
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

As of django-registration |release|, Django 2.2, 3.1, and 3.2 are supported,
on Python3.6, 3.7, 3.8, and 3.9.
As of django-registration |release|, Django 3.2 and 4.0 are
supported, on Python 3.7 (Django 3.2 only), 3.8, 3.9, and 3.10. Note
that Django 3.2's support for Python 3.10 was added in Django 3.2.9,
so you may experience issues with Python 3.10 and earlier Django 3.2
versions.


I found a bug or want to make an improvement!
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Expand Down
7 changes: 5 additions & 2 deletions docs/install.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,11 @@
Installation guide
==================

The |release| release of django-registration supports Django 2.2, 3.1,
and 3.2 on Python 3.6, 3.7., 3.8, and 3.9.
The |release| release of django-registration supports Django 3.2 and
4.0 on Python 3.7 (Django 3.2 only), 3.8, 3.9, and 3.10. Note that
Django 3.2's support for Python 3.10 was added in Django 3.2.9, so you
may experience issues with Python 3.10 and earlier Django 3.2
versions.


Normal installation
Expand Down
8 changes: 8 additions & 0 deletions docs/upgrade.rst
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,14 @@ Within the 3.x release series, there have been several minor changes
and improvements, documented here along with the version in which they
occurred.

django-registration 3.3
~~~~~~~~~~~~~~~~~~~~~~~

This release contains no new features or bugfixes. The supported
Python and Django versions are changed to:

* Django 3.2 and 4.0, on Python 3.7 (Django 3.2 only), 3.8, 3.9, and 3.10.

django-registration 3.2
~~~~~~~~~~~~~~~~~~~~~~~

Expand Down
10 changes: 5 additions & 5 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
setup(
name="django-registration",
zip_safe=False, # eggs are the devil.
version="3.2",
version="3.3",
description="An extensible user-registration application for Django",
long_description=open(os.path.join(os.path.dirname(__file__), "README.rst")).read(),
author="James Bennett",
Expand All @@ -18,22 +18,22 @@
"Development Status :: 5 - Production/Stable",
"Environment :: Web Environment",
"Framework :: Django",
"Framework :: Django :: 2.2",
"Framework :: Django :: 3.1",
"Framework :: Django :: 3.2",
"Framework :: Django :: 4.0",
"Intended Audience :: Developers",
"License :: OSI Approved :: BSD License",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Topic :: Software Development :: Libraries :: Python Modules",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Topic :: Utilities",
],
python_requires=">=3.6",
install_requires=["Django>=2.2,!=3.0.*", "confusable_homoglyphs~=3.0"],
python_requires=">=3.7",
install_requires=["Django>=3.2", "confusable_homoglyphs~=3.0"],
)
24 changes: 12 additions & 12 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@
# Environment matrix.
[tox]
envlist =
py{36,37,38,39}-django{22,31,32}
py37-django32
py{38,39,310}-django{32,40}
black
check-description
check-manifest
Expand All @@ -35,10 +36,10 @@ envlist =
# Configuration for running on GitHub Actions via tox-gh-actions.
[gh-actions]
python =
3.6: py36
3.7: py37
3.8: py38
3.9: py39, black, check-description, check-manifest, docs, flake8, isort, spelling
3.9: py39
3.10: py310, black, check-description, check-manifest, docs, flake8, isort, spelling


# The base test environment -- runs the unit test suite with coverage.
Expand Down Expand Up @@ -77,9 +78,8 @@ commands =
coverage report -m
deps =
coverage
django22: Django>=2.2,<3.0
django31: Django>=3.1,<3.2
django32: Django>=3.2,<4.0
django40: Django>=4.0,<4.1


# Documentation checks.
Expand All @@ -89,7 +89,7 @@ deps =
# error in building it.
[testenv:docs]
description = Check that the documentation can build.
basepython = python3.9
basepython = python3.10
changedir = {toxinidir}/docs
commands =
sphinx-build -b html -d {envtmpdir}/doctrees . {envtmpdir}/html
Expand All @@ -103,7 +103,7 @@ deps =
# system.
[testenv:spelling]
description = Spell-check documentation.
basepython = python3.9
basepython = python3.10
changedir = {toxinidir}/docs
# This is the only env where we silence deprecation warnings, because
# we'd already catch any from our actual codebase elsewhere and in
Expand All @@ -127,7 +127,7 @@ deps =
# if Black thinks any files need to be reformatted.
[testenv:black]
description = Check code formatting using Black.
basepython = python3.9
basepython = python3.10
changedir = {toxinidir}
deps = black
commands =
Expand All @@ -137,7 +137,7 @@ commands =
# flake8 finds any problems.
[testenv:flake8]
description = Lint code with flake8.
basepython = python3.9
basepython = python3.10
changedir = {toxinidir}
deps = flake8
commands =
Expand All @@ -147,7 +147,7 @@ commands =
# any problems are found.
[testenv:isort]
description = Lint imports with isort.
basepython = python3.9
basepython = python3.10
changedir = {toxinidir}
deps = isort
commands =
Expand All @@ -161,7 +161,7 @@ commands =
# correctly when uploaded to the Python Package Index, or fail if not.
[testenv:check-description]
description = Check that the package description will render on the Python Package Index.
basepython = python3.9
basepython = python3.10
changedir = {toxinidir}
skip_install = true
deps =
Expand All @@ -179,7 +179,7 @@ commands =
# if any version-controlled files do not end up in the package.
[testenv:check-manifest]
description = Check that the set of packaged files matches the set of version-controlled files.
basepython = python3.9
basepython = python3.10
changedir = {toxinidir}
skip_install = true
deps =
Expand Down

0 comments on commit 164cccf

Please sign in to comment.