Skip to content

Commit 36bf956

Browse files
authored
Release notes for 0.7.0 (#81)
1 parent 5760b0d commit 36bf956

File tree

3 files changed

+47
-32
lines changed

3 files changed

+47
-32
lines changed

.github/workflows/publish.yml

Lines changed: 17 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,25 @@
1-
# This workflows will upload a Python Package using Twine when a release is created
2-
# For more information see: https://help.github.com/en/actions/language-and-framework-guides/using-python-with-github-actions#publishing-to-package-registries
3-
4-
name: publish
5-
1+
name: Publish
62
on:
73
push:
84
tags:
9-
- "[0-9]+.[0-9]+.[0-9]+"
10-
5+
- '[0-9]+.[0-9]+.[0-9]+'
116
jobs:
12-
deploy:
7+
publish:
138
runs-on: ubuntu-latest
14-
9+
environment:
10+
name: pypi
11+
url: https://pypi.org/p/zyte-api
12+
permissions:
13+
id-token: write
1514
steps:
1615
- uses: actions/checkout@v4
17-
- name: Set up Python
18-
uses: actions/setup-python@v5
16+
- uses: actions/setup-python@v5
1917
with:
20-
python-version: '3.13'
21-
- name: Install dependencies
22-
run: |
23-
python -m pip install --upgrade pip
24-
pip install setuptools wheel twine
25-
- name: Build and publish
26-
if: startsWith(github.ref, 'refs/tags')
27-
env:
28-
TWINE_USERNAME: __token__
29-
TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }}
30-
run: |
31-
python setup.py sdist bdist_wheel
32-
twine upload dist/*
18+
python-version: 3.13
19+
- run: |
20+
python -m pip install --upgrade build
21+
python -m build
22+
- name: Publish to PyPI
23+
uses: pypa/gh-action-pypi-publish@release/v1
24+
with:
25+
password: ${{ secrets.PYPI_TOKEN }}

CHANGES.rst

Lines changed: 21 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,35 @@
11
Changes
22
=======
33

4-
Unreleased
5-
----------
4+
0.7.0 (unreleased)
5+
------------------
6+
7+
* Dropped support for Python 3.8, added support for Python 3.12 and 3.13.
68

7-
* **Backward-incompatible:** Renamed some methods of
8-
:class:`~.RetryFactory` for consistency, since they now handle both temporary
9-
and permanent download errors:
9+
* Renamed some methods of :class:`~.RetryFactory` for consistency, since they
10+
now handle both temporary and permanent download errors:
1011

1112
* ``temporary_download_error_stop`` →
1213
:meth:`~.RetryFactory.download_error_stop`
1314

1415
* ``temporary_download_error_wait`` →
1516
:meth:`~.RetryFactory.download_error_wait`
1617

18+
* Made the :ref:`default retry policy <default-retry-policy>` behave like the
19+
:ref:`aggressive retry policy <aggressive-retry-policy>`, but with half the
20+
retry attempts:
21+
22+
* :ref:`Permanent download errors <zapi-permanent-download-errors>` now also
23+
count towards the retry limit of :ref:`temporary download errors
24+
<zapi-temporary-download-errors>`.
25+
26+
* Permanent download errors are now retried once.
27+
28+
* Error responses with an HTTP status code in the 500-599 range (503, 520 and
29+
521 excluded) are now retried once.
30+
31+
* Fixed the session example of the :ref:`async API <asyncio_api>`.
32+
1733
0.6.0 (2024-05-29)
1834
------------------
1935

pyproject.toml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,19 @@ tag = true
55
tag_name = "{new_version}"
66

77
[[tool.bumpversion.files]]
8-
filename = "setup.py"
8+
filename = 'CHANGES.rst'
9+
search = "\\(unreleased\\)$"
10+
replace = "({now:%Y-%m-%d})"
11+
regex = true
912

1013
[[tool.bumpversion.files]]
11-
filename = "zyte_api/__version__.py"
14+
filename = "docs/conf.py"
1215

1316
[[tool.bumpversion.files]]
14-
filename = "docs/conf.py"
17+
filename = "setup.py"
18+
19+
[[tool.bumpversion.files]]
20+
filename = "zyte_api/__version__.py"
1521

1622
[tool.coverage.run]
1723
branch = true

0 commit comments

Comments
 (0)