-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* Follow redirects when downloading a file. Fixes #30. * Update Python 3.11 to rc2 * Add pre-commit * Improve type hints
- Loading branch information
Showing
9 changed files
with
62 additions
and
24 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 |
---|---|---|
|
@@ -15,7 +15,7 @@ jobs: | |
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
python-version: [3.8, 3.9, '3.10', '3.11.0-beta.1'] | ||
python-version: [3.8, 3.9, '3.10', '3.11.0-rc.2'] | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
@@ -39,3 +39,8 @@ jobs: | |
- name: Test with dependency matrix | ||
run: | | ||
tox | ||
- name: pypi-publish | ||
uses: pypa/[email protected] | ||
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags') | ||
with: | ||
password: ${{ secrets.PYPI_API_TOKEN }} |
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,35 @@ | ||
minimum_pre_commit_version: "2.20.0" | ||
repos: | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: "v4.3.0" | ||
hooks: | ||
- id: check-ast | ||
- id: check-case-conflict | ||
- id: check-yaml | ||
- id: end-of-file-fixer | ||
- id: trailing-whitespace | ||
- repo: https://github.com/asottile/pyupgrade | ||
rev: v2.38.2 | ||
hooks: | ||
- id: pyupgrade | ||
args: [--py38-plus] | ||
- repo: https://github.com/PyCQA/isort | ||
rev: "5.10.1" | ||
hooks: | ||
- id: isort | ||
args: ["--profile=black"] | ||
- repo: https://github.com/psf/black | ||
rev: "22.8.0" | ||
hooks: | ||
- id: black | ||
args: ["--target-version=py38"] | ||
- repo: https://github.com/PyCQA/flake8 | ||
rev: "5.0.4" | ||
hooks: | ||
- id: flake8 | ||
args: ["--config=setup.cfg"] | ||
- repo: https://github.com/pre-commit/mirrors-mypy | ||
rev: "v0.981" | ||
hooks: | ||
- id: mypy | ||
args: ["--ignore-missing-imports", "--python-version=3.10"] |
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 |
---|---|---|
@@ -1,5 +1,8 @@ | ||
# Changelog | ||
|
||
## 2022.9.0 | ||
* support httpx 0.20-0.22+ | ||
|
||
## 2022.2.0 | ||
* support httpx 0.16-0.22+ | ||
|
||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
httpx>=0.16 | ||
httpx>=0.20 |
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 |
---|---|---|
@@ -1,9 +1,8 @@ | ||
import setuptools | ||
|
||
|
||
if __name__ == "__main__": | ||
# setuptools does not support setting install_requires from a file in setup.cfg | ||
with open("requirements.in", "r", encoding="utf-8") as fh: | ||
with open("requirements.in", encoding="utf-8") as fh: | ||
install_requires = fh.read().splitlines() | ||
|
||
setuptools.setup(install_requires=install_requires) |
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