Hello community,

here is the log from the commit of package python-tox-travis for 
openSUSE:Factory checked in at 2019-09-13 15:02:06
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-tox-travis (Old)
 and      /work/SRC/openSUSE:Factory/.python-tox-travis.new.7948 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-tox-travis"

Fri Sep 13 15:02:06 2019 rev:2 rq:730450 version:0.12

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-tox-travis/python-tox-travis.changes      
2019-04-05 11:57:20.918365877 +0200
+++ 
/work/SRC/openSUSE:Factory/.python-tox-travis.new.7948/python-tox-travis.changes
    2019-09-13 15:03:45.569276620 +0200
@@ -1,0 +2,6 @@
+Thu Sep 12 17:24:38 UTC 2019 - Tomáš Chvátal <[email protected]>
+
+- Add patch to build with new tox releases:
+  * enviroment.patch
+
+-------------------------------------------------------------------

New:
----
  enviroment.patch

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

Other differences:
------------------
++++++ python-tox-travis.spec ++++++
--- /var/tmp/diff_new_pack.oucgDL/_old  2019-09-13 15:03:45.985276531 +0200
+++ /var/tmp/diff_new_pack.oucgDL/_new  2019-09-13 15:03:45.989276530 +0200
@@ -23,19 +23,17 @@
 Summary:        Seamless integration of Tox into Travis CI
 License:        MIT
 Group:          Development/Languages/Python
-Url:            https://github.com/tox-dev/tox-travis
+URL:            https://github.com/tox-dev/tox-travis
 Source:         
https://files.pythonhosted.org/packages/source/t/tox-travis/tox-travis-%{version}.tar.gz
+Patch0:         enviroment.patch
 BuildRequires:  %{python_module pytest-mock}
 BuildRequires:  %{python_module pytest}
 BuildRequires:  %{python_module setuptools}
-BuildRequires:  python-rpm-macros
-# SECTION test requirements
 BuildRequires:  %{python_module tox >= 2.0}
-# /SECTION
 BuildRequires:  fdupes
+BuildRequires:  python-rpm-macros
 Requires:       python-tox >= 2.0
 BuildArch:      noarch
-
 %python_subpackages
 
 %description
@@ -43,6 +41,7 @@
 
 %prep
 %setup -q -n tox-travis-%{version}
+%patch0 -p1
 
 %build
 %python_build
@@ -55,7 +54,7 @@
 # Without isolating the python and tox binaries, py37 would polute the py27
 # site-packages, probably related to how tox loads all available pythons.
 export PYTHONDONTWRITEBYTECODE=1
-%python_expand PYTHONPATH=%{buildroot}%{$python_sitelib} $python -m pytest
+%pytest
 
 %files %{python_files}
 %doc README.rst docs/*.rst

++++++ enviroment.patch ++++++
>From 8c57631a869da172d103141c17f374f031b2d296 Mon Sep 17 00:00:00 2001
From: Ryan Hiebert <[email protected]>
Date: Tue, 30 Jul 2019 11:24:44 -0500
Subject: [PATCH] Override default_envlist to fix tests (#137)

* Override default_envlist to fix tests

* Upgrade pip for AppVeyor

Lifted from https://github.com/rpkilby/tox-factor
---
 .appveyor.yml           | 5 +++--
 src/tox_travis/hooks.py | 4 +++-
 tests/test_envlist.py   | 8 ++++++++
 3 files changed, 14 insertions(+), 3 deletions(-)

diff --git a/src/tox_travis/hooks.py b/src/tox_travis/hooks.py
index 9b84632..e4661dd 100644
--- a/src/tox_travis/hooks.py
+++ b/src/tox_travis/hooks.py
@@ -44,7 +44,9 @@ def tox_configure(config):
                   'envs that Tox should run are declared in the tox config.',
                   file=sys.stderr)
             autogen_envconfigs(config, undeclared)
-        config.envlist = envlist
+        # Also set envlist_default to allow us to inspect outcomes
+        # via tox -l in the tests, until a better solution arrives.
+        config.envlist_default = config.envlist = envlist
 
     # Override ignore_outcomes
     if override_ignore_outcome(ini):
diff --git a/tests/test_envlist.py b/tests/test_envlist.py
index 3de3cf3..4a3b167 100644
--- a/tests/test_envlist.py
+++ b/tests/test_envlist.py
@@ -2,6 +2,7 @@
 import py
 import re
 import subprocess
+import pytest
 from contextlib import contextmanager
 
 
@@ -293,6 +294,13 @@ def test_travis_override(self, tmpdir, monkeypatch):
         with self.configure(tmpdir, monkeypatch, tox_ini, 'CPython', 2, 7):
             assert self.tox_envs() == ['py27', 'docs']
 
+    # XFAIL because of changes to tox -l to make it show declared envs
+    # rather than the envs that will actually run, which is what we
+    # need to test. When a better option is available, we can get this
+    # test working again.
+    #
+    # # https://github.com/tox-dev/tox/pull/1284#issuecomment-488411553
+    @pytest.mark.xfail
     def test_respect_overridden_toxenv(self, tmpdir, monkeypatch):
         """Ensure that TOXENV if given is not changed."""
         with self.configure(tmpdir, monkeypatch, tox_ini, 'CPython', 2, 7):

Reply via email to