Skip to content

Commit

Permalink
[PR aio-libs#6055/079e9c5a backport][3.8] Implement future changelog …
Browse files Browse the repository at this point in the history
…previews in the docs (aio-libs#6055) (aio-libs#6057)
  • Loading branch information
webknjaz authored Oct 6, 2021
1 parent cd32d18 commit e2169b6
Show file tree
Hide file tree
Showing 12 changed files with 69 additions and 19 deletions.
20 changes: 18 additions & 2 deletions .readthedocs.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,21 @@
# Read the Docs configuration file
# See https://docs.readthedocs.io/en/stable/config-file/v2.html
# for details

---
version: 2

submodules:
include: all # []
exclude: []
recursive: true

build:
image: latest
python:
version: 3.6
pip_install: false
version: 3.8
install:
- method: pip
path: .
- requirements: requirements/doc.txt
...
4 changes: 0 additions & 4 deletions CHANGES.rst
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
=========
Changelog
=========

..
You should *NOT* be adding new change log entries to this file, this
file is managed by towncrier. You *may* edit previous change logs to
Expand Down
2 changes: 1 addition & 1 deletion CHANGES/4054.feature
Original file line number Diff line number Diff line change
@@ -1 +1 @@
Implemented readuntil in StreamResponse
Implemented ``readuntil`` in ``StreamResponse``
8 changes: 4 additions & 4 deletions CHANGES/4700.feature
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
AioHTTPTestCase is more async friendly now.
``AioHTTPTestCase`` is more async friendly now.

For people who use unittest and are used to use unittest.TestCase
it will be easier to write new test cases like the sync version of the TestCase class,
For people who use unittest and are used to use :py:exc:`~unittest.TestCase`
it will be easier to write new test cases like the sync version of the :py:exc:`~unittest.TestCase` class,
without using the decorator `@unittest_run_loop`, just `async def test_*`.
The only difference is that for the people using python3.7 and below a new dependency is needed, it is `asynctestcase`.
The only difference is that for the people using python3.7 and below a new dependency is needed, it is ``asynctestcase``.
2 changes: 1 addition & 1 deletion CHANGES/5326.doc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
Refactor OpenAPI/Swagger aiohttp addons, added aio-openapi
Refactored OpenAPI/Swagger aiohttp addons, added ``aio-openapi``
2 changes: 1 addition & 1 deletion CHANGES/5905.bugfix
Original file line number Diff line number Diff line change
@@ -1 +1 @@
remove deprecated loop argument for asnycio.sleep/gather calls
Removed the deprecated ``loop`` argument from the ``asyncio.sleep``/``gather`` calls
12 changes: 12 additions & 0 deletions docs/changes.rst
Original file line number Diff line number Diff line change
@@ -1,5 +1,17 @@
.. _aiohttp_changes:

=========
Changelog
=========

To be included in v\ |release| (if present)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

.. towncrier-draft-entries:: |release| [UNRELEASED DRAFT]

Released versions
^^^^^^^^^^^^^^^^^

.. include:: ../CHANGES.rst

.. include:: ../HISTORY.rst
11 changes: 11 additions & 0 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@
import io
import os
import re
from pathlib import Path

PROJECT_ROOT_DIR = Path(__file__).parents[1].resolve()

_docs_path = os.path.dirname(__file__)
_version_path = os.path.abspath(
Expand Down Expand Up @@ -51,6 +54,7 @@
# Third-party extensions:
"sphinxcontrib.asyncio",
"sphinxcontrib.blockdiag",
"sphinxcontrib.towncrier", # provides `towncrier-draft-entries` directive
]


Expand Down Expand Up @@ -434,3 +438,10 @@
("py:exc", "HTTPMethodNotAllowed"), # undocumented
("py:class", "HTTPMethodNotAllowed"), # undocumented
]

# -- Options for towncrier_draft extension -----------------------------------

towncrier_draft_autoversion_mode = "draft" # or: 'sphinx-version', 'sphinx-release'
towncrier_draft_include_empty = True
towncrier_draft_working_directory = PROJECT_ROOT_DIR
# Not yet supported: towncrier_draft_config_path = 'pyproject.toml' # relative to cwd
5 changes: 5 additions & 0 deletions docs/spelling_wordlist.txt
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ WSMsgType
Websockets
Workflow
abc
addons
aiodns
aioes
aiohttp
Expand Down Expand Up @@ -115,6 +116,7 @@ botocore
bugfix
builtin
cChardet
callables
cancelled
canonicalization
canonicalize
Expand Down Expand Up @@ -202,6 +204,7 @@ login
lookup
lookups
lossless
lowercased
manylinux
metadata
microservice
Expand Down Expand Up @@ -258,6 +261,7 @@ redirections
refactor
refactored
refactoring
referenceable
regex
regexps
regexs
Expand Down Expand Up @@ -316,6 +320,7 @@ unittest
unix
unsets
unstripped
uppercased
upstr
url
urldispatcher
Expand Down
14 changes: 9 additions & 5 deletions requirements/dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ click==7.1.2
# towncrier
click-default-group==1.2.2
# via towncrier
coverage==5.5
coverage[toml]==6.0
# via
# -r requirements/test.txt
# pytest-cov
Expand Down Expand Up @@ -129,7 +129,7 @@ mccabe==0.6.1
# via
# -r requirements/lint.txt
# flake8
multidict==5.1.0
multidict==5.2.0
# via
# -r requirements/multidict.txt
# yarl
Expand Down Expand Up @@ -199,7 +199,7 @@ pytest==6.1.2
# -r requirements/test.txt
# pytest-cov
# pytest-mock
pytest-cov==2.12.1
pytest-cov==3.0.0
# via -r requirements/test.txt
pytest-mock==3.6.1
# via -r requirements/test.txt
Expand Down Expand Up @@ -237,6 +237,7 @@ sphinx==4.2.0
# -r requirements/doc.txt
# sphinxcontrib-asyncio
# sphinxcontrib-blockdiag
# sphinxcontrib-towncrier
sphinxcontrib-applehelp==1.0.2
# via sphinx
sphinxcontrib-asyncio==0.3.0
Expand All @@ -253,6 +254,8 @@ sphinxcontrib-qthelp==1.0.3
# via sphinx
sphinxcontrib-serializinghtml==1.1.5
# via sphinx
sphinxcontrib-towncrier==0.2.0a0
# via -r requirements/doc.txt
toml==0.10.2
# via
# -r requirements/lint.txt
Expand All @@ -261,10 +264,11 @@ toml==0.10.2
# mypy
# pre-commit
# pytest
# pytest-cov
# towncrier
towncrier==21.3.0
# via -r requirements/doc.txt
# via
# -r requirements/doc.txt
# sphinxcontrib-towncrier
trustme==0.9.0 ; platform_machine != "i686"
# via -r requirements/test.txt
typed-ast==1.4.3 ; implementation_name == "cpython"
Expand Down
7 changes: 6 additions & 1 deletion requirements/doc-spelling.txt
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ sphinx==4.2.0
# sphinxcontrib-asyncio
# sphinxcontrib-blockdiag
# sphinxcontrib-spelling
# sphinxcontrib-towncrier
sphinxcontrib-applehelp==1.0.2
# via sphinx
sphinxcontrib-asyncio==0.3.0
Expand All @@ -82,10 +83,14 @@ sphinxcontrib-serializinghtml==1.1.5
# via sphinx
sphinxcontrib-spelling==7.2.1 ; platform_system != "Windows"
# via -r requirements/doc-spelling.in
sphinxcontrib-towncrier==0.2.0a0
# via -r requirements/doc.txt
toml==0.10.2
# via towncrier
towncrier==21.3.0
# via -r requirements/doc.txt
# via
# -r requirements/doc.txt
# sphinxcontrib-towncrier
urllib3==1.26.3
# via requests
webcolors==1.11.1
Expand Down
1 change: 1 addition & 0 deletions requirements/doc.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,5 @@ pygments==2.10.0
sphinx==4.2.0
sphinxcontrib-asyncio==0.3.0
sphinxcontrib-blockdiag==2.0.0
sphinxcontrib-towncrier==0.2.0a0
towncrier==21.3.0

0 comments on commit e2169b6

Please sign in to comment.