From 443eb71124ea64ead8c90759dcf5f30c069dd59ce6203f7b27c66197ee21f121 Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Mon, 22 Jul 2024 11:53:43 +0000 Subject: [PATCH] Fix switching off tests OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-libcst?expand=0&rev=29 --- _multibuild | 3 +++ python-libcst.spec | 6 +++--- 2 files changed, 6 insertions(+), 3 deletions(-) create mode 100644 _multibuild diff --git a/_multibuild b/_multibuild new file mode 100644 index 0000000..fcc7b97 --- /dev/null +++ b/_multibuild @@ -0,0 +1,3 @@ + + test + diff --git a/python-libcst.spec b/python-libcst.spec index 5b41260..ccffbfe 100644 --- a/python-libcst.spec +++ b/python-libcst.spec @@ -72,14 +72,14 @@ A concrete syntax tree with AST-like properties for Python 3.5+ programs. # libcst/metadata/tests/test_full_repo_manager.py \ # libcst/tests/test_pyre_integration.py -%if !%%{with test} +%if %{without test} %build export CARGO_NET_OFFLINE=true PROFILE=release %pyproject_wheel %endif %install -%if !%%{with test} +%if %{without test} export CARGO_NET_OFFLINE=true PROFILE=release %pyproject_install # gh#Instagram/LibCST#818 @@ -95,7 +95,7 @@ export CARGO_NET_OFFLINE=true PROFILE=release %pyunittest discover -v libcst/tests %endif -%if !%{with test} +%if %{without test} %files %{python_files} %doc README.rst %license LICENSE