forked from pool/python-sybil
Compare commits
20 Commits
c10426ade0
...
93654b93ef
Author | SHA256 | Date | |
---|---|---|---|
93654b93ef | |||
0825ff7507 | |||
e1c376ccdd | |||
e0bc1fbe72 | |||
ab279e9487 | |||
f8cc1d6122 | |||
dab54a51cf | |||
0379377958 | |||
2186fb2d1f | |||
910600d625 | |||
|
cdd0a2533d | ||
e8a7ade750 | |||
4126f95b11 | |||
8abfdc318e | |||
5714d8b55e | |||
9b3f7bafee | |||
767855492c | |||
19facf63e8 | |||
b7bfe4c8d0 | |||
f904c1049f |
@@ -1,3 +1,8 @@
|
||||
-------------------------------------------------------------------
|
||||
Thu Oct 3 07:46:17 UTC 2024 - Daniel Garcia <daniel.garcia@suse.com>
|
||||
|
||||
- Make seedir dependency optional for SLFO
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Jun 13 15:36:08 UTC 2024 - Dirk Müller <dmueller@suse.com>
|
||||
|
||||
|
@@ -39,12 +39,14 @@ BuildRequires: %{python_module wheel}
|
||||
%if %{with test}
|
||||
BuildRequires: %{python_module PyYAML}
|
||||
BuildRequires: %{python_module pytest >= 7.1}
|
||||
BuildRequires: %{python_module seedir}
|
||||
BuildRequires: %{python_module sybil = %{version}}
|
||||
BuildRequires: %{python_module testfixtures}
|
||||
%if 0%{?sle_version} && 0%{?sle_version} <= 150400
|
||||
BuildRequires: %{python_module dataclasses}
|
||||
%endif
|
||||
%if 0%{suse_version} > 1600
|
||||
BuildRequires: %{python_module seedir}
|
||||
%endif
|
||||
%endif
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
@@ -61,6 +63,11 @@ of the normal test run. Integration is provided for the main Python test runners
|
||||
%autosetup -p1 -n sybil-%{version}
|
||||
sed -i '/pytest-cov/ d' setup.py
|
||||
|
||||
%if 0%{suse_version} <= 1600
|
||||
# Remove seedir dependency for SLFO
|
||||
sed -i '/import seedir/d' tests/helpers.py
|
||||
%endif
|
||||
|
||||
%build
|
||||
%pyproject_wheel
|
||||
|
||||
@@ -72,7 +79,13 @@ sed -i '/pytest-cov/ d' setup.py
|
||||
|
||||
%check
|
||||
%if %{with test}
|
||||
%pytest
|
||||
|
||||
%if 0%{suse_version} <= 1600
|
||||
# Remove seedir build dependency
|
||||
test_flags="--ignore docs/patterns.rst"
|
||||
%endif
|
||||
|
||||
%pytest $test_flags
|
||||
%endif
|
||||
|
||||
%if !%{with test}
|
||||
|
Reference in New Issue
Block a user