From d6d8d5b9d1198d11e068d99b027c8d8e30bf0afd Mon Sep 17 00:00:00 2001 From: Floris Bruynooghe Date: Thu, 30 Apr 2015 22:54:43 +0100 Subject: [PATCH 1/5] Prepare docs for bugfix release --HG-- branch : pytest-2.7 --- doc/en/announce/index.txt | 2 ++ doc/en/announce/release-2.7.1.txt | 58 +++++++++++++++++++++++++++++++ 2 files changed, 60 insertions(+) create mode 100644 doc/en/announce/release-2.7.1.txt diff --git a/doc/en/announce/index.txt b/doc/en/announce/index.txt index 244bc834f..884308a7f 100644 --- a/doc/en/announce/index.txt +++ b/doc/en/announce/index.txt @@ -5,6 +5,8 @@ Release announcements .. toctree:: :maxdepth: 2 + release-2.7.1 + release-2.7.0 release-2.6.3 release-2.6.2 release-2.6.1 diff --git a/doc/en/announce/release-2.7.1.txt b/doc/en/announce/release-2.7.1.txt new file mode 100644 index 000000000..cd37cad0c --- /dev/null +++ b/doc/en/announce/release-2.7.1.txt @@ -0,0 +1,58 @@ +pytest-2.7.1: bug fixes +======================= + +pytest is a mature Python testing tool with more than a 1100 tests +against itself, passing on many different interpreters and platforms. +This release is supposed to be drop-in compatible to 2.7.0. + +See below for the changes and see docs at: + + http://pytest.org + +As usual, you can upgrade from pypi via:: + + pip install -U pytest + +Thanks to all who contributed to this release, among them: + + Bruno Oliveira + Holger Krekel + Ionel Maries Cristian + Floris Bruynooghe + +Happy testing, +The py.test Development Team + + +2.7.1 (compared to 2.7.0) +------------------------- + +- fix issue731: do not get confused by the braces which may be present + and unbalanced in an object's repr while collapsing False + explanations. Thanks Carl Meyer for the report and test case. + +- fix issue553: properly handling inspect.getsourcelines failures in + FixtureLookupError which would lead to to an internal error, + obfuscating the original problem. Thanks talljosh for initial + diagnose/patch and Bruno Oliveira for final patch. + +- fix issue660: properly report scope-mismatch-access errors + independently from ordering of fixture arguments. Also + avoid the pytest internal traceback which does not provide + information to the user. Thanks Holger Krekel. + +- streamlined and documented release process. Also all versions + (in setup.py and documentation generation) are now read + from _pytest/__init__.py. Thanks Holger Krekel. + +- fixed docs to remove the notion that yield-fixtures are experimental. + They are here to stay :) Thanks Bruno Oliveira. + +- Support building wheels by using environment markers for the + requirements. Thanks Ionel Maries Cristian. + +- fixed regression to 2.6.4 which surfaced e.g. in lost stdout capture printing + when tests raised SystemExit. Thanks Holger Krekel. + +- reintroduced _pytest fixture of the pytester plugin which is used + at least by pytest-xdist. From 652a353319d2016f53969e0b0dab2122743b6cd6 Mon Sep 17 00:00:00 2001 From: Floris Bruynooghe Date: Thu, 30 Apr 2015 22:55:01 +0100 Subject: [PATCH 2/5] Some small corrections to release process --HG-- branch : pytest-2.7 --- HOWTORELEASE.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/HOWTORELEASE.rst b/HOWTORELEASE.rst index 4e76ca536..f4eed836b 100644 --- a/HOWTORELEASE.rst +++ b/HOWTORELEASE.rst @@ -2,11 +2,11 @@ How to release pytest (draft) -------------------------------------------- -1. bump version numbers in setup.py and pytest/__init__.py +1. bump version numbers in pytest/__init__.py (setup.py reads it) 2. check and finalize CHANGELOG -3. write doc/en/announce/pytest-VERSION.txt and include +3. write doc/en/announce/release-VERSION.txt and include it in doc/en/announce/index.txt 4. use devpi for uploading a release tarball to a staging area: From 129549fd5be59ccb5371da14e89995118c4a3a8c Mon Sep 17 00:00:00 2001 From: Floris Bruynooghe Date: Fri, 1 May 2015 00:27:04 +0100 Subject: [PATCH 3/5] Some more tweaks of how to release --HG-- branch : pytest-2.7 --- HOWTORELEASE.rst | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/HOWTORELEASE.rst b/HOWTORELEASE.rst index f4eed836b..77524079b 100644 --- a/HOWTORELEASE.rst +++ b/HOWTORELEASE.rst @@ -15,7 +15,7 @@ How to release pytest (draft) 5. run from multiple machines: - ``devpi use https://devpi.net/USER/dev`` - - ``devpi test pytest-VERSION`` + - ``devpi test pytest==VERSION`` 6. check that tests pass for relevant combinations with ``devpi list pytest`` @@ -25,14 +25,15 @@ How to release pytest (draft) which is ok (tox does not support skipping on per-platform basis yet). -7. XXX "regen docs" (not easy to do currently as it requires - a development version of the regendoc tool from ronny) +7. Regenerate the docs using the toplevel makefile:: + make docs -8. go to "doc/en" and upload docs with "make install" - (the latter requires ssh-login permissions on pytest.org - because it uses rsync). Note that the "install" target of - doc/en/Makefile defines where the rsync goes to, typically - to the "latest" section of pytest.org. +8. Upload the docs using the toplevel makefile:: + make upload-docs + This requires ssh-login permission on pytest.org because it uses + rsync. + Note that the "install" target of doc/en/Makefile defines where the + rsync goes to, typically to the "latest" section of pytest.org. 9. publish to pypi "devpi push pytest-2.6.2 pypi:NAME" where NAME is the name of pypi.python.org as configured in your From 11ad61ba07b52467d704d898365dab0cbadefe76 Mon Sep 17 00:00:00 2001 From: Floris Bruynooghe Date: Fri, 1 May 2015 00:27:47 +0100 Subject: [PATCH 4/5] Use current regendocs location --HG-- branch : pytest-2.7 --- requirements-docs.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements-docs.txt b/requirements-docs.txt index 9a7a1049f..a17bba710 100644 --- a/requirements-docs.txt +++ b/requirements-docs.txt @@ -1,2 +1,2 @@ sphinx==1.2.3 -hg+ssh://hg@bitbucket.org/RonnyPfannschmidt/regendoc#egg=regendoc +hg+ssh://hg@bitbucket.org/pytest-dev/regendoc#egg=regendoc From 5a06330f61d4198c2b4af4b3ce052cdd895acf16 Mon Sep 17 00:00:00 2001 From: Eric Siegerman Date: Fri, 1 May 2015 11:18:17 -0400 Subject: [PATCH 5/5] Doc typo --HG-- branch : pytest-2.7 --- doc/en/example/markers.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/en/example/markers.txt b/doc/en/example/markers.txt index fac0eeb99..5f7a17ae2 100644 --- a/doc/en/example/markers.txt +++ b/doc/en/example/markers.txt @@ -55,8 +55,8 @@ Or the inverse, running all tests except the webtest ones:: ================= 1 tests deselected by "-m 'not webtest'" ================= ================== 3 passed, 1 deselected in 0.01 seconds ================== -Selecing tests based on their node ID -------------------------------------- +Selecting tests based on their node ID +-------------------------------------- You can provide one or more :ref:`node IDs ` as positional arguments to select only specified tests. This makes it easy to select