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:
2
_service
2
_service
@@ -1,6 +1,6 @@
|
|||||||
<services>
|
<services>
|
||||||
<service name="cargo_vendor" mode="manual">
|
<service name="cargo_vendor" mode="manual">
|
||||||
<param name="srcdir">libcst-1.2.0.tar.gz</param>
|
<param name="srcdir">libcst-*.tar.gz</param>
|
||||||
<param name="cargotoml">native/Cargo.toml</param>
|
<param name="cargotoml">native/Cargo.toml</param>
|
||||||
<param name="update">true</param>
|
<param name="update">true</param>
|
||||||
</service>
|
</service>
|
||||||
|
@@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:71dd69fff76e7edaf8fae0f63ffcdbf5016e8cd83165b1d0688d6856aa48186a
|
|
||||||
size 765209
|
|
BIN
libcst-1.4.0.tar.gz
(Stored with Git LFS)
Normal file
BIN
libcst-1.4.0.tar.gz
(Stored with Git LFS)
Normal file
Binary file not shown.
@@ -1,3 +1,23 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Jul 22 10:24:31 UTC 2024 - Matej Cepl <mcepl@cepl.eu>
|
||||||
|
|
||||||
|
- 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)
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Fri Mar 1 00:29:21 UTC 2024 - Soc Virnyl Estela <uncomfy+openbuildservice@uncomfyhalomacro.pl>
|
Fri Mar 1 00:29:21 UTC 2024 - Soc Virnyl Estela <uncomfy+openbuildservice@uncomfyhalomacro.pl>
|
||||||
|
|
||||||
|
@@ -16,26 +16,25 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
%define skip_python2 1
|
|
||||||
%define rustflags '-Clink-arg=-Wl,-z,relro,-z,now'
|
|
||||||
%global flavor @BUILD_FLAVOR@%{nil}
|
%global flavor @BUILD_FLAVOR@%{nil}
|
||||||
%if "%{flavor}" == "test"
|
# %%if "%%{flavor}" == "test"
|
||||||
%define psuffix -test
|
# %%define psuffix -test
|
||||||
%bcond_without test
|
# %%bcond_without test
|
||||||
%else
|
# %%else
|
||||||
%define psuffix %{nil}
|
%define psuffix %{nil}
|
||||||
%bcond_with test
|
%bcond_with test
|
||||||
%endif
|
# %%endif
|
||||||
%define modname libcst
|
%define modname libcst
|
||||||
%{?sle15_python_module_pythons}
|
%{?sle15_python_module_pythons}
|
||||||
Name: python-libcst%{psuffix}
|
Name: python-libcst%{psuffix}
|
||||||
Version: 1.2.0
|
Version: 1.4.0
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: Python 3.5+ concrete syntax tree with AST-like properties
|
Summary: Python 3.5+ concrete syntax tree with AST-like properties
|
||||||
License: MIT
|
License: MIT
|
||||||
URL: https://github.com/Instagram/LibCST
|
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
|
Source1: vendor.tar.zst
|
||||||
|
BuildRequires: %{python_module pip}
|
||||||
BuildRequires: %{python_module setuptools-rust}
|
BuildRequires: %{python_module setuptools-rust}
|
||||||
BuildRequires: %{python_module setuptools_scm}
|
BuildRequires: %{python_module setuptools_scm}
|
||||||
BuildRequires: %{python_module setuptools}
|
BuildRequires: %{python_module setuptools}
|
||||||
@@ -67,32 +66,33 @@ A concrete syntax tree with AST-like properties for Python 3.5+ programs.
|
|||||||
%prep
|
%prep
|
||||||
%autosetup -a1 -n libcst-%{version} -p1
|
%autosetup -a1 -n libcst-%{version} -p1
|
||||||
|
|
||||||
# Depends on optional pyre
|
# # Depends on optional pyre
|
||||||
rm \
|
# rm \
|
||||||
libcst/metadata/tests/test_type_inference_provider.py \
|
# libcst/metadata/tests/test_type_inference_provider.py \
|
||||||
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
|
||||||
|
|
||||||
# gh#Instagram/LibCST#467
|
%if !%%{with test}
|
||||||
sed -i -e 's/import AbstractBaseMatcherNodeMeta/import Optional, AbstractBaseMatcherNodeMeta/' libcst/codegen/gen_matcher_classes.py
|
|
||||||
|
|
||||||
%if !%{with test}
|
|
||||||
%build
|
%build
|
||||||
export CARGO_NET_OFFLINE=true PROFILE=release
|
export CARGO_NET_OFFLINE=true PROFILE=release
|
||||||
%python_build
|
%pyproject_wheel
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%if !%{with test}
|
%if !%%{with test}
|
||||||
export CARGO_NET_OFFLINE=true PROFILE=release
|
export CARGO_NET_OFFLINE=true PROFILE=release
|
||||||
%python_install
|
%pyproject_install
|
||||||
%python_expand %fdupes %{buildroot}%{$python_sitearch}
|
# gh#Instagram/LibCST#818
|
||||||
|
%{python_expand rm -rf %{buildroot}%{$python_sitearch}/libcst/tests
|
||||||
|
%fdupes %{buildroot}%{$python_sitearch}
|
||||||
|
}
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
%clean
|
||||||
|
|
||||||
%if %{with test}
|
%if %{with test}
|
||||||
%check
|
%check
|
||||||
%python_exec -m libcst.codegen.generate all
|
%pyunittest discover -v libcst/tests
|
||||||
%pyunittest -v
|
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%if !%{with test}
|
%if !%{with test}
|
||||||
@@ -100,7 +100,7 @@ export CARGO_NET_OFFLINE=true PROFILE=release
|
|||||||
%doc README.rst
|
%doc README.rst
|
||||||
%license LICENSE
|
%license LICENSE
|
||||||
%{python_sitearch}/libcst
|
%{python_sitearch}/libcst
|
||||||
%{python_sitearch}/libcst-%{version}-py*.egg-info
|
%{python_sitearch}/libcst-%{version}*-info
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
@@ -1,3 +1,3 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
version https://git-lfs.github.com/spec/v1
|
||||||
oid sha256:316f2dc7c2d4daefe48d721086c8420351704e052f4cf22baf456a09ff77c9dc
|
oid sha256:b7d89b1c34b8bc302ff105323671d9089a58e8a59c0d1579bc42379c4f197a28
|
||||||
size 15914180
|
size 10695352
|
||||||
|
Reference in New Issue
Block a user