Skip to content

Commit 498884a

Browse files
authored
Merge pull request #6563 from blueyed/merge-master-into-features
Merge master into features
2 parents e17f5fa + 09bdbff commit 498884a

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+232
-242
lines changed

.github/workflows/main.yml

Lines changed: 17 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,8 @@ jobs:
4545
"macos-py38",
4646

4747
"linting",
48+
"docs",
49+
"doctesting",
4850
]
4951

5052
include:
@@ -114,7 +116,17 @@ jobs:
114116
- name: "linting"
115117
python: "3.7"
116118
os: ubuntu-latest
117-
tox_env: "linting,docs,doctesting"
119+
tox_env: "linting"
120+
skip_coverage: true
121+
- name: "docs"
122+
python: "3.7"
123+
os: ubuntu-latest
124+
tox_env: "docs"
125+
skip_coverage: true
126+
- name: "doctesting"
127+
python: "3.7"
128+
os: ubuntu-latest
129+
tox_env: "doctesting"
118130

119131
steps:
120132
- uses: actions/checkout@v1
@@ -144,21 +156,11 @@ jobs:
144156
run: |
145157
python scripts/append_codecov_token.py
146158
147-
- name: Combine coverage
159+
- name: Report coverage
148160
if: (!matrix.skip_coverage)
149-
run: |
150-
python -m coverage combine
151-
python -m coverage xml
152-
153-
- name: Codecov upload
154-
if: (!matrix.skip_coverage)
155-
uses: codecov/codecov-action@v1
156-
with:
157-
token: ${{ secrets.codecov }}
158-
file: ./coverage.xml
159-
flags: ${{ runner.os }}
160-
fail_ci_if_error: false
161-
name: ${{ matrix.name }}
161+
env:
162+
CODECOV_NAME: ${{ matrix.name }}
163+
run: bash scripts/report-coverage.sh -F GHA,${{ runner.os }}
162164

163165
deploy:
164166
if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags') && github.repository == 'pytest-dev/pytest'

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ repos:
6464
_code\.|
6565
builtin\.|
6666
code\.|
67-
io\.(BytesIO|saferepr)|
67+
io\.(BytesIO|saferepr|TerminalWriter)|
6868
path\.local\.sysfind|
6969
process\.|
7070
std\.

.travis.yml

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -47,11 +47,6 @@ jobs:
4747
python: '3.5.1'
4848
dist: trusty
4949

50-
- env: TOXENV=linting,docs,doctesting PYTEST_COVERAGE=1
51-
cache:
52-
directories:
53-
- $HOME/.cache/pre-commit
54-
5550
before_script:
5651
- |
5752
# Do not (re-)upload coverage with cron runs.
@@ -71,7 +66,7 @@ script: tox
7166
after_success:
7267
- |
7368
if [[ "$PYTEST_COVERAGE" = 1 ]]; then
74-
env CODECOV_NAME="$TOXENV-$TRAVIS_OS_NAME" scripts/report-coverage.sh
69+
env CODECOV_NAME="$TOXENV-$TRAVIS_OS_NAME" scripts/report-coverage.sh -F Travis
7570
fi
7671
7772
notifications:

CONTRIBUTING.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ Short version
166166

167167
#. Fork the repository.
168168
#. Enable and install `pre-commit <https://pre-commit.com>`_ to ensure style-guides and code checks are followed.
169-
#. Target ``master`` for bugfixes and doc changes.
169+
#. Target ``master`` for bug fixes and doc changes.
170170
#. Target ``features`` for new features or functionality changes.
171171
#. Follow **PEP-8** for naming and `black <https://github.com/psf/black>`_ for formatting.
172172
#. Tests are run using ``tox``::
@@ -212,7 +212,7 @@ Here is a simple overview, with pytest-specific bits:
212212

213213
$ git checkout -b your-feature-branch-name features
214214

215-
Given we have "major.minor.micro" version numbers, bugfixes will usually
215+
Given we have "major.minor.micro" version numbers, bug fixes will usually
216216
be released in micro releases whereas features will be released in
217217
minor releases and incompatible changes in major releases.
218218

@@ -294,7 +294,7 @@ Here is a simple overview, with pytest-specific bits:
294294
compare: your-branch-name
295295

296296
base-fork: pytest-dev/pytest
297-
base: master # if it's a bugfix
297+
base: master # if it's a bug fix
298298
base: features # if it's a feature
299299

300300

HOWTORELEASE.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
Release Procedure
22
-----------------
33

4-
Our current policy for releasing is to aim for a bugfix every few weeks and a minor release every 2-3 months. The idea
4+
Our current policy for releasing is to aim for a bug-fix release every few weeks and a minor release every 2-3 months. The idea
55
is to get fixes and new features out instead of trying to cram a ton of features into a release and by consequence
66
taking a lot of time to make a new one.
77

88
.. important::
99

1010
pytest releases must be prepared on **Linux** because the docs and examples expect
11-
to be executed in that platform.
11+
to be executed on that platform.
1212

1313
#. Create a branch ``release-X.Y.Z`` with the version for the release.
1414

