Skip to content

Commit

Permalink
Merge branch 'master' into py311
Browse files Browse the repository at this point in the history
  • Loading branch information
mmerickel authored Dec 30, 2022
2 parents 7ecd8d6 + 4703e60 commit 93a6920
Show file tree
Hide file tree
Showing 6 changed files with 41 additions and 29 deletions.
10 changes: 10 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Set update schedule for GitHub Actions

version: 2
updates:

- package-ecosystem: "github-actions"
directory: "/"
schedule:
# Check for updates to GitHub Actions every weekday
interval: "daily"
16 changes: 8 additions & 8 deletions .github/workflows/ci-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,9 @@ jobs:
name: "Python: ${{ matrix.py }}-${{ matrix.architecture }} on ${{ matrix.os }}"
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Setup python
uses: actions/setup-python@v2
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.py }}
architecture: ${{ matrix.architecture }}
Expand All @@ -60,9 +60,9 @@ jobs:
runs-on: ubuntu-20.04
name: Validate coverage
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Setup python
uses: actions/setup-python@v1
uses: actions/setup-python@v4
with:
python-version: 3.8
architecture: x64
Expand All @@ -72,9 +72,9 @@ jobs:
runs-on: ubuntu-20.04
name: Build the documentation
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Setup python
uses: actions/setup-python@v2
uses: actions/setup-python@v4
with:
python-version: 3.8
architecture: x64
Expand All @@ -84,9 +84,9 @@ jobs:
runs-on: ubuntu-20.04
name: Lint the package
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Setup python
uses: actions/setup-python@v2
uses: actions/setup-python@v4
with:
python-version: 3.8
architecture: x64
Expand Down
4 changes: 3 additions & 1 deletion CONTRIBUTORS.txt
Original file line number Diff line number Diff line change
Expand Up @@ -359,4 +359,6 @@ Contributors

- Karthikeyan Singaravelan, 2021/08/24

- Stefano Rivera, 2022/12/29
- Camill Kaipf, 2022/08/12

- Stefano Rivera, 2022/12/29
30 changes: 15 additions & 15 deletions docs/quick_tutorial/databases.rst
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ Background
Our Pyramid-based wiki application now needs database-backed storage of pages.
This frequently means an SQL database. The Pyramid community strongly supports
the :ref:`SQLAlchemy <sqla:index_toplevel>` project and its
:ref:`object-relational mapper (ORM) <sqla:ormtutorial_toplevel>` as a
convenient, Pythonic way to interface to databases.
:ref:`object-relational mapper (ORM) <sqla:orm_toplevel>` as a convenient,
Pythonic way to interface to databases.

