-
-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into chore/upgrade-webauthn-1.6.0
- Loading branch information
Showing
10 changed files
with
141 additions
and
50 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,22 +18,32 @@ jobs: | |
- "3.8" | ||
- "3.9" | ||
- "3.10" | ||
- "3.11" | ||
django-version: | ||
- "3.2" | ||
- "4.1" | ||
- "4.2" | ||
exclude: | ||
# Python 3.7 is compatible with Django < 4.0 | ||
# Django 3.2 is compatible with Python <= 3.10 | ||
- python-version: "3.11" | ||
django-version: "3.2" | ||
|
||
# Django 4.1 is compatible with Python >= 3.8 | ||
- python-version: "3.7" | ||
django-version: "4.1" | ||
|
||
# Django 4.2 is compatible with Python >= 3.8 | ||
- python-version: "3.7" | ||
django-version: "4.2" | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/checkout@v3 | ||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v2 | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- name: Set up Pip cache | ||
uses: actions/cache@v2 | ||
uses: actions/cache@v3 | ||
id: pip-cache | ||
with: | ||
path: ~/.cache/pip | ||
|
@@ -43,7 +53,7 @@ jobs: | |
- name: Install Poetry | ||
run: python -m pip install poetry | ||
- name: Set up Poetry cache | ||
uses: actions/cache@v2 | ||
uses: actions/cache@v3 | ||
id: poetry-cache | ||
with: | ||
path: ~/.cache/pypoetry/virtualenvs | ||
|
@@ -69,13 +79,13 @@ jobs: | |
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/checkout@v3 | ||
- name: Set up Python | ||
uses: actions/setup-python@v2 | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: "3.10" | ||
- name: Set Poetry cache | ||
uses: actions/cache@v2 | ||
uses: actions/cache@v3 | ||
id: poetry-cache | ||
with: | ||
path: ~/.cache/pypoetry/virtualenvs | ||
|
@@ -99,27 +109,33 @@ jobs: | |
runs-on: ubuntu-latest | ||
if: ${{ github.ref=='refs/heads/main' && github.event_name!='pull_request' }} | ||
|
||
permissions: | ||
contents: write | ||
id-token: write | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Setup Python | ||
uses: actions/setup-python@v2 | ||
- uses: actions/checkout@v3 | ||
with: | ||
token: ${{ secrets.GH_TOKEN }} | ||
- name: Set up Python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: "3.8" | ||
- name: Check release | ||
id: check_release | ||
run: | | ||
python -m pip install --upgrade pip | ||
python -m pip install poetry githubrelease httpx==0.16.1 autopub | ||
echo "##[set-output name=release;]$(autopub check)" | ||
python -m pip install autopub[github] | ||
autopub check | ||
- name: Publish | ||
if: ${{ steps.check_release.outputs.release=='' }} | ||
if: ${{ steps.check_release.outputs.autopub_release=='true' }} | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} | ||
PYPI_PASSWORD: ${{ secrets.PYPI_PASSWORD }} | ||
run: | | ||
git remote set-url origin https://[email protected]/${{ github.repository }} | ||
autopub prepare | ||
poetry build | ||
autopub commit | ||
autopub build | ||
autopub githubrelease | ||
poetry publish -u __token__ -p $PYPI_PASSWORD | ||
- name: Upload package to PyPI | ||
if: ${{ steps.check_release.outputs.autopub_release=='true' }} | ||
uses: pypa/gh-action-pypi-publish@release/v1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,19 @@ | ||
--- | ||
# Read the Docs configuration file | ||
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details | ||
|
||
# Required | ||
version: 2 | ||
build: | ||
os: "ubuntu-22.04" | ||
tools: | ||
python: "3.11" | ||
|
||
# Build documentation in the docs/ directory with Sphinx | ||
sphinx: | ||
configuration: docs/conf.py | ||
|
||
# Version of Python and requirements required to build the docs | ||
python: | ||
version: 3.8 | ||
install: | ||
- requirements: docs/requirements.txt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
SESSION_TOTP_SECRET_KEY = "kagi_totp_secret" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[tool.poetry] | ||
name = "kagi" | ||
version = "0.3.0" | ||
version = "0.4.0" | ||
description = "Django app for WebAuthn and TOTP-based multi-factor authentication" | ||
authors = [ | ||
"Justin Mayer <[email protected]>", | ||
|
@@ -17,10 +17,13 @@ classifiers = [ | |
"Development Status :: 4 - Beta", | ||
"Environment :: Web Environment", | ||
"Framework :: Django", | ||
"Framework :: Django :: 2.2", | ||
"Framework :: Django :: 3.2", | ||
"Framework :: Django :: 4.1", | ||
"Framework :: Django :: 4.2", | ||
"Intended Audience :: Developers", | ||
"License :: OSI Approved :: BSD License", | ||
"Operating System :: OS Independent", | ||
# "Programming Language :: Python :: ..." is auto-generated by poetry! | ||
"Topic :: Security", | ||
"Topic :: Security :: Cryptography", | ||
"Topic :: Software Development :: Libraries :: Python Modules", | ||
|
@@ -40,12 +43,12 @@ black = "^23.3" | |
flake8 = "^5.0" | ||
Flake8-pyproject = "^1.2.3" | ||
furo = "2022.04.07" | ||
invoke = "^1.3" | ||
invoke = "^2.0" | ||
isort = "^5.11" | ||
livereload = "^2.6" | ||
pretend = "^1.0.9" | ||
psutil = { version = "^5.7", optional = true } | ||
pyOpenSSL = "^22.0" | ||
pyOpenSSL = "^23.0" | ||
pytest = "^7.1" | ||
pytest-cov = "^3.0" | ||
pytest-django = "^4.0" | ||
|
@@ -57,7 +60,7 @@ Werkzeug = "^2.0" | |
[tool.autopub] | ||
project-name = "Kagi" | ||
git-username = "botpub" | ||
git-email = "botpub@autopub.rocks" | ||
git-email = "52496925+botpub@users.noreply.github.com" | ||
append-github-contributor = true | ||
|
||
[tool.isort] | ||
|