Skip to content

Commit 13a7ef6

Browse files
committed
Merge branch 'release/4.42.0' into master
2 parents 2c998b8 + 7a88a8e commit 13a7ef6

27 files changed

+69
-21
lines changed

.github/workflows/publishing.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -115,8 +115,8 @@ jobs:
115115
- uses: actions/setup-python@v4
116116
with:
117117
python-version: 3.12
118-
- run: pip install -r requirements-doc.txt
119118
- run: pip install awscli
119+
- run: pip install -r requirements-doc.txt
120120
- run: pip install -e .
121121
- run: (cd docs && make clean html)
122122
- run: |

docs/_static/custom.css

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
.no-border {
2+
border: 0 !important;
3+
box-shadow: none !important;
4+
-webkit-box-shadow: none !important;
5+
}
6+
.no-border td {
7+
border: 0px !important;
8+
padding: 0px 10px 0px 0px !important;
9+
}

docs/_static/disqus.js

-11
This file was deleted.

docs/_static/sponsor.html

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
<iframe src="https://github.com/sponsors/rmk135/button" title="Sponsor Dependency Injector" height="32" width="114" style="border: 0; border-radius: 6px;"></iframe>

docs/conf.py

+6-2
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
extensions = [
3434
"alabaster",
3535
"sphinx.ext.autodoc",
36-
"sphinxcontrib.disqus",
36+
"sphinx_disqus.disqus",
3737
]
3838

3939
# Add any paths that contain templates here, relative to this directory.
@@ -52,7 +52,7 @@
5252

5353
# General information about the project.
5454
project = "Dependency Injector"
55-
copyright = "2022, Roman Mogylatov"
55+
copyright = "2024, Roman Mogylatov"
5656
author = "Roman Mogylatov"
5757

5858
# The version info for the project you"re documenting, acts as replacement for
@@ -147,6 +147,9 @@
147147
# relative to this directory. They are copied after the builtin static files,
148148
# so a file named "default.css" will overwrite the builtin "default.css".
149149
html_static_path = ["_static"]
150+
html_css_files = [
151+
"custom.css",
152+
]
150153

151154
# Add any extra paths that contain custom files (such as robots.txt or
152155
# .htaccess) here, relative to this directory. These files are copied
@@ -306,4 +309,5 @@
306309
"description": "Dependency injection framework for Python by Roman Mogylatov",
307310
"code_font_size": "10pt",
308311
"analytics_id": "UA-67012059-1",
312+
"donate_url": "https://github.com/sponsors/rmk135",
309313
}

docs/examples/aiohttp.rst

+2
Original file line numberDiff line numberDiff line change
@@ -78,4 +78,6 @@ Sources
7878

7979
Explore the sources on the `Github <https://github.com/ets-labs/python-dependency-injector/tree/master/examples/miniapps/aiohttp>`_.
8080

81+
.. include:: ../sponsor.rst
82+
8183
.. disqus::

docs/examples/application-multiple-containers.rst

+2
Original file line numberDiff line numberDiff line change
@@ -84,4 +84,6 @@ Run the application
8484

8585
You can find the source code and instructions for running on the `Github <https://github.com/ets-labs/python-dependency-injector/tree/master/examples/miniapps/application-multiple-containers>`_.
8686

87+
.. include:: ../sponsor.rst
88+
8789
.. disqus::

docs/examples/application-single-container.rst

+2
Original file line numberDiff line numberDiff line change
@@ -90,4 +90,6 @@ Run the application
9090

9191
You can find the source code and instructions for running on the `Github <https://github.com/ets-labs/python-dependency-injector/tree/master/examples/miniapps/application-single-container>`_.
9292

93+
.. include:: ../sponsor.rst
94+
9395
.. disqus::

docs/examples/boto3.rst

+2
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,6 @@ Listing of ``boto3_session_example.py``:
1717
.. literalinclude:: ../../examples/miniapps/boto3-session/boto3_session_example.py
1818
:language: python
1919

20+
.. include:: ../sponsor.rst
21+
2022
.. disqus::

docs/examples/decoupled-packages.rst

+2
Original file line numberDiff line numberDiff line change
@@ -129,4 +129,6 @@ Run the application
129129

130130
You can find the source code and instructions for running on the `Github <https://github.com/ets-labs/python-dependency-injector/tree/master/examples/miniapps/decoupled-packages>`_.
131131

132+
.. include:: ../sponsor.rst
133+
132134
.. disqus::

docs/examples/django.rst

+2
Original file line numberDiff line numberDiff line change
@@ -94,4 +94,6 @@ Sources
9494

9595
Explore the sources on the `Github <https://github.com/ets-labs/python-dependency-injector/tree/master/examples/miniapps/django>`_.
9696

97+
.. include:: ../sponsor.rst
98+
9799
.. disqus::

docs/examples/fastapi-redis.rst

+2
Original file line numberDiff line numberDiff line change
@@ -95,4 +95,6 @@ See also:
9595
- Resource provider :ref:`resource-async-initializers`
9696
- Wiring :ref:`async-injections-wiring`
9797

98+
.. include:: ../sponsor.rst
99+
98100
.. disqus::

docs/examples/fastapi-sqlalchemy.rst

+2
Original file line numberDiff line numberDiff line change
@@ -116,4 +116,6 @@ Sources
116116

