forked from pool/python-libcst
Update SPEC file
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-libcst?expand=0&rev=33
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user