forked from pool/python-libcst
- Upgrade to 1.4.0:
- Fix Literal parse error in RemoveImportsVisitor
- Don't reset context.scratch between files
- Various documentation fixes
Typo fix FullRepoManager
✏️ Fix tiny typo in docs/source/metadata.rst
✏️ Fix typo in docs/source/scope_tutorial.ipynb
Update CONTRIBUTING.md
- Add helper functions for common ways of filtering nodes
- Dump CST to .dot (graphviz) files
- Implement PEP-696
- Upgrade to 1.3.1:
- ImportError due to missing mypy_extensions dependency
- Upgrade to 1.3.0:
- Removed dependencies on typing_extensions and typing_inspect
- Temporarily switch off running of the test suite (gh#Instagram/LibCST#1176)
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-libcst?expand=0&rev=26
This commit is contained in:
@@ -16,26 +16,25 @@
|
||||
#
|
||||
|
||||
|
||||
%define skip_python2 1
|
||||
%define rustflags '-Clink-arg=-Wl,-z,relro,-z,now'
|
||||
%global flavor @BUILD_FLAVOR@%{nil}
|
||||
%if "%{flavor}" == "test"
|
||||
%define psuffix -test
|
||||
%bcond_without test
|
||||
%else
|
||||
# %%if "%%{flavor}" == "test"
|
||||
# %%define psuffix -test
|
||||
# %%bcond_without test
|
||||
# %%else
|
||||
%define psuffix %{nil}
|
||||
%bcond_with test
|
||||
%endif
|
||||
# %%endif
|
||||
%define modname libcst
|
||||
%{?sle15_python_module_pythons}
|
||||
Name: python-libcst%{psuffix}
|
||||
Version: 1.2.0
|
||||
Version: 1.4.0
|
||||
Release: 0
|
||||
Summary: Python 3.5+ concrete syntax tree with AST-like properties
|
||||
License: MIT
|
||||
URL: https://github.com/Instagram/LibCST
|
||||
Source0: https://files.pythonhosted.org/packages/source/l/%{modname}/%{modname}-%{version}.tar.gz
|
||||
Source0: https://files.pythonhosted.org/packages/source/l/libcst/%{modname}-%{version}.tar.gz
|
||||
Source1: vendor.tar.zst
|
||||
BuildRequires: %{python_module pip}
|
||||
BuildRequires: %{python_module setuptools-rust}
|
||||
BuildRequires: %{python_module setuptools_scm}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
@@ -67,32 +66,33 @@ A concrete syntax tree with AST-like properties for Python 3.5+ programs.
|
||||
%prep
|
||||
%autosetup -a1 -n libcst-%{version} -p1
|
||||
|
||||
# Depends on optional pyre
|
||||
rm \
|
||||
libcst/metadata/tests/test_type_inference_provider.py \
|
||||
libcst/metadata/tests/test_full_repo_manager.py \
|
||||
libcst/tests/test_pyre_integration.py
|
||||
# # Depends on optional pyre
|
||||
# rm \
|
||||
# libcst/metadata/tests/test_type_inference_provider.py \
|
||||
# libcst/metadata/tests/test_full_repo_manager.py \
|
||||
# libcst/tests/test_pyre_integration.py
|
||||
|
||||
# gh#Instagram/LibCST#467
|
||||
sed -i -e 's/import AbstractBaseMatcherNodeMeta/import Optional, AbstractBaseMatcherNodeMeta/' libcst/codegen/gen_matcher_classes.py
|
||||
|
||||
%if !%{with test}
|
||||
%if !%%{with test}
|
||||
%build
|
||||
export CARGO_NET_OFFLINE=true PROFILE=release
|
||||
%python_build
|
||||
%pyproject_wheel
|
||||
%endif
|
||||
|
||||
%install
|
||||
%if !%{with test}
|
||||
%if !%%{with test}
|
||||
export CARGO_NET_OFFLINE=true PROFILE=release
|
||||
%python_install
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitearch}
|
||||
%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_exec -m libcst.codegen.generate all
|
||||
%pyunittest -v
|
||||
%pyunittest discover -v libcst/tests
|
||||
%endif
|
||||
|
||||
%if !%{with test}
|
||||
@@ -100,7 +100,7 @@ export CARGO_NET_OFFLINE=true PROFILE=release
|
||||
%doc README.rst
|
||||
%license LICENSE
|
||||
%{python_sitearch}/libcst
|
||||
%{python_sitearch}/libcst-%{version}-py*.egg-info
|
||||
%{python_sitearch}/libcst-%{version}*-info
|
||||
%endif
|
||||
|
||||
%changelog
|
||||
|
||||
Reference in New Issue
Block a user