!3 Update to upstream version 0.4.10
From: @desert-sailor Reviewed-by: @yangzhao_kl Signed-off-by: @yangzhao_kl
This commit is contained in:
commit
d2ff4ab0c3
29
0001-set-cargo-vendor-cache-for-local-build.patch
Normal file
29
0001-set-cargo-vendor-cache-for-local-build.patch
Normal file
@ -0,0 +1,29 @@
|
|||||||
|
From cb1e1e746bd3c707022c852cbd2ca14b98ef0760 Mon Sep 17 00:00:00 2001
|
||||||
|
From: desert-sailor <dxwangk@isoftstone.com>
|
||||||
|
Date: Fri, 30 Jun 2023 15:10:42 +0800
|
||||||
|
Subject: [PATCH] set cargo vendor cache for local build
|
||||||
|
|
||||||
|
---
|
||||||
|
.cargo/config.toml | 8 +++++++-
|
||||||
|
1 file changed, 7 insertions(+), 1 deletion(-)
|
||||||
|
|
||||||
|
diff --git a/.cargo/config.toml b/.cargo/config.toml
|
||||||
|
index 0e1e094..a587ae2 100644
|
||||||
|
--- a/.cargo/config.toml
|
||||||
|
+++ b/.cargo/config.toml
|
||||||
|
@@ -8,4 +8,10 @@ rustflags = [
|
||||||
|
rustflags = [
|
||||||
|
"-C", "link-arg=-undefined",
|
||||||
|
"-C", "link-arg=dynamic_lookup",
|
||||||
|
-]
|
||||||
|
\ No newline at end of file
|
||||||
|
+]
|
||||||
|
+
|
||||||
|
+[source.crates-io]
|
||||||
|
+replace-with = "vendored-sources"
|
||||||
|
+
|
||||||
|
+[source.vendored-sources]
|
||||||
|
+directory = "native/vendor"
|
||||||
|
--
|
||||||
|
2.33.0
|
||||||
|
|
||||||
BIN
cargo-vendor-cache
Normal file
BIN
cargo-vendor-cache
Normal file
Binary file not shown.
Binary file not shown.
BIN
libcst-0.4.10.tar.gz
Normal file
BIN
libcst-0.4.10.tar.gz
Normal file
Binary file not shown.
@ -1,6 +1,7 @@
|
|||||||
%bcond_with docs
|
%bcond_with docs
|
||||||
%bcond_with tests
|
%bcond_with tests
|
||||||
|
|
||||||
|
%global _empty_manifest_terminate_build 0
|
||||||
%global pypi_name libcst
|
%global pypi_name libcst
|
||||||
|
|
||||||
%global common_description %{expand:
|
%global common_description %{expand:
|
||||||
@ -14,17 +15,21 @@ node types and fields, it creates a lossless CST that looks and feels like an
|
|||||||
AST.}
|
AST.}
|
||||||
|
|
||||||
Name: python-%{pypi_name}
|
Name: python-%{pypi_name}
|
||||||
Version: 0.3.21
|
Version: 0.4.10
|
||||||
Release: 1
|
Release: 1
|
||||||
Summary: A concrete syntax tree with AST-like properties for Python 3
|
Summary: A concrete syntax tree with AST-like properties for Python 3
|
||||||
License: MIT and (MIT and Python) and ASL 2.0
|
License: MIT and (MIT and Python) and ASL 2.0
|
||||||
URL: https://github.com/Instagram/LibCST
|
URL: https://github.com/Instagram/LibCST
|
||||||
Source0: %{pypi_source %{pypi_name}}
|
Source0: %{pypi_source %{pypi_name}}
|
||||||
BuildArch: noarch
|
Source1: cargo-vendor-cache
|
||||||
|
Patch1: 0001-set-cargo-vendor-cache-for-local-build.patch
|
||||||
|
|
||||||
|
BuildRequires: rust-packaging
|
||||||
|
|
||||||
BuildRequires: python3-devel
|
BuildRequires: python3-devel
|
||||||
BuildRequires: python3dist(setuptools)
|
BuildRequires: python3dist(setuptools)
|
||||||
BuildRequires: python3dist(setuptools-scm)
|
BuildRequires: python3dist(setuptools-scm)
|
||||||
|
BuildRequires: python3dist(setuptools-rust)
|
||||||
%if %{with tests}
|
%if %{with tests}
|
||||||
BuildRequires: python3dist(pytest)
|
BuildRequires: python3dist(pytest)
|
||||||
BuildRequires: python3dist(pyyaml) >= 5.2
|
BuildRequires: python3dist(pyyaml) >= 5.2
|
||||||
@ -61,7 +66,8 @@ Documentation for %{name}
|
|||||||
%endif
|
%endif
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%autosetup -n %{pypi_name}-%{version}
|
%autosetup -p1 -n %{pypi_name}-%{version}
|
||||||
|
tar xzvf %{SOURCE1} -C ./native/
|
||||||
|
|
||||||
%if %{with docs}
|
%if %{with docs}
|
||||||
sed -r \
|
sed -r \
|
||||||
@ -82,8 +88,8 @@ rm -rf html/.{doctrees,buildinfo}
|
|||||||
%files -n python3-%{pypi_name}
|
%files -n python3-%{pypi_name}
|
||||||
%license LICENSE
|
%license LICENSE
|
||||||
%doc README.rst
|
%doc README.rst
|
||||||
%{python3_sitelib}/%{pypi_name}
|
%{python3_sitearch}/%{pypi_name}
|
||||||
%{python3_sitelib}/%{pypi_name}-%{version}-py%{python3_version}.egg-info
|
%{python3_sitearch}/%{pypi_name}-%{version}-py%{python3_version}.egg-info
|
||||||
|
|
||||||
%if %{with docs}
|
%if %{with docs}
|
||||||
%files doc
|
%files doc
|
||||||
@ -92,5 +98,8 @@ rm -rf html/.{doctrees,buildinfo}
|
|||||||
%endif
|
%endif
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Fri Jun 30 2023 Dongxing Wang <dxwangk@isoftstone.com> - 0.4.10-1
|
||||||
|
- Upgrade package to version 0.4.10
|
||||||
|
|
||||||
* Tue Jun 6 2023 chaozhangm <chaozhangm@isoftstone.com> - 0.3.21-1
|
* Tue Jun 6 2023 chaozhangm <chaozhangm@isoftstone.com> - 0.3.21-1
|
||||||
- Initial package.
|
- Initial package.
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user