From 450407bf7ac3328b181dfd2f1b62b11f73e6a714 Mon Sep 17 00:00:00 2001 From: Roman Mogylatov Date: Sat, 16 Apr 2022 21:39:47 -0400 Subject: [PATCH] Update year 2021 -> 2022 --- docs/conf.py | 2 +- examples/miniapps/fastapi-redis/README.rst | 48 +++++++++---------- .../miniapps/fastapi-sqlalchemy/README.rst | 22 ++++----- .../configuration/configuration_value.py | 12 ++--- 4 files changed, 42 insertions(+), 42 deletions(-) diff --git a/docs/conf.py b/docs/conf.py index fe6d6e19..5e4769ae 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -52,7 +52,7 @@ master_doc = "index" # General information about the project. project = "Dependency Injector" -copyright = "2021, Roman Mogylatov" +copyright = "2022, Roman Mogylatov" author = "Roman Mogylatov" # The version info for the project you"re documenting, acts as replacement for diff --git a/examples/miniapps/fastapi-redis/README.rst b/examples/miniapps/fastapi-redis/README.rst index 2daa0f4b..931cfbed 100644 --- a/examples/miniapps/fastapi-redis/README.rst +++ b/examples/miniapps/fastapi-redis/README.rst @@ -24,31 +24,31 @@ The output should be something like: .. code-block:: - redis_1 | 1:C 04 Jan 2021 02:42:14.115 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo - redis_1 | 1:C 04 Jan 2021 02:42:14.115 # Redis version=6.0.9, bits=64, commit=00000000, modified=0, pid=1, just started - redis_1 | 1:C 04 Jan 2021 02:42:14.115 # Configuration loaded - redis_1 | 1:M 04 Jan 2021 02:42:14.116 * Running mode=standalone, port=6379. - redis_1 | 1:M 04 Jan 2021 02:42:14.116 # WARNING: The TCP backlog setting of 511 cannot be enforced because /proc/sys/net/core/somaxconn is set to the lower value of 128. - redis_1 | 1:M 04 Jan 2021 02:42:14.116 # Server initialized - redis_1 | 1:M 04 Jan 2021 02:42:14.117 * Loading RDB produced by version 6.0.9 - redis_1 | 1:M 04 Jan 2021 02:42:14.117 * RDB age 1 seconds - redis_1 | 1:M 04 Jan 2021 02:42:14.117 * RDB memory usage when created 0.77 Mb - redis_1 | 1:M 04 Jan 2021 02:42:14.117 * DB loaded from disk: 0.000 seconds - redis_1 | 1:M 04 Jan 2021 02:42:14.117 * Ready to accept connections + redis_1 | 1:C 04 Jan 2022 02:42:14.115 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo + redis_1 | 1:C 04 Jan 2022 02:42:14.115 # Redis version=6.0.9, bits=64, commit=00000000, modified=0, pid=1, just started + redis_1 | 1:C 04 Jan 2022 02:42:14.115 # Configuration loaded + redis_1 | 1:M 04 Jan 2022 02:42:14.116 * Running mode=standalone, port=6379. + redis_1 | 1:M 04 Jan 2022 02:42:14.116 # WARNING: The TCP backlog setting of 511 cannot be enforced because /proc/sys/net/core/somaxconn is set to the lower value of 128. + redis_1 | 1:M 04 Jan 2022 02:42:14.116 # Server initialized + redis_1 | 1:M 04 Jan 2022 02:42:14.117 * Loading RDB produced by version 6.0.9 + redis_1 | 1:M 04 Jan 2022 02:42:14.117 * RDB age 1 seconds + redis_1 | 1:M 04 Jan 2022 02:42:14.117 * RDB memory usage when created 0.77 Mb + redis_1 | 1:M 04 Jan 2022 02:42:14.117 * DB loaded from disk: 0.000 seconds + redis_1 | 1:M 04 Jan 2022 02:42:14.117 * Ready to accept connections redis_1 | 1:signal-handler (1609728137) Received SIGTERM scheduling shutdown... - redis_1 | 1:M 04 Jan 2021 02:42:17.984 # User requested shutdown... - redis_1 | 1:M 04 Jan 2021 02:42:17.984 # Redis is now ready to exit, bye bye... - redis_1 | 1:C 04 Jan 2021 02:42:22.035 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo - redis_1 | 1:C 04 Jan 2021 02:42:22.035 # Redis version=6.0.9, bits=64, commit=00000000, modified=0, pid=1, just started - redis_1 | 1:C 04 Jan 2021 02:42:22.035 # Configuration loaded - redis_1 | 1:M 04 Jan 2021 02:42:22.037 * Running mode=standalone, port=6379. - redis_1 | 1:M 04 Jan 2021 02:42:22.037 # WARNING: The TCP backlog setting of 511 cannot be enforced because /proc/sys/net/core/somaxconn is set to the lower value of 128. - redis_1 | 1:M 04 Jan 2021 02:42:22.037 # Server initialized - redis_1 | 1:M 04 Jan 2021 02:42:22.037 * Loading RDB produced by version 6.0.9 - redis_1 | 1:M 04 Jan 2021 02:42:22.037 * RDB age 9 seconds - redis_1 | 1:M 04 Jan 2021 02:42:22.037 * RDB memory usage when created 0.77 Mb - redis_1 | 1:M 04 Jan 2021 02:42:22.037 * DB loaded from disk: 0.000 seconds - redis_1 | 1:M 04 Jan 2021 02:42:22.037 * Ready to accept connections + redis_1 | 1:M 04 Jan 2022 02:42:17.984 # User requested shutdown... + redis_1 | 1:M 04 Jan 2022 02:42:17.984 # Redis is now ready to exit, bye bye... + redis_1 | 1:C 04 Jan 2022 02:42:22.035 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo + redis_1 | 1:C 04 Jan 2022 02:42:22.035 # Redis version=6.0.9, bits=64, commit=00000000, modified=0, pid=1, just started + redis_1 | 1:C 04 Jan 2022 02:42:22.035 # Configuration loaded + redis_1 | 1:M 04 Jan 2022 02:42:22.037 * Running mode=standalone, port=6379. + redis_1 | 1:M 04 Jan 2022 02:42:22.037 # WARNING: The TCP backlog setting of 511 cannot be enforced because /proc/sys/net/core/somaxconn is set to the lower value of 128. + redis_1 | 1:M 04 Jan 2022 02:42:22.037 # Server initialized + redis_1 | 1:M 04 Jan 2022 02:42:22.037 * Loading RDB produced by version 6.0.9 + redis_1 | 1:M 04 Jan 2022 02:42:22.037 * RDB age 9 seconds + redis_1 | 1:M 04 Jan 2022 02:42:22.037 * RDB memory usage when created 0.77 Mb + redis_1 | 1:M 04 Jan 2022 02:42:22.037 * DB loaded from disk: 0.000 seconds + redis_1 | 1:M 04 Jan 2022 02:42:22.037 * Ready to accept connections example_1 | INFO: Started server process [1] example_1 | INFO: Waiting for application startup. example_1 | INFO: Application startup complete. diff --git a/examples/miniapps/fastapi-sqlalchemy/README.rst b/examples/miniapps/fastapi-sqlalchemy/README.rst index 688723b9..9c305f18 100644 --- a/examples/miniapps/fastapi-sqlalchemy/README.rst +++ b/examples/miniapps/fastapi-sqlalchemy/README.rst @@ -29,15 +29,15 @@ The output should be something like: Starting fastapi-sqlalchemy_webapp_1 ... done Attaching to fastapi-sqlalchemy_webapp_1 - webapp_1 | 2021-02-04 22:07:19,804 INFO sqlalchemy.engine.base.Engine SELECT CAST('test plain returns' AS VARCHAR(60)) AS anon_1 - webapp_1 | 2021-02-04 22:07:19,804 INFO sqlalchemy.engine.base.Engine () - webapp_1 | 2021-02-04 22:07:19,804 INFO sqlalchemy.engine.base.Engine SELECT CAST('test unicode returns' AS VARCHAR(60)) AS anon_1 - webapp_1 | 2021-02-04 22:07:19,804 INFO sqlalchemy.engine.base.Engine () - webapp_1 | 2021-02-04 22:07:19,805 INFO sqlalchemy.engine.base.Engine PRAGMA main.table_info("users") - webapp_1 | 2021-02-04 22:07:19,805 INFO sqlalchemy.engine.base.Engine () - webapp_1 | 2021-02-04 22:07:19,808 INFO sqlalchemy.engine.base.Engine PRAGMA temp.table_info("users") - webapp_1 | 2021-02-04 22:07:19,808 INFO sqlalchemy.engine.base.Engine () - webapp_1 | 2021-02-04 22:07:19,809 INFO sqlalchemy.engine.base.Engine + webapp_1 | 2022-02-04 22:07:19,804 INFO sqlalchemy.engine.base.Engine SELECT CAST('test plain returns' AS VARCHAR(60)) AS anon_1 + webapp_1 | 2022-02-04 22:07:19,804 INFO sqlalchemy.engine.base.Engine () + webapp_1 | 2022-02-04 22:07:19,804 INFO sqlalchemy.engine.base.Engine SELECT CAST('test unicode returns' AS VARCHAR(60)) AS anon_1 + webapp_1 | 2022-02-04 22:07:19,804 INFO sqlalchemy.engine.base.Engine () + webapp_1 | 2022-02-04 22:07:19,805 INFO sqlalchemy.engine.base.Engine PRAGMA main.table_info("users") + webapp_1 | 2022-02-04 22:07:19,805 INFO sqlalchemy.engine.base.Engine () + webapp_1 | 2022-02-04 22:07:19,808 INFO sqlalchemy.engine.base.Engine PRAGMA temp.table_info("users") + webapp_1 | 2022-02-04 22:07:19,808 INFO sqlalchemy.engine.base.Engine () + webapp_1 | 2022-02-04 22:07:19,809 INFO sqlalchemy.engine.base.Engine webapp_1 | CREATE TABLE users ( webapp_1 | id INTEGER NOT NULL, webapp_1 | email VARCHAR, @@ -49,8 +49,8 @@ The output should be something like: webapp_1 | ) webapp_1 | webapp_1 | - webapp_1 | 2021-02-04 22:07:19,810 INFO sqlalchemy.engine.base.Engine () - webapp_1 | 2021-02-04 22:07:19,821 INFO sqlalchemy.engine.base.Engine COMMIT + webapp_1 | 2022-02-04 22:07:19,810 INFO sqlalchemy.engine.base.Engine () + webapp_1 | 2022-02-04 22:07:19,821 INFO sqlalchemy.engine.base.Engine COMMIT webapp_1 | INFO: Started server process [8] webapp_1 | INFO: Waiting for application startup. webapp_1 | INFO: Application startup complete. diff --git a/examples/providers/configuration/configuration_value.py b/examples/providers/configuration/configuration_value.py index 456af119..267c5d25 100644 --- a/examples/providers/configuration/configuration_value.py +++ b/examples/providers/configuration/configuration_value.py @@ -13,12 +13,12 @@ class Container(containers.DeclarativeContainer): if __name__ == "__main__": container = Container() - container.config.option1.from_value(date(2021, 6, 13)) - container.config.option2.from_value(date(2021, 6, 14)) + container.config.option1.from_value(date(2022, 3, 13)) + container.config.option2.from_value(date(2022, 3, 14)) assert container.config() == { - "option1": date(2021, 6, 13), - "option2": date(2021, 6, 14), + "option1": date(2022, 3, 13), + "option2": date(2022, 3, 14), } - assert container.config.option1() == date(2021, 6, 13) - assert container.config.option2() == date(2021, 6, 14) + assert container.config.option1() == date(2022, 3, 13) + assert container.config.option2() == date(2022, 3, 14)