Hello community,

here is the log from the commit of package python-pytest-html for 
openSUSE:Factory checked in at 2019-02-27 15:10:05
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-pytest-html (Old)
 and      /work/SRC/openSUSE:Factory/.python-pytest-html.new.28833 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-pytest-html"

Wed Feb 27 15:10:05 2019 rev:2 rq:679737 version:1.20.0

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-pytest-html/python-pytest-html.changes    
2018-11-29 22:58:18.707660855 +0100
+++ 
/work/SRC/openSUSE:Factory/.python-pytest-html.new.28833/python-pytest-html.changes
 2019-02-27 15:10:06.418374496 +0100
@@ -1,0 +2,15 @@
+Wed Feb 27 08:13:53 UTC 2019 - Tomáš Chvátal <[email protected]>
+
+- Fix typo in the ansi2html Requires
+
+-------------------------------------------------------------------
+Thu Feb 14 13:01:48 UTC 2019 - Tomáš Chvátal <[email protected]>
+
+- Update to 1.20.0:
+  * Tests running with Pytest 4.0 and Python 3.7
+  * Stop filtering out falsy environment values (#175)
+  * Removed extraneous space from anchor tag (@chardbury)
+  * Always define __version__ even if get_distribution() fails (@nicoddemus)
+  * Refactor css config code (@crazymerlyn)
+
+-------------------------------------------------------------------

Old:
----
  pytest-html-1.19.0.tar.gz

New:
----
  pytest-html-1.20.0.tar.gz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-pytest-html.spec ++++++
--- /var/tmp/diff_new_pack.QZ4zOX/_old  2019-02-27 15:10:07.142374263 +0100
+++ /var/tmp/diff_new_pack.QZ4zOX/_new  2019-02-27 15:10:07.146374261 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package python-pytest-html
 #
-# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -18,7 +18,7 @@
 
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
 Name:           python-pytest-html
-Version:        1.19.0
+Version:        1.20.0
 Release:        0
 Summary:        pytest plugin for generating HTML reports
 License:        MPL-2.0
@@ -29,12 +29,17 @@
 BuildRequires:  %{python_module setuptools}
 BuildRequires:  fdupes
 BuildRequires:  python-rpm-macros
+Requires:       python-ansi2html
 Requires:       python-pytest >= 3.0
 Requires:       python-pytest-metadata
 BuildArch:      noarch
 # SECTION test requirements
+BuildRequires:  %{python_module ansi2html}
 BuildRequires:  %{python_module pytest >= 3.0}
 BuildRequires:  %{python_module pytest-metadata}
+BuildRequires:  %{python_module pytest-mock}
+BuildRequires:  %{python_module pytest-rerunfailures}
+BuildRequires:  %{python_module pytest-xdist}
 # /SECTION
 %python_subpackages
 
@@ -52,8 +57,7 @@
 %python_expand %fdupes %{buildroot}%{$python_sitelib}
 
 %check
-# Upstream does not really care about test results, many do fail or error out
-%python_expand PYTHONPATH=%{buildroot}%{$python_sitelib} 
py.test-%{$python_bin_suffix} -v || :
+%python_expand PYTHONPATH=%{buildroot}%{$python_sitelib} 
py.test-%{$python_bin_suffix} -v
 
 %files %{python_files}
 %license LICENSE

++++++ pytest-html-1.19.0.tar.gz -> pytest-html-1.20.0.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pytest-html-1.19.0/.gitignore 
new/pytest-html-1.20.0/.gitignore
--- old/pytest-html-1.19.0/.gitignore   2018-06-01 11:54:18.000000000 +0200
+++ new/pytest-html-1.20.0/.gitignore   2019-01-14 18:53:41.000000000 +0100
@@ -12,6 +12,7 @@
 # IDE Specific files
 ### Pycharm IDE - Jetbrains
 .idea/*
+.vscode/*
 
 ### PyDev IDE - Eclipse
 .metadata
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pytest-html-1.19.0/.travis.yml 
new/pytest-html-1.20.0/.travis.yml
--- old/pytest-html-1.19.0/.travis.yml  2018-06-01 11:54:18.000000000 +0200
+++ new/pytest-html-1.20.0/.travis.yml  2019-01-14 18:53:41.000000000 +0100
@@ -3,10 +3,13 @@
   include:
     - stage:
       language: node_js
+      node_js: node
       install: npm install [email protected] grunt-cli grunt 
grunt-contrib-qunit
       script: grunt test
     - stage:
-      python: 3.6
+      python: 3.7
+      dist: xenial
+      sudo: required
       env: TOXENV=flake8
     - stage:
       python: 2.7
@@ -21,6 +24,16 @@
       python: 3.6
       env: TOXENV=py36-ansi2html
     - stage:
+      python: 3.7
+      dist: xenial
+      sudo: required
+      env: TOXENV=py37
+    - stage:
+      python: 3.7
+      dist: xenial
+      sudo: required
+      env: TOXENV=py37-ansi2html
+    - stage:
       python: pypy
       env: TOXENV=pypy
     - stage:
@@ -33,7 +46,9 @@
       python: pypy3
       env: TOXENV=pypy3-ansi2html
     - stage: deploy
-      python: 3.6
+      python: 3.7
+      dist: xenial
+      sudo: required
       install: skip
       script: skip
       deploy:
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pytest-html-1.19.0/CHANGES.rst 
new/pytest-html-1.20.0/CHANGES.rst
--- old/pytest-html-1.19.0/CHANGES.rst  2018-06-01 11:54:18.000000000 +0200
+++ new/pytest-html-1.20.0/CHANGES.rst  2019-01-14 18:53:41.000000000 +0100
@@ -1,6 +1,21 @@
 Release Notes
 -------------
 
+**1.20.0 (2019-01-14)**
+
+* Tests running with Pytest 4.0 and Python 3.7
+
+* Stop filtering out falsy environment values (`#175 
<https://github.com/pytest-dev/pytest-html/issues/175>`_)
+
+  * Thanks to `@jknotts <https://github.com/jknotts>`_ for reporting the issue
+    and to `@crazymerlyn <http://github.com/crazymerlyn>`_ for providing a fix
+
+* Removed extraneous space from anchor tag (`@chardbury 
<https://github.com/chardbury>`_)
+
+* Always define __version__ even if get_distribution() fails (`@nicoddemus 
<https://github.com/nicoddemus>`_)
+
+* Refactor css config code (`@crazymerlyn <http://github.com/crazymerlyn>`_)
+
 **1.19.0 (2018-06-01)**
 
 * Allow collapsed outcomes to be configured by using a query parameter
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pytest-html-1.19.0/PKG-INFO 
new/pytest-html-1.20.0/PKG-INFO
--- old/pytest-html-1.19.0/PKG-INFO     2018-06-01 11:54:52.000000000 +0200
+++ new/pytest-html-1.20.0/PKG-INFO     2019-01-14 18:54:02.000000000 +0100
@@ -1,6 +1,6 @@
 Metadata-Version: 1.1
 Name: pytest-html
-Version: 1.19.0
+Version: 1.20.0
 Summary: pytest plugin for generating HTML reports
 Home-page: https://github.com/pytest-dev/pytest-html
 Author: Dave Hunt
@@ -275,6 +275,20 @@
         
         .. _`tox`: https://tox.readthedocs.org/en/latest/
         
+        Releasing a new version
+        -----------------------
+        
+        Follow these steps to release a new version of the project:
+        
+        1. Update your local master with the upstream master (``git pull 
--rebase upstream master``)
+        2. Create a new branch and update ``CHANGES.rst`` with the new 
version, today's date, and all changes/new features
+        3. Commit and push the new branch and then create a new pull request
+        4. Wait for tests and reviews and then merge the branch
+        5. Once merged, update your local master again (``git pull --rebase 
upstream master``)
+        6. Tag the release with the new release version (``git tag v<new 
tag>``)
+        7. Push the tag (``git push upstream --tags``)
+        8. Done. You can monitor the progress on `Travis 
<https://travis-ci.org/pytest-dev/pytest-html/>`_
+        
         Resources
         ---------
         
@@ -299,3 +313,4 @@
 Classifier: Programming Language :: Python
 Classifier: Programming Language :: Python :: 2.7
 Classifier: Programming Language :: Python :: 3.6
+Classifier: Programming Language :: Python :: 3.7
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pytest-html-1.19.0/README.rst 
new/pytest-html-1.20.0/README.rst
--- old/pytest-html-1.19.0/README.rst   2018-06-01 11:54:18.000000000 +0200
+++ new/pytest-html-1.20.0/README.rst   2019-01-14 18:53:41.000000000 +0100
@@ -267,6 +267,20 @@
 
 .. _`tox`: https://tox.readthedocs.org/en/latest/
 
+Releasing a new version
+-----------------------
+
+Follow these steps to release a new version of the project:
+
+1. Update your local master with the upstream master (``git pull --rebase 
upstream master``)
+2. Create a new branch and update ``CHANGES.rst`` with the new version, 
today's date, and all changes/new features
+3. Commit and push the new branch and then create a new pull request
+4. Wait for tests and reviews and then merge the branch
+5. Once merged, update your local master again (``git pull --rebase upstream 
master``)
+6. Tag the release with the new release version (``git tag v<new tag>``)
+7. Push the tag (``git push upstream --tags``)
+8. Done. You can monitor the progress on `Travis 
<https://travis-ci.org/pytest-dev/pytest-html/>`_
+
 Resources
 ---------
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pytest-html-1.19.0/pytest_html/__init__.py 
new/pytest-html-1.20.0/pytest_html/__init__.py
--- old/pytest-html-1.19.0/pytest_html/__init__.py      2018-06-01 
11:54:18.000000000 +0200
+++ new/pytest-html-1.20.0/pytest_html/__init__.py      2019-01-14 
18:53:41.000000000 +0100
@@ -5,6 +5,6 @@
     __version__ = get_distribution(__name__).version
 except DistributionNotFound:
     # package is not installed
-    pass
+    __version__ = 'unknown'
 
 __pypi_url__ = 'https://pypi.python.org/pypi/pytest-html'
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pytest-html-1.19.0/pytest_html/plugin.py 
new/pytest-html-1.20.0/pytest_html/plugin.py
--- old/pytest-html-1.19.0/pytest_html/plugin.py        2018-06-01 
11:54:18.000000000 +0200
+++ new/pytest-html-1.20.0/pytest_html/plugin.py        2019-01-14 
18:53:41.000000000 +0100
@@ -56,14 +56,14 @@
                     'that the report may not render or function where CSP '
                     'restrictions are in place (see '
                     'https://developer.mozilla.org/docs/Web/Security/CSP)')
-    group.addoption('--css', action='append', metavar='path',
+    group.addoption('--css', action='append', metavar='path', default=[],
                     help='append given css file content to report style file.')
 
 
 def pytest_configure(config):
     htmlpath = config.getoption('htmlpath')
     if htmlpath:
-        for csspath in config.getoption('css') or []:
+        for csspath in config.getoption('css'):
             open(csspath)
         if not hasattr(config, 'slaveinput'):
             # prevent opening htmlpath on slave nodes (xdist)
@@ -329,7 +329,7 @@
             self.style_css += '\n'.join(ansi_css)
 
         # <DF> Add user-provided CSS
-        for path in self.config.getoption('css') or []:
+        for path in self.config.getoption('css'):
             self.style_css += '\n/******************************'
             self.style_css += '\n * CUSTOM CSS'
             self.style_css += '\n * {}'.format(path)
@@ -431,10 +431,10 @@
         body = html.body(
             html.script(raw(main_js)),
             html.h1(os.path.basename(session.config.option.htmlpath)),
-            html.p('Report generated on {0} at {1} by'.format(
+            html.p('Report generated on {0} at {1} by '.format(
                 generated.strftime('%d-%b-%Y'),
                 generated.strftime('%H:%M:%S')),
-                html.a(' pytest-html', href=__pypi_url__),
+                html.a('pytest-html', href=__pypi_url__),
                 ' v{0}'.format(__version__)),
             onLoad='init()')
 
@@ -466,7 +466,7 @@
         environment = [html.h2('Environment')]
         rows = []
 
-        keys = [k for k in metadata.keys() if metadata[k]]
+        keys = [k for k in metadata.keys()]
         if not isinstance(metadata, OrderedDict):
             keys.sort()
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pytest-html-1.19.0/pytest_html.egg-info/PKG-INFO 
new/pytest-html-1.20.0/pytest_html.egg-info/PKG-INFO
--- old/pytest-html-1.19.0/pytest_html.egg-info/PKG-INFO        2018-06-01 
11:54:52.000000000 +0200
+++ new/pytest-html-1.20.0/pytest_html.egg-info/PKG-INFO        2019-01-14 
18:54:01.000000000 +0100
@@ -1,6 +1,6 @@
 Metadata-Version: 1.1
 Name: pytest-html
-Version: 1.19.0
+Version: 1.20.0
 Summary: pytest plugin for generating HTML reports
 Home-page: https://github.com/pytest-dev/pytest-html
 Author: Dave Hunt
@@ -275,6 +275,20 @@
         
         .. _`tox`: https://tox.readthedocs.org/en/latest/
         
+        Releasing a new version
+        -----------------------
+        
+        Follow these steps to release a new version of the project:
+        
+        1. Update your local master with the upstream master (``git pull 
--rebase upstream master``)
+        2. Create a new branch and update ``CHANGES.rst`` with the new 
version, today's date, and all changes/new features
+        3. Commit and push the new branch and then create a new pull request
+        4. Wait for tests and reviews and then merge the branch
+        5. Once merged, update your local master again (``git pull --rebase 
upstream master``)
+        6. Tag the release with the new release version (``git tag v<new 
tag>``)
+        7. Push the tag (``git push upstream --tags``)
+        8. Done. You can monitor the progress on `Travis 
<https://travis-ci.org/pytest-dev/pytest-html/>`_
+        
         Resources
         ---------
         
@@ -299,3 +313,4 @@
 Classifier: Programming Language :: Python
 Classifier: Programming Language :: Python :: 2.7
 Classifier: Programming Language :: Python :: 3.6
+Classifier: Programming Language :: Python :: 3.7
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pytest-html-1.19.0/setup.py 
new/pytest-html-1.20.0/setup.py
--- old/pytest-html-1.19.0/setup.py     2018-06-01 11:54:18.000000000 +0200
+++ new/pytest-html-1.20.0/setup.py     2019-01-14 18:53:41.000000000 +0100
@@ -29,4 +29,6 @@
           'Topic :: Utilities',
           'Programming Language :: Python',
           'Programming Language :: Python :: 2.7',
-          'Programming Language :: Python :: 3.6'])
+          'Programming Language :: Python :: 3.6',
+          'Programming Language :: Python :: 3.7',
+      ])
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pytest-html-1.19.0/testing/test_pytest_html.py 
new/pytest-html-1.20.0/testing/test_pytest_html.py
--- old/pytest-html-1.19.0/testing/test_pytest_html.py  2018-06-01 
11:54:18.000000000 +0200
+++ new/pytest-html-1.20.0/testing/test_pytest_html.py  2019-01-14 
18:53:41.000000000 +0100
@@ -29,7 +29,7 @@
 def assert_results_by_outcome(html, test_outcome, test_outcome_number,
                               label=None):
     # Asserts if the test number of this outcome in the summary is correct
-    regex_summary = '(\d)+ {0}'.format(label or test_outcome)
+    regex_summary = r'(\d)+ {0}'.format(label or test_outcome)
     assert int(re.search(regex_summary, html).group(1)) == test_outcome_number
 
     # Asserts if the generated checkbox of this outcome is correct
@@ -47,12 +47,12 @@
 def assert_results(html, tests=1, duration=None, passed=1, skipped=0, failed=0,
                    errors=0, xfailed=0, xpassed=0, rerun=0):
     # Asserts total amount of tests
-    total_tests = re.search('(\d)+ tests ran', html)
+    total_tests = re.search(r'(\d)+ tests ran', html)
     assert int(total_tests.group(1)) == tests
 
     # Asserts tests running duration
     if duration is not None:
-        tests_duration = re.search('([\d,.]+) seconds', html)
+        tests_duration = re.search(r'([\d,.]+) seconds', html)
         assert float(tests_duration.group(1)) >= float(duration)
 
     # Asserts by outcome
@@ -76,7 +76,7 @@
         result, html = run(testdir)
         assert result.ret == 0
         assert_results(html, duration=sleep)
-        p = re.compile('<td class="col-duration">([\d,.]+)</td>')
+        p = re.compile(r'<td class="col-duration">([\d,.]+)</td>')
         m = p.search(html)
         assert float(m.group(1)) >= sleep
 
@@ -140,7 +140,9 @@
 
     def test_setup_error(self, testdir):
         testdir.makepyfile("""
-            def pytest_funcarg__arg(request):
+            import pytest
+            @pytest.fixture
+            def arg(request):
                 raise ValueError()
             def test_function(arg):
                 pass
@@ -531,7 +533,7 @@
         content = tuple(str(random.random()) for i in range(10))
         content += tuple(random.random() for i in range(10))
         expected_content = ', '.join((str(i) for i in content))
-        expected_html_re = '<td>content</td>\n\s+<td>{}</td>'.format(
+        expected_html_re = r'<td>content</td>\n\s+<td>{}</td>'.format(
             expected_content
         )
         testdir.makeconftest("""
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pytest-html-1.19.0/tox.ini 
new/pytest-html-1.20.0/tox.ini
--- old/pytest-html-1.19.0/tox.ini      2018-06-01 11:54:18.000000000 +0200
+++ new/pytest-html-1.20.0/tox.ini      2019-01-14 18:53:41.000000000 +0100
@@ -4,7 +4,7 @@
 # and then run "tox" from this directory.
 
 [tox]
-envlist = py{27,36,py,py3}{,-ansi2html}, flake8
+envlist = py{27,36,37,py,py3}{,-ansi2html}, flake8
 
 [testenv]
 commands = pytest -v -r a {posargs}


Reply via email to