Accepting request 1224141 from devel:languages:python
- drop black dependency from tests OBS-URL: https://build.opensuse.org/request/show/1224141 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-hypothesmith?expand=0&rev=12
This commit is contained in:
commit
d4e8d5eee3
@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Nov 14 09:46:30 UTC 2024 - Dirk Müller <dmueller@suse.com>
|
||||||
|
|
||||||
|
- drop black dependency from tests
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Tue Mar 19 07:02:34 UTC 2024 - Dirk Müller <dmueller@suse.com>
|
Tue Mar 19 07:02:34 UTC 2024 - Dirk Müller <dmueller@suse.com>
|
||||||
|
|
||||||
|
@ -16,7 +16,6 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
%{?sle15_python_module_pythons}
|
|
||||||
%global flavor @BUILD_FLAVOR@%{nil}
|
%global flavor @BUILD_FLAVOR@%{nil}
|
||||||
%if "%{flavor}" == "test"
|
%if "%{flavor}" == "test"
|
||||||
%define psuffix -test
|
%define psuffix -test
|
||||||
@ -25,6 +24,7 @@
|
|||||||
%define psuffix %{nil}
|
%define psuffix %{nil}
|
||||||
%bcond_with test
|
%bcond_with test
|
||||||
%endif
|
%endif
|
||||||
|
%{?sle15_python_module_pythons}
|
||||||
Name: python-hypothesmith%{psuffix}
|
Name: python-hypothesmith%{psuffix}
|
||||||
Version: 0.3.3
|
Version: 0.3.3
|
||||||
Release: 0
|
Release: 0
|
||||||
@ -33,7 +33,9 @@ License: MPL-2.0
|
|||||||
URL: https://github.com/Zac-HD/hypothesmith
|
URL: https://github.com/Zac-HD/hypothesmith
|
||||||
Source: https://files.pythonhosted.org/packages/source/h/hypothesmith/hypothesmith-%{version}.tar.gz
|
Source: https://files.pythonhosted.org/packages/source/h/hypothesmith/hypothesmith-%{version}.tar.gz
|
||||||
BuildRequires: %{python_module base >= 3.8}
|
BuildRequires: %{python_module base >= 3.8}
|
||||||
|
BuildRequires: %{python_module pip}
|
||||||
BuildRequires: %{python_module setuptools}
|
BuildRequires: %{python_module setuptools}
|
||||||
|
BuildRequires: %{python_module wheel}
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: python-rpm-macros
|
BuildRequires: python-rpm-macros
|
||||||
Requires: python-base >= 3.7
|
Requires: python-base >= 3.7
|
||||||
@ -41,7 +43,6 @@ Requires: python-hypothesis >= 6.93.0
|
|||||||
Requires: python-lark >= 0.10.1
|
Requires: python-lark >= 0.10.1
|
||||||
Requires: python-libcst >= 0.4.0
|
Requires: python-libcst >= 0.4.0
|
||||||
%if %{with test}
|
%if %{with test}
|
||||||
BuildRequires: %{python_module black}
|
|
||||||
BuildRequires: %{python_module exceptiongroup}
|
BuildRequires: %{python_module exceptiongroup}
|
||||||
BuildRequires: %{python_module hypothesis >= 6.93.0}
|
BuildRequires: %{python_module hypothesis >= 6.93.0}
|
||||||
BuildRequires: %{python_module lark >= 0.10.1}
|
BuildRequires: %{python_module lark >= 0.10.1}
|
||||||
@ -63,12 +64,12 @@ rm tox.ini
|
|||||||
|
|
||||||
%build
|
%build
|
||||||
%if !%{with test}
|
%if !%{with test}
|
||||||
%python_build
|
%pyproject_wheel
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%if !%{with test}
|
%if !%{with test}
|
||||||
%python_install
|
%pyproject_install
|
||||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
@ -76,7 +77,9 @@ rm tox.ini
|
|||||||
%if %{with test}
|
%if %{with test}
|
||||||
# multibuild: test the source dir, nothing is installed
|
# multibuild: test the source dir, nothing is installed
|
||||||
export PYTHONPATH=$(pwd)/src
|
export PYTHONPATH=$(pwd)/src
|
||||||
%pytest -n auto
|
# depend on black
|
||||||
|
rm -v tests/test_cst.py tests/test_syntactic.py
|
||||||
|
%pytest -n %{?jobs}
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%if !%{with test}
|
%if !%{with test}
|
||||||
@ -84,7 +87,7 @@ export PYTHONPATH=$(pwd)/src
|
|||||||
%doc README.md CHANGELOG.md
|
%doc README.md CHANGELOG.md
|
||||||
%license LICENSE
|
%license LICENSE
|
||||||
%{python_sitelib}/hypothesmith
|
%{python_sitelib}/hypothesmith
|
||||||
%{python_sitelib}/hypothesmith-%{version}-py*.egg-info
|
%{python_sitelib}/hypothesmith-%{version}.dist-info
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Loading…
x
Reference in New Issue
Block a user