In this step we hook up SQLAlchemy to a SQLite database table, providing
storage and retrieval for the wiki pages in the previous step.
Expand Down Expand Up @@ -87,13 +87,13 @@ Steps
$VENV/bin/initialize_tutorial_db development.ini
2016-04-16 13:01:33,055 INFO [sqlalchemy.engine.base.Engine][MainThread] SELECT CAST('test plain returns' AS VARCHAR(60)) AS anon_1
2016-04-16 13:01:33,055 INFO [sqlalchemy.engine.base.Engine][MainThread] ()
2016-04-16 13:01:33,056 INFO [sqlalchemy.engine.base.Engine][MainThread] SELECT CAST('test unicode returns' AS VARCHAR(60)) AS anon_1
2016-04-16 13:01:33,056 INFO [sqlalchemy.engine.base.Engine][MainThread] ()
2016-04-16 13:01:33,057 INFO [sqlalchemy.engine.base.Engine][MainThread] PRAGMA table_info("wikipages")
2016-04-16 13:01:33,057 INFO [sqlalchemy.engine.base.Engine][MainThread] ()
2016-04-16 13:01:33,058 INFO [sqlalchemy.engine.base.Engine][MainThread]
2016-04-16 13:01:33,055 INFO [sqlalchemy.engine.Engine][MainThread] SELECT CAST('test plain returns' AS VARCHAR(60)) AS anon_1
2016-04-16 13:01:33,055 INFO [sqlalchemy.engine.Engine][MainThread] ()
2016-04-16 13:01:33,056 INFO [sqlalchemy.engine.Engine][MainThread] SELECT CAST('test unicode returns' AS VARCHAR(60)) AS anon_1
2016-04-16 13:01:33,056 INFO [sqlalchemy.engine.Engine][MainThread] ()
2016-04-16 13:01:33,057 INFO [sqlalchemy.engine.Engine][MainThread] PRAGMA table_info("wikipages")
2016-04-16 13:01:33,057 INFO [sqlalchemy.engine.Engine][MainThread] ()
2016-04-16 13:01:33,058 INFO [sqlalchemy.engine.Engine][MainThread]
CREATE TABLE wikipages (
uid INTEGER NOT NULL,
title TEXT,
Expand All @@ -103,12 +103,12 @@ Steps
)
2016-04-16 13:01:33,058 INFO [sqlalchemy.engine.base.Engine][MainThread] ()
2016-04-16 13:01:33,059 INFO [sqlalchemy.engine.base.Engine][MainThread] COMMIT
2016-04-16 13:01:33,062 INFO [sqlalchemy.engine.base.Engine][MainThread] BEGIN (implicit)
2016-04-16 13:01:33,062 INFO [sqlalchemy.engine.base.Engine][MainThread] INSERT INTO wikipages (title, body) VALUES (?, ?)
2016-04-16 13:01:33,063 INFO [sqlalchemy.engine.base.Engine][MainThread] ('Root', '<p>Root</p>')
2016-04-16 13:01:33,063 INFO [sqlalchemy.engine.base.Engine][MainThread] COMMIT
2016-04-16 13:01:33,058 INFO [sqlalchemy.engine.Engine][MainThread] ()
2016-04-16 13:01:33,059 INFO [sqlalchemy.engine.Engine][MainThread] COMMIT
2016-04-16 13:01:33,062 INFO [sqlalchemy.engine.Engine][MainThread] BEGIN (implicit)
2016-04-16 13:01:33,062 INFO [sqlalchemy.engine.Engine][MainThread] INSERT INTO wikipages (title, body) VALUES (?, ?)
2016-04-16 13:01:33,063 INFO [sqlalchemy.engine.Engine][MainThread] ('Root', '<p>Root</p>')
2016-04-16 13:01:33,063 INFO [sqlalchemy.engine.Engine][MainThread] COMMIT
#. With our data now driven by SQLAlchemy queries, we need to update our ``databases/tutorial/views.py``:

Expand Down
6 changes: 3 additions & 3 deletions docs/quick_tutorial/databases/development.ini
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ listen = localhost:6543
# Begin logging configuration

[loggers]
keys = root, tutorial, sqlalchemy.engine.base.Engine
keys = root, tutorial, sqlalchemy.engine.Engine

[logger_tutorial]
level = DEBUG
Expand All @@ -31,10 +31,10 @@ keys = generic
level = INFO
handlers = console

[logger_sqlalchemy.engine.base.Engine]
[logger_sqlalchemy.engine.Engine]
level = INFO
handlers =
qualname = sqlalchemy.engine.base.Engine
qualname = sqlalchemy.engine.Engine

[handler_console]
class = StreamHandler
Expand Down
4 changes: 2 additions & 2 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -35,14 +35,14 @@ deps =
check-manifest

[testenv:docs]
whitelist_externals = make
allowlist_externals = make
commands =
make -C docs {posargs:doctest html epub} BUILDDIR={envdir} "SPHINXOPTS=-W -E -D suppress_warnings=ref.term"
extras =
docs

[testenv:pdf]
whitelist_externals = make
allowlist_externals = make
commands =
make -C docs latexpdf BUILDDIR={envdir} "SPHINXOPTS=-W -E -D suppress_warnings=ref.term"
extras =
Expand Down

0 comments on commit 93a6920

Please sign in to comment.