Fix switching off tests
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-libcst?expand=0&rev=29
This commit is contained in:
parent
3371b242bf
commit
2879455b4e
3
_multibuild
Normal file
3
_multibuild
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
<multibuild>
|
||||||
|
<package>test</package>
|
||||||
|
</multibuild>
|
@ -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/metadata/tests/test_full_repo_manager.py \
|
||||||
# libcst/tests/test_pyre_integration.py
|
# libcst/tests/test_pyre_integration.py
|
||||||
|
|
||||||
%if !%%{with test}
|
%if %{without test}
|
||||||
%build
|
%build
|
||||||
export CARGO_NET_OFFLINE=true PROFILE=release
|
export CARGO_NET_OFFLINE=true PROFILE=release
|
||||||
%pyproject_wheel
|
%pyproject_wheel
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%if !%%{with test}
|
%if %{without test}
|
||||||
export CARGO_NET_OFFLINE=true PROFILE=release
|
export CARGO_NET_OFFLINE=true PROFILE=release
|
||||||
%pyproject_install
|
%pyproject_install
|
||||||
# gh#Instagram/LibCST#818
|
# gh#Instagram/LibCST#818
|
||||||
@ -95,7 +95,7 @@ export CARGO_NET_OFFLINE=true PROFILE=release
|
|||||||
%pyunittest discover -v libcst/tests
|
%pyunittest discover -v libcst/tests
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%if !%{with test}
|
%if %{without test}
|
||||||
%files %{python_files}
|
%files %{python_files}
|
||||||
%doc README.rst
|
%doc README.rst
|
||||||
%license LICENSE
|
%license LICENSE
|
||||||
|
Loading…
x
Reference in New Issue
Block a user