[packages/python3-pytokens] - new
qboosh
qboosh at pld-linux.org
Wed Mar 11 05:51:22 CET 2026
commit fc136bab88a6d8f36c4f9cff78a00289bb2ff776
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Wed Mar 11 05:51:20 2026 +0100
- new
python3-pytokens.spec | 69 +++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 69 insertions(+)
---
diff --git a/python3-pytokens.spec b/python3-pytokens.spec
new file mode 100644
index 0000000..de8150e
--- /dev/null
+++ b/python3-pytokens.spec
@@ -0,0 +1,69 @@
+#
+# Conditional build:
+%bcond_without tests # unit tests
+
+Summary: A fast, spec compliant Python 3.14+ tokenizer that runs on older Pythons
+Summary(pl.UTF-8): Szybki, zgodny ze specyfikacją tokenizer Pythona 3.14+, działający na starszych Pythonach
+Name: python3-pytokens
+Version: 0.4.1
+Release: 1
+License: MIT
+Group: Libraries/Python
+#Source0Download: https://pypi.org/simple/pytokens/
+Source0: https://files.pythonhosted.org/packages/source/p/pytokens/pytokens-%{version}.tar.gz
+# Source0-md5: c1549e0251398d9e1336fce2fad4731c
+URL: https://pypi.org/project/pytokens/
+BuildRequires: python3-devel >= 1:3.8
+# mypyc
+BuildRequires: python3-mypy
+BuildRequires: python3-setuptools >= 1:69
+BuildRequires: python3-wheel
+%if %{with tests}
+BuildRequires: python3-pytest
+BuildRequires: python3-pytest-cov
+%endif
+BuildRequires: rpm-pythonprov
+BuildRequires: rpmbuild(macros) >= 1.714
+Requires: python3-modules >= 1:3.8
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+A fast, spec compliant Python 3.14+ tokenizer that runs on older
+Pythons.
+
+%description -l pl.UTF-8
+Szybki, zgodny ze specyfikacją tokenizer Pythona 3.14+, działający na
+starszych Pythonach.
+
+%prep
+%setup -q -n pytokens-%{version}
+
+%build
+%py3_build
+
+%if %{with tests}
+PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
+PYTEST_PLUGINS=pytest_cov.plugin \
+PYTHONPATH=$(readlink -f build-3/lib.*) \
+%{__python3} -m pytest tests
+%endif
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%py3_install
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc LICENSE README.md
+%{py3_sitedir}/fd7dcdb10166ebd4db98__mypyc.cpython-*.so
+%dir %{py3_sitedir}/pytokens
+%{py3_sitedir}/pytokens/__init__.cpython-*.so
+%{py3_sitedir}/pytokens/_mypyc_dummy.cpython-*.so
+%{py3_sitedir}/pytokens/*.py
+%{py3_sitedir}/pytokens/py.typed
+%{py3_sitedir}/pytokens/__pycache__
+%{py3_sitedir}/pytokens-%{version}-py*.egg-info
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python3-pytokens.git/commitdiff/fc136bab88a6d8f36c4f9cff78a00289bb2ff776
More information about the pld-cvs-commit
mailing list