diff --git a/.gitignore b/.gitignore index 0d5131a..736389c 100644 --- a/.gitignore +++ b/.gitignore @@ -10,3 +10,4 @@ /pyo3-0.15.2.crate /pyo3-0.16.6.crate /pyo3-0.17.3.crate +/pyo3-0.18.1.crate diff --git a/pyo3-fix-metadata.diff b/pyo3-fix-metadata.diff index 32e4a01..af47bfa 100644 --- a/pyo3-fix-metadata.diff +++ b/pyo3-fix-metadata.diff @@ -1,5 +1,5 @@ ---- pyo3-0.17.3/Cargo.toml 1970-01-01T00:00:01+00:00 -+++ pyo3-0.17.3/Cargo.toml 2023-01-26T16:06:04.822303+00:00 +--- pyo3-0.18.1/Cargo.toml 1970-01-01T00:00:01+00:00 ++++ pyo3-0.18.1/Cargo.toml 2023-03-03T19:29:34.899195+00:00 @@ -57,52 +57,6 @@ "docsrs", ] @@ -53,15 +53,6 @@ [dependencies.anyhow] version = "1.0" optional = true -@@ -123,7 +77,7 @@ - optional = true - - [dependencies.indexmap] --version = ">= 1.6, < 1.8" -+version = "1.6" - optional = true - - [dependencies.indoc] @@ -171,9 +125,6 @@ [dev-dependencies.chrono] @@ -77,7 +68,7 @@ version = "1.0" -[dev-dependencies.send_wrapper] --version = "0.5" +-version = "0.6" - [dev-dependencies.serde] version = "1.0" @@ -85,18 +76,17 @@ @@ -198,9 +146,6 @@ [dev-dependencies.trybuild] - version = "1.0.49" + version = ">=1.0.70" - -[dev-dependencies.widestring] -version = "0.5.1" [build-dependencies.pyo3-build-config] - version = "0.17.3" -@@ -247,8 +192,6 @@ - "eyre", + version = "0.18.1" +@@ -253,7 +198,6 @@ "anyhow", + "experimental-inspect", ] --generate-abi3-import-lib = ["generate-import-lib"] -generate-import-lib = ["pyo3-ffi/generate-import-lib"] macros = [ "pyo3-macros", diff --git a/rust-pyo3.spec b/rust-pyo3.spec index a66213f..45fcaa1 100644 --- a/rust-pyo3.spec +++ b/rust-pyo3.spec @@ -1,11 +1,11 @@ -# Generated by rust2rpm 23 +# Generated by rust2rpm 24 %bcond_without check %global debug_package %{nil} %global crate pyo3 Name: rust-pyo3 -Version: 0.17.3 +Version: 0.18.1 Release: %autorelease Summary: Bindings to Python interpreter @@ -13,7 +13,6 @@ License: Apache-2.0 URL: https://crates.io/crates/pyo3 Source: %{crates_source} # Manually created patch for downstream crate metadata changes -# * relax indexmap dependency to allow versions ^1.8 # * drop unused, benchmark-only criterion dev-dependency to speed up builds # * drop unused benchmark definitions from Cargo.toml # * drop send_wrapper and widestring dev-dependencies (not packaged yet) @@ -86,6 +85,18 @@ use the "abi3-py310" feature of the "%{crate}" crate. %files -n %{name}+abi3-py310-devel %ghost %{crate_instdir}/Cargo.toml +%package -n %{name}+abi3-py311-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+abi3-py311-devel %{_description} + +This package contains library source intended for building other packages which +use the "abi3-py311" feature of the "%{crate}" crate. + +%files -n %{name}+abi3-py311-devel +%ghost %{crate_instdir}/Cargo.toml + %package -n %{name}+abi3-py37-devel Summary: %{summary} BuildArch: noarch @@ -158,6 +169,18 @@ use the "chrono" feature of the "%{crate}" crate. %files -n %{name}+chrono-devel %ghost %{crate_instdir}/Cargo.toml +%package -n %{name}+experimental-inspect-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+experimental-inspect-devel %{_description} + +This package contains library source intended for building other packages which +use the "experimental-inspect" feature of the "%{crate}" crate. + +%files -n %{name}+experimental-inspect-devel +%ghost %{crate_instdir}/Cargo.toml + %package -n %{name}+extension-module-devel Summary: %{summary} BuildArch: noarch @@ -314,18 +337,6 @@ use the "pyo3-macros" feature of the "%{crate}" crate. %files -n %{name}+pyo3-macros-devel %ghost %{crate_instdir}/Cargo.toml -%package -n %{name}+pyproto-devel -Summary: %{summary} -BuildArch: noarch - -%description -n %{name}+pyproto-devel %{_description} - -This package contains library source intended for building other packages which -use the "pyproto" feature of the "%{crate}" crate. - -%files -n %{name}+pyproto-devel -%ghost %{crate_instdir}/Cargo.toml - %package -n %{name}+serde-devel Summary: %{summary} BuildArch: noarch diff --git a/sources b/sources index 634bc10..2641d31 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (pyo3-0.17.3.crate) = 5c83ea76202edce13c370d023562a9009382e36fdf3fcd7c4dea844ab8e5e048db4cc79a9c0ea98fb7017a83da16924ba0981ad98bd83e75e2fac434738e9740 +SHA512 (pyo3-0.18.1.crate) = 37e82b2b212de59335f8b5e4129dfc53872ceda156238f4aaee8cf358a8daf2d64cb716aa63d343c4f602fc61344b94bcd3cc8e02bee80256f5b49033a5c5825