-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from austind/develop
Release v0.2.0
- Loading branch information
Showing
17 changed files
with
444 additions
and
334 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,92 @@ | ||
name: CD Workflow | ||
|
||
on: | ||
push: | ||
tags: | ||
- 'release/v*.*.*' | ||
|
||
jobs: | ||
# build: | ||
# name: Build package | ||
# runs-on: ubuntu-latest | ||
# steps: | ||
# - uses: actions/checkout@v4 | ||
# - uses: actions/setup-python@v5 | ||
# with: | ||
# python-version: "3.x" | ||
|
||
# - name: Install dependencies | ||
# run: python3 -m pip install build --user | ||
|
||
# - name: Build package | ||
# run: python3 -m build | ||
|
||
# github-release: | ||
# name: Publish GitHub release | ||
# runs-on: ubuntu-latest | ||
# needs: | ||
# - build | ||
# permissions: | ||
# contents: write | ||
# id-token: write | ||
|
||
# steps: | ||
# - name: Download dists | ||
# uses: actions/download-artifact@v3 | ||
# with: | ||
# name: python-package-distributions | ||
# path: dist/ | ||
|
||
# - name: Create GitHub release | ||
# id: create_release | ||
# uses: actions/create-release@v1 | ||
# env: | ||
# GITHUB_TOKEN: ${{ github.token }} | ||
# with: | ||
# tag_name: ${{ github.ref }} | ||
# release_name: ${{ github.ref }} | ||
# body: | | ||
# See [changelog](https://retryhttp.readthedocs.io/changelog). | ||
# draft: false | ||
# prerelease: false | ||
|
||
# - name: Upload release assets | ||
# uses: actions/upload-release-asset@v1 | ||
# env: | ||
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
# with: | ||
# upload_url: ${{ steps.create_release.outputs.upload_url }} | ||
# asset_path: ./dist | ||
# asset_name: retryhttp_${{ github.ref }}.zip | ||
# asset_content_type: application/zip | ||
|
||
# publish-to-pypi: | ||
# name: Publish to PyPI | ||
# runs-on: ubuntu-latest | ||
# needs: | ||
# - build | ||
# environment: | ||
# name: pypi | ||
# url: https://pypi.org/p/retryhttp | ||
# permissions: | ||
# id-token: write | ||
|
||
# steps: | ||
# - name: Download dists | ||
# uses: actions/download-artifact@v3 | ||
# with: | ||
# name: python-package-distributions | ||
# path: dist/ | ||
|
||
# - name: Publish package to PyPI | ||
# uses: pypa/gh-action-pypi-publish@release/v1.9 | ||
# with: | ||
# password: ${{ secrets.PYPI_TOKEN }} | ||
publish-to-rtd: | ||
name: Publish to Read The Docs | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: rtfd/readthedocs-action@v1 | ||
with: | ||
token: ${{ secrets.RTD_TOKEN }} | ||
version: ${{ github.ref_name }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# Changelog | ||
|
||
## v0.2.0 | ||
|
||
* Rename `retryhttp.retry_http_errors` to [`retryhttp.retry`][]. | ||
* Rename `retryhttp.wait_http_errors` to [`retryhttp.wait_context_aware`][]. | ||
* Restructure project so all members are part of the root namespace. | ||
* Move type delcarations to `retryhttp._types`. | ||
* Enable bare decorator syntax for [`retryhttp.retry`][] (i.e., `@retry` works as well as `@retry()`) | ||
|
||
## v0.1.0 | ||
|
||
Initial release. | ||
|
||
Added the following methods and classes: | ||
|
||
* `retryhttp.retry_http_errors` | ||
* [`retryhttp.retry_if_network_error`][] | ||
* [`retryhttp.retry_if_rate_limited`][] | ||
* [`retryhttp.retry_if_server_error`][] | ||
* [`retryhttp.retry_if_timeout`][] | ||
* [`retryhttp.wait_from_header`][] | ||
* [`retryhttp.wait_rate_limited`][] | ||
* [`retryhttp.wait_context_aware`][] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.