Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-sybil for openSUSE:Factory checked in at 2022-02-17 23:39:57 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-sybil (Old) and /work/SRC/openSUSE:Factory/.python-sybil.new.1958 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-sybil" Thu Feb 17 23:39:57 2022 rev:13 rq:955436 version:3.0.0 Changes: -------- --- /work/SRC/openSUSE:Factory/python-sybil/python-sybil.changes 2021-12-25 20:16:27.889240775 +0100 +++ /work/SRC/openSUSE:Factory/.python-sybil.new.1958/python-sybil.changes 2022-02-17 23:40:47.751700781 +0100 @@ -1,0 +2,6 @@ +Wed Feb 16 11:44:28 UTC 2022 - Sasi Olin <[email protected]> + +- Add python-sybil-fix-ordering.diff fixing issue with tests + failing on different filesystem setups. + +------------------------------------------------------------------- New: ---- python-sybil-fix-ordering.diff ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-sybil.spec ++++++ --- /var/tmp/diff_new_pack.6KGILU/_old 2022-02-17 23:40:49.751700764 +0100 +++ /var/tmp/diff_new_pack.6KGILU/_new 2022-02-17 23:40:49.755700764 +0100 @@ -1,7 +1,7 @@ # # spec file for package python-sybil # -# Copyright (c) 2021 SUSE LLC +# Copyright (c) 2022 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -25,9 +25,12 @@ License: MIT URL: https://github.com/cjw296/sybil Source: https://files.pythonhosted.org/packages/source/s/sybil/sybil-%{version}.tar.gz +Patch0: python-sybil-fix-ordering.diff +BuildRequires: %{python_module pip} BuildRequires: %{python_module pytest >= 6.2} BuildRequires: %{python_module setuptools-git} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros Recommends: python-pytest @@ -42,12 +45,13 @@ %prep %setup -q -n sybil-%{version} sed -i '/pytest-cov/ d' setup.py +%autopatch -p1 %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitelib} %check ++++++ python-sybil-fix-ordering.diff ++++++ diff --git a/sybil/integration/unittest.py b/sybil/integration/unittest.py index 7129ddf..ce34caf 100644 --- a/sybil/integration/unittest.py +++ b/sybil/integration/unittest.py @@ -38,7 +38,7 @@ def unittest_integration(sybil: 'Sybil'): def load_tests(loader=None, tests=None, pattern=None): suite = TestSuite() - for path in sybil.path.glob('**/*'): + for path in sorted(sybil.path.glob('**/*')): if path.is_file() and sybil.should_parse(path): document = sybil.parse(path) diff --git a/tests/test_sybil.py b/tests/test_sybil.py index 74a04ea..72a5aea 100644 --- a/tests/test_sybil.py +++ b/tests/test_sybil.py @@ -243,7 +243,7 @@ def parse(document): def test_namespace(capsys): sybil = Sybil([parse], path='./samples') - documents = [sybil.parse(p) for p in sybil.path.glob('sample*.txt')] + documents = [sybil.parse(p) for p in sorted(sybil.path.glob('sample*.txt'))] actual = [] for document in documents: for example in document:
