Skip to content

Commit ea0cd1c

Browse files
authored
Merge branch 'master' into spdx-compliant-license
2 parents c2c9291 + 9f7dd7f commit ea0cd1c

24 files changed

+207
-503
lines changed

.github/workflows/ci.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
strategy:
1414
fail-fast: false
1515
matrix:
16-
python: ['3.6', '3.7', '3.8', '3.9']
16+
python: ['3.7', '3.8', '3.9', '3.10', '3.11']
1717
steps:
1818
- name: Checkout
1919
uses: actions/checkout@v2
@@ -35,7 +35,7 @@ jobs:
3535
strategy:
3636
fail-fast: false
3737
matrix:
38-
python: ['pypy-3.6', '3.6', '3.7', '3.8', '3.9', '3.8-dev', '3.9-dev']
38+
python: ['pypy-3.7', '3.7', 'pypy-3.8', '3.8', 'pypy-3.9', '3.9', '3.10', '3.11']
3939
check_formatting: ['0']
4040
check_docs: ['0']
4141
extra_name: ['']
@@ -74,7 +74,7 @@ jobs:
7474
strategy:
7575
fail-fast: false
7676
matrix:
77-
python: ['3.6', '3.7', '3.8', '3.9']
77+
python: ['3.7', '3.8', '3.9', '3.10', '3.11']
7878
steps:
7979
- name: Checkout
8080
uses: actions/checkout@v2

.style.yapf

-180
This file was deleted.

CHEATSHEET.rst

+1-9
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,7 @@ To run tests
99

1010
* Actually run the tests: ``pytest pytest_trio``
1111

12-
13-
To run yapf
14-
-----------
15-
16-
* Show what changes yapf wants to make: ``yapf -rpd setup.py
17-
pytest_trio``
18-
19-
* Apply all changes directly to the source tree: ``yapf -rpi setup.py
20-
pytest_trio``
12+
* Format the code with ``black .``
2113

2214

2315
To make a release

MANIFEST.in

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
include README.rst CHEATSHEET.rst LICENSE* CODE_OF_CONDUCT* CONTRIBUTING*
2-
include .coveragerc .style.yapf
2+
include .coveragerc
33
include test-requirements.txt
44
recursive-include docs *
55
prune docs/build

ci.sh

+4-7
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,6 @@ set -ex -o pipefail
66
uname -a
77
env | sort
88

9-
# See https://github.com/python-trio/trio/issues/334
10-
YAPF_VERSION=0.22.0
11-
129
# Curl's built-in retry system is not very robust; it gives up on lots of
1310
# network errors that we want to retry on. Wget might work better, but it's
1411
# not installed on azure pipelines's windows boxes. So... let's try some good
@@ -33,16 +30,16 @@ python setup.py sdist --formats=zip
3330
python -m pip install dist/*.zip
3431

3532
if [ "$CHECK_FORMATTING" = "1" ]; then
36-
pip install yapf==${YAPF_VERSION}
37-
if ! yapf -rpd setup.py pytest_trio; then
33+
pip install black
34+
if ! black --check . ; then
3835
cat <<EOF
3936
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
4037
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
4138
4239
Formatting problems were found (listed above). To fix them, run
4340
44-
pip install yapf==${YAPF_VERSION}
45-
yapf -rpi setup.py pytest_trio
41+
pip install black
42+
black .
4643
4744
in your local checkout.
4845

docs-requirements.in

+3-6
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# RTD is currently installing 1.5.3, which has a bug in :lineno-match:
21
sphinx >= 1.6.1
32
sphinx_rtd_theme
43
sphinxcontrib-trio
@@ -10,8 +9,6 @@ attrs >= 17.4.0
109
towncrier != 19.9.0,!= 21.3.0
1110

1211
# pytest-trio's own dependencies
13-
trio >= 0.15.0
14-
async_generator >= 1.9
15-
outcome
16-
# For node.get_closest_marker
17-
pytest >= 3.6
12+
trio >= 0.22.0
13+
outcome >= 1.1.0
14+
pytest >= 7.2.0

0 commit comments

Comments
 (0)