Package python3-module-pydantic-core: Specfile
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 | %define _unpackaged_files_terminate_build 1 %define pypi_name pydantic-core %define mod_name pydantic_core %def_with check Name: python3-module-%pypi_name Version: 2.18.2 Release: alt1 Summary: Core validation logic for pydantic written in rust License: MIT Group: Development/Python3 Url: https://pypi.org/project/pydantic-core Vcs: https://github.com/pydantic/pydantic-core Source0: %name-%version.tar Source1: %pyproject_deps_config_name Source2: crates.tar %pyproject_runtimedeps_metadata BuildRequires(pre): rpm-build-pyproject %pyproject_builddeps_build BuildRequires: rust-cargo BuildRequires: /proc BuildRequires: libmimalloc-devel BuildRequires: python3-dev %if_with check BuildRequires: python3-module-pytest-benchmark %add_pyproject_deps_check_filter pydantic %add_pyproject_deps_check_filter pytest-example %add_pyproject_deps_check_filter pytest-speed %add_pyproject_deps_check_filter pytest-codspeed %pyproject_builddeps_check %endif %description This package provides the core functionality for pydantic validation and serialization. Pydantic-core is currently around 17x faster than pydantic V1. See tests/benchmarks/ for details. %prep %setup -a2 mkdir -p .cargo cat << EOF > .cargo/config.toml [source.crates-io] replace-with = "vendored-sources" [source.vendored-sources] directory = "vendor" [term] verbose = true quiet = false [install] root = "%buildroot%_prefix" [build] rustflags = ["-Copt-level=3", "-Cdebuginfo=1", "--cfg=rustix_use_libc"] [profile.release] strip = false EOF %pyproject_deps_resync_build %pyproject_deps_resync_metadata %if_with check %pyproject_deps_resync_check_pipreqfile tests/requirements.txt %endif %build export CARGO_HOME=${PWD}/cargo %ifarch aarch64 # To avoid undefined symbols (start with '__aarch64_') which are specific for # only aarch64 and which break tests export CFLAGS="$CFLAGS -mno-outline-atomics" %endif %pyproject_build %install %pyproject_install %check # tests/benchmarks: do not execute benchmark tests %pyproject_run_pytest --ignore='tests/benchmarks' %files %doc README.md %python3_sitelibdir/%mod_name/ %python3_sitelibdir/%{pyproject_distinfo %mod_name} %changelog * Tue Apr 23 2024 Alexandr Shashkin <dutyrok@altlinux.org> 2.18.2-alt1 - 2.18.1 -> 2.18.2. * Sun Apr 21 2024 Alexandr Shashkin <dutyrok@altlinux.org> 2.18.1-alt1 - 2.16.3 -> 2.18.1. * Mon Mar 04 2024 Alexandr Shashkin <dutyrok@altlinux.org> 2.16.3-alt1 - 2.16.2 -> 2.16.3 * Mon Feb 05 2024 Alexandr Shashkin <dutyrok@altlinux.org> 2.16.2-alt1 - 2.14.6 -> 2.16.2 * Sat Jan 20 2024 Alexandr Shashkin <dutyrok@altlinux.org> 2.14.6-alt1 - 2.14.5 -> 2.14.6 * Thu Nov 23 2023 Alexandr Shashkin <dutyrok@altlinux.org> 2.14.5-alt1 - 2.10.1 -> 2.14.5 * Fri Sep 29 2023 Alexandr Shashkin <dutyrok@altlinux.org> 2.10.1-alt1 - 2.6.3 -> 2.10.1 * Thu Aug 24 2023 Alexandr Shashkin <dutyrok@altlinux.org> 2.6.3-alt1 - 2.4.0 -> 2.6.3 * Tue Aug 15 2023 Alexandr Shashkin <dutyrok@altlinux.org> 2.4.0-alt1 - Initial build for Sisyphus |