-
Notifications
You must be signed in to change notification settings - Fork 58
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* chore: support Python >= 3.8 * chore: drop support for Python 2.7, 3.5, 3.6, 3.7. * chore: remove Python 2.x compat layer * Pin `pyramid<2.0dev` to defer 2.0 changes. * fix: drop 'cryptacular' in favor of 'bcrypt' (Python 3.12 requirement) * replace 'nosetests' with 'pytest'. * tests: restore 100% coverage * fix: remove use of deprecated 'pyramid.security.authenticated_userid' API * fix: remove use of deprecated 'pyramid.session.check_csrf_token' API * fix: remove use of deprecated 'pyramid.security.has_permission' API * fix: remove use of deprecated 'pyramid.security.effective_principals' API * fix: remove use of deprecated 'pyramid.session.UnencryptedCooki...' API * chore: silence 'logging' module deprecation * chore: silence deprecation spew from 'pkg_resources' * chore: catch warning we are emitting about BBB test * docs: use 'request.has_permission' in examples * fix: remove invalid markup * ci: add GHA workflow
- Loading branch information
Showing
63 changed files
with
378 additions
and
402 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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
[coverage:run] | ||
omit = | ||
substanced/*/evolve.py | ||
substanced/evolution/evolve*.py | ||
substanced/scripts/*.py | ||
|
||
[coverage:report] | ||
show_missing = true |
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,66 @@ | ||
name: Build and test | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
tags: | ||
pull_request: | ||
|
||
jobs: | ||
test: | ||
strategy: | ||
matrix: | ||
py: | ||
- "3.8" | ||
- "3.9" | ||
- "3.10" | ||
- "3.11" | ||
- "3.12" | ||
os: | ||
- "ubuntu-22.04" | ||
architecture: | ||
- x64 | ||
include: | ||
# Only run coverage on ubuntu-22.04, except on pypy3 | ||
- os: "ubuntu-22.04" | ||
pytest-args: "--cov" | ||
|
||
name: "Python: ${{ matrix.py }}-${{ matrix.architecture }} on ${{ matrix.os }}" | ||
runs-on: ${{ matrix.os }} | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Setup python | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: ${{ matrix.py }} | ||
architecture: ${{ matrix.architecture }} | ||
- run: pip install tox | ||
- name: Running tox | ||
run: tox -e py -- ${{ matrix.pytest-args }} | ||
|
||
coverage: | ||
runs-on: ubuntu-22.04 | ||
name: Validate coverage | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Setup python | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: 3.12 | ||
architecture: x64 | ||
- run: pip install tox | ||
- run: tox -e cover | ||
|
||
docs: | ||
runs-on: ubuntu-22.04 | ||
name: Build the documentation | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Setup python | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: 3.12 | ||
architecture: x64 | ||
- run: pip install tox | ||
- run: tox -e docs |
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
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 was deleted.
Oops, something went wrong.
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
Oops, something went wrong.