Skip to content

Commit

Permalink
Prepare to release.
Browse files Browse the repository at this point in the history
  • Loading branch information
domdfcoding committed May 14, 2021
1 parent c55a1ba commit 5de9fca
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 7 deletions.
6 changes: 6 additions & 0 deletions .bumpversion.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,21 @@ tag = True
[bumpversion:file:__pkginfo__.py]

[bumpversion:file:README.rst]
search = /v{current_version}
replace = /v{new_version}

[bumpversion:file:doc-source/index.rst]
search = /v{current_version}
replace = /v{new_version}

[bumpversion:file:attr_utils/__init__.py]

search = : str = "{current_version}"
replace = : str = "{new_version}"

[bumpversion:file:pyproject.toml]
search = version = "{current_version}"
replace = version = "{new_version}"

[bumpversion:file:setup.cfg]
search = version = {current_version}
Expand Down
8 changes: 8 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -149,3 +149,11 @@ To install with ``conda``:
$ conda install attr_utils
.. end installation
.. attention::

In v0.6.0 and above the ``pprinter`` module requires the ``pprint`` extra to be installed:

.. code-block:: bash
$ python -m pip install attr-utils[pprint]
14 changes: 7 additions & 7 deletions tests/test_output/test_output.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# 3rd party
import pytest
from bs4 import BeautifulSoup # type: ignore
from pytest_regressions.file_regression import FileRegressionFixture # type: ignore
from coincidence.regressions import AdvancedFileRegressionFixture
from sphinx_toolbox.testing import check_html_regression


Expand All @@ -14,17 +14,17 @@ def test_build(patched_app):


@pytest.mark.parametrize("page", ["annotations.html", "docstrings.html"], indirect=True)
def test_html_output(page: BeautifulSoup, file_regression: FileRegressionFixture):
check_html_regression(page, file_regression)
def test_html_output(page: BeautifulSoup, advanced_file_regression: AdvancedFileRegressionFixture):
check_html_regression(page, advanced_file_regression)


@pytest.mark.skipif(condition=sys.version_info < (3, 7), reason="Output differs in Python 3.6")
@pytest.mark.parametrize("page", ["autoattrs.html"], indirect=True)
def test_html_output_autoattrs(page: BeautifulSoup, file_regression: FileRegressionFixture):
check_html_regression(page, file_regression)
def test_html_output_autoattrs(page: BeautifulSoup, advanced_file_regression: AdvancedFileRegressionFixture):
check_html_regression(page, advanced_file_regression)


@pytest.mark.skipif(condition=sys.version_info[:2] > (3, 6), reason="Output differs in Python 3.6")
@pytest.mark.parametrize("page", ["autoattrs.html"], indirect=True)
def test_html_output_autoattrs_36(page: BeautifulSoup, file_regression: FileRegressionFixture):
check_html_regression(page, file_regression)
def test_html_output_autoattrs_36(page: BeautifulSoup, advanced_file_regression: AdvancedFileRegressionFixture):
check_html_regression(page, advanced_file_regression)

0 comments on commit 5de9fca

Please sign in to comment.