Merge pull request #1304 from nicoddemus/rst-changelog

Changelog now in rst format (2.9.0 and onward) and add rst-lint check
This commit is contained in:
Florian Bruhin 2016-01-05 14:05:53 -08:00
commit eebf5c1d2c
7 changed files with 44 additions and 37 deletions

View File

@ -9,7 +9,7 @@ env:
matrix: matrix:
- TESTENV=coveralls - TESTENV=coveralls
- TESTENV=doctesting - TESTENV=doctesting
- TESTENV=flakes - TESTENV=linting
- TESTENV=py26 - TESTENV=py26
- TESTENV=py27 - TESTENV=py27
- TESTENV=py27-cxfreeze - TESTENV=py27-cxfreeze

View File

@ -1,40 +1,49 @@
2.9.0.dev 2.9.0.dev
========= =========
New Features **New Features**
------------
* New `pytest.mark.skip` mark, which unconditional skips marked tests. * New ``pytest.mark.skip`` mark, which unconditional skips marked tests.
Thanks Michael Aquilina for the complete PR. Thanks `@MichaelAquilina`_ for the complete PR (`#1040`_).
* ``--doctest-glob`` may now be passed multiple times in the command-line. * ``--doctest-glob`` may now be passed multiple times in the command-line.
Thanks Joshua Bronson and Bruno Oliveira for the PR. Thanks `@jab`_ and `@nicoddemus`_ for the PR.
* New `-rp` and `-rP` reporting options give the summary and full output * New ``-rp`` and ``-rP`` reporting options give the summary and full output
of passing tests, respectively. Thanks to David Vierra for the PR. of passing tests, respectively. Thanks to `@codewarrior0`_ for the PR.
* New ``ALLOW_BYTES`` doctest option strips ``b`` prefixes from byte strings * New ``ALLOW_BYTES`` doctest option strips ``b`` prefixes from byte strings
in doctest output (similar to ``ALLOW_UNICODE``). in doctest output (similar to ``ALLOW_UNICODE``).
Thanks Jason R. Coombs for the request and Bruno Oliveira for the PR (#1287). Thanks `@jaraco`_ for the request and `@nicoddemus`_ for the PR (`#1287`_).
Changes **Changes**
-------
* `pytest_enter_pdb` now optionally receives the pytest config object. * ``pytest_enter_pdb`` now optionally receives the pytest config object.
Thanks Bruno Oliveira for the PR. Thanks `@nicoddemus`_ for the PR.
* fix #1226: Removed code and documentation for Python 2.5 or lower versions, * Removed code and documentation for Python 2.5 or lower versions,
including removal of the obsolete ``_pytest.assertion.oldinterpret`` module. including removal of the obsolete ``_pytest.assertion.oldinterpret`` module.
Thanks Bruno Oliveira for the PR. Thanks `@nicoddemus`_ for the PR (`#1226`_).
Bug Fixes **Bug Fixes**
---------
* fix issue #680: the -s and -c options should now work under xdist; * The ``-s`` and ``-c`` options should now work under ``xdist``;
`Config.fromdictargs` now represents its input much more faithfully. ``Config.fromdictargs`` now represents its input much more faithfully.
Thanks to Buck Evan for the complete PR. Thanks to `@bukzor`_ for the complete PR (`#680`_).
.. _#1040: https://github.com/pytest-dev/pytest/pull/1040
.. _#680: https://github.com/pytest-dev/pytest/issues/680
.. _#1287: https://github.com/pytest-dev/pytest/pull/1287
.. _#1226: https://github.com/pytest-dev/pytest/pull/1226
.. _@MichaelAquilina: https://github.com/MichaelAquilina
.. _@bukzor: https://github.com/bukzor
.. _@nicoddemus: https://github.com/nicoddemus
.. _@jab: https://github.com/jab
.. _@codewarrior0: https://github.com/codewarrior0
.. _@jaraco: https://github.com/jaraco
2.8.6.dev1 2.8.6.dev1
@ -543,7 +552,7 @@ Bug Fixes
it from the "decorator" case. Thanks Tom Viner. it from the "decorator" case. Thanks Tom Viner.
- "python_classes" and "python_functions" options now support glob-patterns - "python_classes" and "python_functions" options now support glob-patterns
for test discovery, as discussed in issue600. Thanks Ldiary Translations. for test discovery, as discussed in issue600. Thanks Ldiary Translations.
- allow to override parametrized fixtures with non-parametrized ones and vice versa (bubenkoff). - allow to override parametrized fixtures with non-parametrized ones and vice versa (bubenkoff).
@ -1757,8 +1766,7 @@ v1.3.3
v1.3.2 v1.3.2
============================================== ==============================================
New features **New features**
++++++++++++++++++
- fix issue103: introduce py.test.raises as context manager, examples:: - fix issue103: introduce py.test.raises as context manager, examples::
@ -1793,8 +1801,7 @@ New features
- introduce '--junitprefix=STR' option to prepend a prefix - introduce '--junitprefix=STR' option to prepend a prefix
to all reports in the junitxml file. to all reports in the junitxml file.
Bug fixes / Maintenance **Bug fixes**
++++++++++++++++++++++++++
- make tests and the ``pytest_recwarn`` plugin in particular fully compatible - make tests and the ``pytest_recwarn`` plugin in particular fully compatible
to Python2.7 (if you use the ``recwarn`` funcarg warnings will be enabled so that to Python2.7 (if you use the ``recwarn`` funcarg warnings will be enabled so that
@ -1832,8 +1839,7 @@ Bug fixes / Maintenance
v1.3.1 v1.3.1
============================================= =============================================
New features **New features**
++++++++++++++++++
- issue91: introduce new py.test.xfail(reason) helper - issue91: introduce new py.test.xfail(reason) helper
to imperatively mark a test as expected to fail. Can to imperatively mark a test as expected to fail. Can
@ -1871,8 +1877,7 @@ New features
course requires that your application and tests are properly teared course requires that your application and tests are properly teared
down and don't have global state. down and don't have global state.
Fixes / Maintenance **Bug Fixes**
++++++++++++++++++++++
- improved traceback presentation: - improved traceback presentation:
- improved and unified reporting for "--tb=short" option - improved and unified reporting for "--tb=short" option
@ -2108,7 +2113,7 @@ v1.1.0
- try harder to have deprecation warnings for py.compat.* accesses - try harder to have deprecation warnings for py.compat.* accesses
report a correct location report a correct location
v1.0.2 v1.0.3
============================================= =============================================
* adjust and improve docs * adjust and improve docs

View File

@ -179,10 +179,10 @@ but here is a simple overview:
You need to have Python 2.7 and 3.5 available in your system. Now You need to have Python 2.7 and 3.5 available in your system. Now
running tests is as simple as issuing this command:: running tests is as simple as issuing this command::
$ python runtox.py -e py27,py35,flakes $ python runtox.py -e linting,py27,py35
This command will run tests via the "tox" tool against Python 2.7 and 3.5 This command will run tests via the "tox" tool against Python 2.7 and 3.5
and also perform "flakes" coding-style checks. ``runtox.py`` is and also perform "lint" coding-style checks. ``runtox.py`` is
a thin wrapper around ``tox`` which installs from a development package a thin wrapper around ``tox`` which installs from a development package
index where newer (not yet released to pypi) versions of dependencies index where newer (not yet released to pypi) versions of dependencies
(especially ``py``) might be present. (especially ``py``) might be present.

View File

@ -1,4 +1,4 @@
include CHANGELOG include CHANGELOG.rst
include LICENSE include LICENSE
include AUTHORS include AUTHORS

View File

@ -8,7 +8,7 @@ build: false # Not a C# project, build stuff at the test step instead.
test_script: test_script:
- 'set TESTENVS= - 'set TESTENVS=
flakes, linting,
py26, py26,
py27, py27,
py33, py33,

View File

@ -4,4 +4,4 @@
Changelog history Changelog history
================================= =================================
.. include:: ../../CHANGELOG .. include:: ../../CHANGELOG.rst

View File

@ -2,7 +2,7 @@
minversion=2.0 minversion=2.0
distshare={homedir}/.tox/distshare distshare={homedir}/.tox/distshare
envlist= envlist=
flakes,py26,py27,py33,py34,py35,pypy, linting,py26,py27,py33,py34,py35,pypy,
{py27,py35}-{pexpect,xdist,trial}, {py27,py35}-{pexpect,xdist,trial},
py27-nobyte,doctesting,py27-cxfreeze py27-nobyte,doctesting,py27-cxfreeze
@ -31,10 +31,12 @@ commands=
[testenv:genscript] [testenv:genscript]
commands= py.test --genscript=pytest1 commands= py.test --genscript=pytest1
[testenv:flakes] [testenv:linting]
basepython = python2.7 basepython = python2.7
deps = flake8 deps = flake8
restructuredtext_lint
commands = flake8 pytest.py _pytest testing commands = flake8 pytest.py _pytest testing
rst-lint CHANGELOG.rst
[testenv:py27-xdist] [testenv:py27-xdist]
deps=pytest-xdist>=1.13 deps=pytest-xdist>=1.13