## START: Set by rpmautospec ## (rpmautospec version 0.6.0) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 3; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} ## END: Set by rpmautospec Name: python-tiktoken Version: 0.7.0 Release: %autorelease Summary: tiktoken is a fast BPE tokeniser for use with OpenAI's models # Statically linked deps and their licenses. # When updating, check the generated LICENSE.dependencies file. # # tiktoken is MIT # (MIT OR Apache-2.0) AND Unicode-DFS-2016: bstr v1.7.0 # (MIT OR Apache-2.0) AND Unicode-DFS-2016: regex-syntax v0.8.2 # Apache-2.0 OR MIT: rustc-hash v1.1.0 # Apache-2.0: pyo3 v0.19.2 # Apache-2.0: pyo3-ffi v0.19.2 # MIT OR Apache-2.0: bit-set v0.5.3 # MIT OR Apache-2.0: bit-vec v0.6.3 # MIT OR Apache-2.0: cfg-if v1.0.0 # MIT OR Apache-2.0: libc v0.2.149 # MIT OR Apache-2.0: lock_api v0.4.10 # MIT OR Apache-2.0: parking_lot v0.12.1 # MIT OR Apache-2.0: parking_lot_core v0.9.8 # MIT OR Apache-2.0: regex v1.10.2 # MIT OR Apache-2.0: regex-automata v0.4.3 # MIT OR Apache-2.0: scopeguard v1.2.0 # MIT OR Apache-2.0: smallvec v1.11.1 # MIT OR Apache-2.0: unindent v0.1.11 # MIT: fancy-regex v0.11.0 # MIT: memoffset v0.9.0 # Unlicense OR MIT: aho-corasick v1.1.2 # Unlicense OR MIT: memchr v2.6.4 License: MIT AND ((MIT OR Apache-2.0) AND Unicode-DFS-2016) AND Apache-2.0 AND (Apache-2.0 OR MIT) AND (Unlicense OR MIT) URL: https://pypi.org/project/tiktoken/ Source: %{pypi_source tiktoken} BuildRequires: python3-devel BuildRequires: cargo-rpm-macros >= 24 %global _description %{expand: tiktoken is a fast BPE tokeniser for use with OpenAI's models.} %description %_description %package -n python3-tiktoken Summary: %{summary} %description -n python3-tiktoken %_description %prep %autosetup -p1 -n tiktoken-%{version} %cargo_prep %generate_buildrequires %cargo_generate_buildrequires %pyproject_buildrequires %build %pyproject_wheel %{cargo_license} > LICENSE.dependencies %install %pyproject_install %pyproject_save_files tiktoken tiktoken_ext %check %pyproject_check_import %files -n python3-tiktoken -f %{pyproject_files} %doc README.md %license LICENSE LICENSE.dependencies %changelog ## START: Generated by rpmautospec * Fri Jul 19 2024 Fedora Release Engineering - 0.7.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Fri Jun 07 2024 Python Maint - 0.7.0-2 - Rebuilt for Python 3.13 * Thu May 30 2024 Peter Robinson - 0.7.0-1 - Update to 0.7.0 * Fri Feb 09 2024 Lumir Balhar - 0.6.0-1 - Update to 0.6.0 (rhbz#2263478) * Fri Jan 26 2024 Fedora Release Engineering - 0.5.2-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Mon Jan 22 2024 Fedora Release Engineering - 0.5.2-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Sun Dec 03 2023 Lumir Balhar - 0.5.2-1 - Update to 0.5.2 (rhbz#2252639) * Tue Nov 07 2023 Lumir Balhar - 0.5.1-1 - Initial import (fedora#2245590). ## END: Generated by rpmautospec