azure-pipelines.yml

Lines changed: 0 additions & 80 deletions
This file was deleted.

changelog/README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ Each file should be named like ``<ISSUE>.<TYPE>.rst``, where
1515

1616
* ``feature``: new user facing features, like new command-line options and new behavior.
1717
* ``improvement``: improvement of existing functionality, usually without requiring user intervention (for example, new fields being written in ``--junitxml``, improved colors in terminal, etc).
18-
* ``bugfix``: fixes a reported bug.
18+
* ``bugfix``: fixes a bug.
1919
* ``doc``: documentation improvement, like rewording an entire session or adding missing docs.
2020
* ``deprecation``: feature deprecation.
2121
* ``breaking``: a change which may break existing suites, such as feature removal or behavior change.

doc/en/changelog.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2357,7 +2357,7 @@ Deprecations and Removals
23572357
- `#4036 <https://github.com/pytest-dev/pytest/issues/4036>`_: The ``item`` parameter of ``pytest_warning_captured`` hook is now documented as deprecated. We realized only after
23582358
the ``3.8`` release that this parameter is incompatible with ``pytest-xdist``.
23592359

2360-
Our policy is to not deprecate features during bugfix releases, but in this case we believe it makes sense as we are
2360+
Our policy is to not deprecate features during bug-fix releases, but in this case we believe it makes sense as we are
23612361
only documenting it as deprecated, without issuing warnings which might potentially break test suites. This will get
23622362
the word out that hook implementers should not use this parameter at all.
23632363

@@ -5380,7 +5380,7 @@ time or change existing behaviors in order to make them less surprising/more use
53805380
Thanks Daniel Grunwald for the report and Bruno Oliveira for the PR.
53815381

53825382
- (experimental) adapt more SEMVER style versioning and change meaning of
5383-
master branch in git repo: "master" branch now keeps the bugfixes, changes
5383+
master branch in git repo: "master" branch now keeps the bug fixes, changes
53845384
aimed for micro releases. "features" branch will only be released
53855385
with minor or major pytest releases.
53865386

doc/en/development_guide.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ Branches
1919

2020
We have two long term branches:
2121

22-
* ``master``: contains the code for the next bugfix release.
22+
* ``master``: contains the code for the next bug-fix release.
2323
* ``features``: contains the code with new features for the next minor release.
2424

2525
The official repository usually does not contain topic branches, developers and contributors should create topic

doc/en/example/costlysetup/conftest.py

Lines changed: 0 additions & 20 deletions
This file was deleted.

doc/en/example/costlysetup/sub_a/__init__.py

Lines changed: 0 additions & 1 deletion
This file was deleted.

doc/en/example/costlysetup/sub_a/test_quick.py

Lines changed: 0 additions & 2 deletions
This file was deleted.

doc/en/example/costlysetup/sub_b/__init__.py

Lines changed: 0 additions & 1 deletion
This file was deleted.

doc/en/example/costlysetup/sub_b/test_two.py

Lines changed: 0 additions & 6 deletions
This file was deleted.

doc/en/fixture.rst

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1042,11 +1042,13 @@ file:
10421042
import pytest
10431043
10441044
1045-
@pytest.fixture()
1045+
@pytest.fixture
10461046
def cleandir():
1047+
old_cwd = os.getcwd()
10471048
newpath = tempfile.mkdtemp()
10481049
os.chdir(newpath)
10491050
yield
1051+
os.chdir(old_cwd)
10501052
shutil.rmtree(newpath)
10511053
10521054
and declare its use in a test module via a ``usefixtures`` marker:

scripts/release.minor.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ The pytest team is proud to announce the {version} release!
66
pytest is a mature Python testing tool with more than a 2000 tests
77
against itself, passing on many different interpreters and platforms.
88

9-
This release contains a number of bugs fixes and improvements, so users are encouraged
9+
This release contains a number of bug fixes and improvements, so users are encouraged
1010
to take a look at the CHANGELOG:
1111

1212
https://docs.pytest.org/en/latest/changelog.html
@@ -15,7 +15,7 @@ For complete documentation, please visit:
1515

1616
https://docs.pytest.org/en/latest/
1717

18-
As usual, you can upgrade from pypi via:
18+
As usual, you can upgrade from PyPI via:
1919

2020
pip install -U pytest
2121

@@ -24,4 +24,4 @@ Thanks to all who contributed to this release, among them:
2424
{contributors}
2525

2626
Happy testing,
27-
The Pytest Development Team
27+
The pytest Development Team

scripts/report-coverage.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,4 @@ python -m coverage xml
1515
python -m coverage report -m
1616
# Set --connect-timeout to work around https://github.com/curl/curl/issues/4461
1717
curl -S -L --connect-timeout 5 --retry 6 -s https://codecov.io/bash -o codecov-upload.sh
18-
bash codecov-upload.sh -Z -X fix -f coverage.xml
18+
bash codecov-upload.sh -Z -X fix -f coverage.xml "$@"

scripts/retry.cmd

Lines changed: 0 additions & 21 deletions
This file was deleted.

0 commit comments

Comments
 (0)