14
0
forked from pool/python-libcst

- Update to 1.8.5:

* Added
    + Support parsing of t-strings
    + add helper to convert nodes to matchers
    + Allow configuring empty formatter lists in codemod CLI
    + Enable support for free-threaded CPython
    + Expose TypeAlias and TypeVar related structs in rust library
    + FullyQualifiedNameProvider: Optionally consider pyproject.toml files
      when determining a file's module name and package
    + Add validation for If node
    + include python 3.13 in build
  * Fixed
    + generate Attribute nodes when applying type annotations
    + Avoid raising bare Exception
    + fix various Match statement visitation errors
    + Mention codemod -x flag in docs
    + Clear warnings for each file in codemod cli
    + Typo fix in codemods_tutorial.rst (trivial)
    + fix certain matchers breaking under multiprocessing by initializing
      them late
  * Updated
    + update pyo3 to 0.25
    + Replace multiprocessing with ProcessPoolExecutor
    + Support pipe syntax for Union types in codegen
    + Remove dependency on chic and upgrade annotate-snippets
    + make libcst_native::tokenizer public
- Drop patch pyo3-022.patch, no longer required.
- Do not build the package when running the testsuite.
- Reinstate running the testsuite.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-libcst?expand=0&rev=38
This commit is contained in:
2025-10-24 01:47:58 +00:00
committed by Git OBS Bridge
parent ea2db36096
commit d4de30e648
3 changed files with 50 additions and 18 deletions

View File

@@ -1,3 +1,36 @@
-------------------------------------------------------------------
Fri Oct 24 01:47:06 UTC 2025 - Steve Kowalik <steven.kowalik@suse.com>
- Update to 1.8.5:
* Added
+ Support parsing of t-strings
+ add helper to convert nodes to matchers
+ Allow configuring empty formatter lists in codemod CLI
+ Enable support for free-threaded CPython
+ Expose TypeAlias and TypeVar related structs in rust library
+ FullyQualifiedNameProvider: Optionally consider pyproject.toml files
when determining a file's module name and package
+ Add validation for If node
+ include python 3.13 in build
* Fixed
+ generate Attribute nodes when applying type annotations
+ Avoid raising bare Exception
+ fix various Match statement visitation errors
+ Mention codemod -x flag in docs
+ Clear warnings for each file in codemod cli
+ Typo fix in codemods_tutorial.rst (trivial)
+ fix certain matchers breaking under multiprocessing by initializing
them late
* Updated
+ update pyo3 to 0.25
+ Replace multiprocessing with ProcessPoolExecutor
+ Support pipe syntax for Union types in codegen
+ Remove dependency on chic and upgrade annotate-snippets
+ make libcst_native::tokenizer public
- Drop patch pyo3-022.patch, no longer required.
- Do not build the package when running the testsuite.
- Reinstate running the testsuite.
-------------------------------------------------------------------
Mon Sep 9 11:38:15 UTC 2024 - Matej Cepl <mcepl@cepl.eu>

View File

@@ -17,13 +17,13 @@
%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}
@@ -34,6 +34,7 @@ License: MIT
URL: https://github.com/Instagram/LibCST
Source0: https://files.pythonhosted.org/packages/source/l/libcst/%{modname}-%{version}.tar.gz
Source1: vendor.tar.zst
BuildRequires: %{python_module base >= 3.9}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module setuptools-rust}
BuildRequires: %{python_module setuptools_scm}
@@ -45,18 +46,13 @@ BuildRequires: fdupes
BuildRequires: python-rpm-macros
BuildRequires: zstd
Requires: python-PyYAML >= 5.2
Requires: python-typing-inspect >= 0.4.0
Requires: python-typing_extensions >= 3.7.4.2
Requires: (python-dataclasses if python-base < 3.7)
%if %{with test}
# black and isort needed for tests and the code regeneration
BuildRequires: %{python_module PyYAML >= 5.2}
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 typing-inspect >= 0.4.0}
BuildRequires: %{python_module typing_extensions >= 3.7.4.2}
BuildRequires: %{python_module libcst = %{version}}
%endif
%python_subpackages
@@ -73,23 +69,26 @@ A concrete syntax tree with AST-like properties for Python 3.5+ programs.
# libcst/tests/test_pyre_integration.py
%build
export CARGO_NET_OFFLINE=true PROFILE=release
%if %{without test}
export CARGO_NET_OFFLINE=true PROFILE=release CARGO_HOME=$PWD/native/.cargo
%pyproject_wheel
%endif
%install
%if %{without test}
export CARGO_NET_OFFLINE=true PROFILE=release
%pyproject_install
# gh#Instagram/LibCST#818
%{python_expand rm -rf %{buildroot}%{$python_sitearch}/libcst/tests
%fdupes %{buildroot}%{$python_sitearch}
}
%clean
%endif
%if %{with test}
%check
%python_expand find %{buildroot}%{$python_sitearch} -name \*.so\*
%pyunittest_arch discover -v libcst/tests
pushd libcst/tests
%python_exec -m unittest discover -v
popd
%endif
%if %{without test}

View File

@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:ec6ee2638a643b59ed31438fbf1739cd2553719393007992bfc4c2408f857b06
size 7964680
oid sha256:fc48d77dd68bf12584bc4ae608325d50af1e4a22751797a95ada77963ffd25ee
size 7965759