diff --git a/libcst-0.3.16.tar.gz b/libcst-0.3.16.tar.gz deleted file mode 100644 index b79fbff..0000000 --- a/libcst-0.3.16.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:99c200004b6e845642eea7a433844d144994767f9ed50705171720b76d28cf7e -size 411727 diff --git a/libcst-0.3.17.tar.gz b/libcst-0.3.17.tar.gz new file mode 100644 index 0000000..6309ff5 --- /dev/null +++ b/libcst-0.3.17.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:2766671c107263daa3fc34e39d55134a6fe253701564d7670586f30eee2c201c +size 403703 diff --git a/python-libcst.changes b/python-libcst.changes index 889ba50..a68bb96 100644 --- a/python-libcst.changes +++ b/python-libcst.changes @@ -1,3 +1,18 @@ +------------------------------------------------------------------- +Sun Mar 21 15:05:59 UTC 2021 - Ben Greiner + +- Update ot 0.3.17 + Updated + * Optimization: reduce the number of unused parallel processes + #440 + Fixed + * Walrus operator's left hand side now has STORE expression + context #443 + * ApplyTypeAnnotationsVisitor applies parameter annotations even + if no return type is declared #445 + * Work around Windows problem by using dummy pool for jobs=1 #436 + * Remove extra unused imports added in other files #453 + ------------------------------------------------------------------- Sun Jan 3 21:02:37 UTC 2021 - Benjamin Greiner diff --git a/python-libcst.spec b/python-libcst.spec index b61e0ee..1b88828 100644 --- a/python-libcst.spec +++ b/python-libcst.spec @@ -1,5 +1,5 @@ # -# spec file for package python-libcst +# spec file for package python-libcst-test # # Copyright (c) 2021 SUSE LLC # @@ -27,7 +27,7 @@ %bcond_with test %endif Name: python-libcst%{psuffix} -Version: 0.3.16 +Version: 0.3.17 Release: 0 Summary: Python 3.5+ concrete syntax tree with AST-like properties License: MIT @@ -36,8 +36,6 @@ Source: https://files.pythonhosted.org/packages/source/l/libcst/libcst-% # PATCH-FIX-UPSTREAM skip_failing_test.patch gh#Instagram/LibCST#442 mcepl@suse.com # test fails on i586 with Python 3.6 Patch0: skip_failing_test.patch -# isort needed for the code regeneration, code mod also on non test flavor -BuildRequires: %{python_module isort >= 5.5.3} BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: python-rpm-macros @@ -49,15 +47,15 @@ BuildArch: noarch Requires: python-dataclasses %endif %if %{with test} +# black and isort needed for tests and the code regeneration BuildRequires: %{python_module PyYAML >= 5.2} -# black needed for tests and the code regeneration BuildRequires: %{python_module black} +BuildRequires: %{python_module dataclasses if %python-base < 3.7} BuildRequires: %{python_module hypothesis >= 4.36.0} BuildRequires: %{python_module hypothesmith >= 0.0.4} +BuildRequires: %{python_module isort >= 5.5.3} BuildRequires: %{python_module typing-inspect >= 0.4.0} BuildRequires: %{python_module typing_extensions >= 3.7.4.2} -BuildRequires: (python3-dataclasses if python3-base < 3.7) -BuildRequires: (python36-dataclasses if python36-base) %endif %python_subpackages @@ -68,8 +66,8 @@ A concrete syntax tree with AST-like properties for Python 3.5+ programs. %setup -q -n libcst-%{version} %autopatch -p1 -# fix executable -sed -i 's/"python"/sys.executable/' libcst/codemod/tests/test_codemod_cli.py +# wrong executable call, when fixed, fails to detect syntax error gh#Instagram/LibCST#468 +rm libcst/codemod/tests/test_codemod_cli.py # Depends on optional pyre rm \ @@ -77,6 +75,9 @@ rm \ libcst/metadata/tests/test_full_repo_manager.py \ libcst/tests/test_pyre_integration.py +# gh#Instagram/LibCST#467 +sed -i 's/import AbstractBaseMatcherNodeMeta/import Optional, AbstractBaseMatcherNodeMeta/' libcst/codegen/gen_matcher_classes.py + %if !%{with test} %build %python_build @@ -86,11 +87,20 @@ rm \ %if !%{with test} %python_install %python_expand %fdupes %{buildroot}%{$python_sitelib} +# fix mtimes +%{python_compileall} +# need a double treatment here +%python_expand %fdupes %{buildroot}%{$python_sitelib} %endif %if %{with test} %check -%pyunittest -v +%{python_exec # https://github.com/Instagram/LibCST/issues/331 + 467 +$python -m libcst.codegen.generate matchers +$python -m libcst.codegen.generate return_types +$python -m libcst.codegen.generate visitors +$python -m unittest -v +} %endif %if !%{with test}