From 568ae33f3cfeaf911cb89d5bd880cf3686ff9f0ff9d6f101b3c577b909dcd628 Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Mon, 22 Jul 2024 11:47:40 +0000 Subject: [PATCH] =?UTF-8?q?-=20Upgrade=20to=201.4.0:=20=20=20-=20Fix=20Lit?= =?UTF-8?q?eral=20parse=20error=20in=20RemoveImportsVisitor=20=20=20-=20Do?= =?UTF-8?q?n't=20reset=20context.scratch=20between=20files=20=20=20-=20Var?= =?UTF-8?q?ious=20documentation=20fixes=20=20=20=20=20=20=20=20=20Typo=20f?= =?UTF-8?q?ix=20FullRepoManager=20=20=20=20=20=20=20=20=20=E2=9C=8F?= =?UTF-8?q?=EF=B8=8F=20Fix=20tiny=20typo=20in=20docs/source/metadata.rst?= =?UTF-8?q?=20=20=20=20=20=20=20=20=20=E2=9C=8F=EF=B8=8F=20Fix=20typo=20in?= =?UTF-8?q?=20docs/source/scope=5Ftutorial.ipynb=20=20=20=20=20=20=20=20?= =?UTF-8?q?=20Update=20CONTRIBUTING.md=20=20=20-=20Add=20helper=20function?= =?UTF-8?q?s=20for=20common=20ways=20of=20filtering=20nodes=20=20=20-=20Du?= =?UTF-8?q?mp=20CST=20to=20.dot=20(graphviz)=20files=20=20=20-=20Implement?= =?UTF-8?q?=20PEP-696=20-=20Upgrade=20to=201.3.1:=20=20=20-=20ImportError?= =?UTF-8?q?=20due=20to=20missing=20mypy=5Fextensions=20dependency=20-=20Up?= =?UTF-8?q?grade=20to=201.3.0:=20=20=20-=20Removed=20dependencies=20on=20t?= =?UTF-8?q?yping=5Fextensions=20and=20typing=5Finspect=20-=20Temporarily?= =?UTF-8?q?=20switch=20off=20running=20of=20the=20test=20suite=20(gh#Insta?= =?UTF-8?q?gram/LibCST#1176)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-libcst?expand=0&rev=26 --- _service | 2 +- libcst-1.2.0.tar.gz | 3 --- libcst-1.4.0.tar.gz | 3 +++ python-libcst.changes | 20 +++++++++++++++++ python-libcst.spec | 50 +++++++++++++++++++++---------------------- vendor.tar.zst | 4 ++-- 6 files changed, 51 insertions(+), 31 deletions(-) delete mode 100644 libcst-1.2.0.tar.gz create mode 100644 libcst-1.4.0.tar.gz diff --git a/_service b/_service index e48e5ea..820ebda 100644 --- a/_service +++ b/_service @@ -1,6 +1,6 @@ - libcst-1.2.0.tar.gz + libcst-*.tar.gz native/Cargo.toml true diff --git a/libcst-1.2.0.tar.gz b/libcst-1.2.0.tar.gz deleted file mode 100644 index 6954574..0000000 --- a/libcst-1.2.0.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:71dd69fff76e7edaf8fae0f63ffcdbf5016e8cd83165b1d0688d6856aa48186a -size 765209 diff --git a/libcst-1.4.0.tar.gz b/libcst-1.4.0.tar.gz new file mode 100644 index 0000000..c9f9b32 --- /dev/null +++ b/libcst-1.4.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:449e0b16604f054fa7f27c3ffe86ea7ef6c409836fe68fe4e752a1894175db00 +size 771364 diff --git a/python-libcst.changes b/python-libcst.changes index 37c5506..1458923 100644 --- a/python-libcst.changes +++ b/python-libcst.changes @@ -1,3 +1,23 @@ +------------------------------------------------------------------- +Mon Jul 22 10:24:31 UTC 2024 - Matej Cepl + +- 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 diff --git a/python-libcst.spec b/python-libcst.spec index ff8ba7c..5b41260 100644 --- a/python-libcst.spec +++ b/python-libcst.spec @@ -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 diff --git a/vendor.tar.zst b/vendor.tar.zst index c5f9be0..63d277e 100644 --- a/vendor.tar.zst +++ b/vendor.tar.zst @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:316f2dc7c2d4daefe48d721086c8420351704e052f4cf22baf456a09ff77c9dc -size 15914180 +oid sha256:b7d89b1c34b8bc302ff105323671d9089a58e8a59c0d1579bc42379c4f197a28 +size 10695352