117117
The source code is available on the `Github <https://github.com/ets-labs/python-dependency-injector/tree/master/examples/miniapps/fastapi-sqlalchemy>`_.
118118

119+
.. include:: ../sponsor.rst
120+
119121
.. disqus::

docs/examples/fastapi.rst

+2
Original file line numberDiff line numberDiff line change
@@ -76,4 +76,6 @@ Sources
7676

7777
Explore the sources on the `Github <https://github.com/ets-labs/python-dependency-injector/tree/master/examples/miniapps/fastapi>`_.
7878

79+
.. include:: ../sponsor.rst
80+
7981
.. disqus::

docs/examples/flask-blueprints.rst

+2
Original file line numberDiff line numberDiff line change
@@ -86,4 +86,6 @@ Sources
8686

8787
Explore the sources on the `Github <https://github.com/ets-labs/python-dependency-injector/tree/master/examples/miniapps/flask-blueprints>`_.
8888

89+
.. include:: ../sponsor.rst
90+
8991
.. disqus::

docs/examples/flask.rst

+2
Original file line numberDiff line numberDiff line change
@@ -84,4 +84,6 @@ Sources
8484

8585
Explore the sources on the `Github <https://github.com/ets-labs/python-dependency-injector/tree/master/examples/miniapps/flask>`_.
8686

87+
.. include:: ../sponsor.rst
88+
8789
.. disqus::

docs/examples/sanic.rst

+2
Original file line numberDiff line numberDiff line change
@@ -77,4 +77,6 @@ Sources
7777

7878
Explore the sources on the `Github <https://github.com/ets-labs/python-dependency-injector/tree/master/examples/miniapps/sanic>`_.
7979

80+
.. include:: ../sponsor.rst
81+
8082
.. disqus::

docs/index.rst

+5-5
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@ Dependency Injector --- Dependency injection framework for Python
99
:description: Dependency Injector is a dependency injection framework
1010
for Python. It helps to maintain you application structure.
1111
It was designed to be unified, developer-friendly
12-
tool that helps to implement dependency injection design
13-
pattern in formal, pretty, Pythonic way. Dependency Injector
14-
provides implementations of such popular design patterns
15-
like IoC container, Factory and Singleton. Dependency
16-
Injector providers are implemented as C extension types
12+
tool that helps to implement dependency injection design
13+
pattern in formal, pretty, Pythonic way. Dependency Injector
14+
provides implementations of such popular design patterns
15+
like IoC container, Factory and Singleton. Dependency
16+
Injector providers are implemented as C extension types
1717
using Cython.
1818

1919
.. _index:

docs/introduction/di_in_python.rst

+2
Original file line numberDiff line numberDiff line change
@@ -310,4 +310,6 @@ A few useful links related to a dependency injection design pattern for further
310310
+ https://github.com/ets-labs/python-dependency-injector
311311
+ https://pypi.org/project/dependency-injector/
312312

313+
.. include:: ../sponsor.rst
314+
313315
.. disqus::

docs/main/changelog.rst

+5
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,11 @@ that were made in every particular version.
77
From version 0.7.6 *Dependency Injector* framework strictly
88
follows `Semantic versioning`_
99

10+
4.42.0
11+
--------
12+
- Promote release ``4.42.0b1`` to a production release.
13+
- Fix the Disqus comment widget.
14+
1015
4.42.0b1
1116
--------
1217

docs/sponsor.rst

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
.. list-table::
2+
:class: no-border
3+
:align: left
4+
5+
* - Sponsor the project on GitHub:
6+
- .. raw:: html
7+
:file: _static/sponsor.html

docs/tutorials/aiohttp.rst

+2
Original file line numberDiff line numberDiff line change
@@ -859,4 +859,6 @@ What's next?
859859
- Know more about the :ref:`providers`
860860
- Go to the :ref:`contents`
861861

862+
.. include:: ../sponsor.rst
863+
862864
.. disqus::

docs/tutorials/asyncio-daemon.rst

+2
Original file line numberDiff line numberDiff line change
@@ -1028,4 +1028,6 @@ What's next?
10281028
- Know more about the :ref:`providers`
10291029
- Go to the :ref:`contents`
10301030

1031+
.. include:: ../sponsor.rst
1032+
10311033
.. disqus::

docs/tutorials/cli.rst

+2
Original file line numberDiff line numberDiff line change
@@ -1034,4 +1034,6 @@ What's next?
10341034
- Know more about the :ref:`providers`
10351035
- Go to the :ref:`contents`
10361036

1037+
.. include:: ../sponsor.rst
1038+
10371039
.. disqus::

docs/tutorials/flask.rst

+1
Original file line numberDiff line numberDiff line change
@@ -998,5 +998,6 @@ What's next?
998998
- Know more about the :ref:`providers`
999999
- Go to the :ref:`contents`
10001000

1001+
.. include:: ../sponsor.rst
10011002

10021003
.. disqus::

requirements-doc.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@ sphinx
44
# TODO: unpin jinja2 after sphinx update to 4+
55
jinja2
66

7-
-e git+https://github.com/rmk135/sphinxcontrib-disqus.git#egg=sphinxcontrib-disqus
7+
sphinx-disqus==1.3.0
88

99
-r requirements-ext.txt

src/dependency_injector/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
"""Top-level package."""
22

3-
__version__ = "4.42.0b1"
3+
__version__ = "4.42.0"
44
"""Version number.
55
66
:type: str

0 commit comments

Comments
 (0)