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