14
0
forked from pool/python-libcst
2024-07-30 18:31:35 +00:00
committed by Git OBS Bridge
parent 9cc378fa31
commit f08a046287

View File

@@ -72,26 +72,23 @@ 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 %{without test}
%build
export CARGO_NET_OFFLINE=true PROFILE=release
%pyproject_wheel
%endif
%install
%if %{without test}
export CARGO_NET_OFFLINE=true PROFILE=release
%pyproject_install
# gh#Instagram/LibCST#818
%{python_expand rm -rf %{buildroot}%{$python_sitearch}/libcst/tests
%fdupes %{buildroot}%{$python_sitearch}
}
%endif
%clean
%if %{with test}
%check
%python_expand find %{buildroot}%{$python_sitearch} -name \*.so\*
%pyunittest_arch discover -v libcst/tests
%endif