commit 4a2c30426b24af011b1ac85d9f8837ac3d94a88e40edb1a032df20ace66ef5d2 Author: Nico Krapp Date: Mon May 12 16:03:33 2025 +0000 - Convert to pip-based build OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-PyTrie?expand=0&rev=14 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/PyTrie-0.4.0.tar.gz b/PyTrie-0.4.0.tar.gz new file mode 100644 index 0000000..2f724bd --- /dev/null +++ b/PyTrie-0.4.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:8f4488f402d3465993fb6b6efa09866849ed8cda7903b50647b7d0342b805379 +size 95139 diff --git a/python-PyTrie.changes b/python-PyTrie.changes new file mode 100644 index 0000000..75c1e68 --- /dev/null +++ b/python-PyTrie.changes @@ -0,0 +1,51 @@ +------------------------------------------------------------------- +Mon May 12 14:28:35 UTC 2025 - Markéta Machová + +- Convert to pip-based build + +------------------------------------------------------------------- +Wed Nov 11 01:51:53 UTC 2020 - Steve Kowalik + +- Update to 0.4.0: + * Drop Python 2.7 support +- LICENSE now included in the tarball, drop the separate Source. +- Drop fix-sorting-py2.patch, Python 2 not supported +- Drop no-import-from-collections.patch, included upstream +- No longer BuildRequire python-devel, and switch to the macro for + testsuite + +------------------------------------------------------------------- +Tue Dec 3 15:14:36 UTC 2019 - Matej Cepl + +- Add patch no-import-from-collections.patch to avoid any import + directly from collections. + +------------------------------------------------------------------- +Fri Mar 29 08:49:43 UTC 2019 - Jan Engelhardt + +- Drop duplicated word. + +------------------------------------------------------------------- +Thu Mar 28 08:20:50 UTC 2019 - Tomáš Chvátal + +- Sync with python-pytrie to obsolete it, wrong camelcase name there +- Add patch fix-sorting-py2.patch + +------------------------------------------------------------------- +Mon Mar 25 18:08:11 CET 2019 - Matej Cepl + +- Update to version 0.3.1: + - Fixed iteritems/itervalues for SortedDicts in Python 2.7. + +------------------------------------------------------------------- +Wed Oct 18 16:47:11 UTC 2017 - toddrme2178@gmail.com + +- Implement single-spec version +- Update to version 0.3 + * No changelog + +------------------------------------------------------------------- +Tue Nov 24 13:09:43 UTC 2015 - Adam Mizerski + +- new package (version 0.2) + diff --git a/python-PyTrie.spec b/python-PyTrie.spec new file mode 100644 index 0000000..27c2836 --- /dev/null +++ b/python-PyTrie.spec @@ -0,0 +1,68 @@ +# +# spec file for package python-PyTrie +# +# Copyright (c) 2025 SUSE LLC +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# + + +Name: python-PyTrie +Version: 0.4.0 +Release: 0 +Summary: A pure Python implementation of the trie data structure +License: BSD-3-Clause +URL: https://github.com/gsakkis/pytrie/ +Source: https://files.pythonhosted.org/packages/source/P/PyTrie/PyTrie-%{version}.tar.gz +BuildRequires: %{python_module pip} +BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module sortedcontainers} +BuildRequires: %{python_module testsuite} +BuildRequires: %{python_module wheel} +BuildRequires: fdupes +BuildRequires: python-rpm-macros +Requires: python-sortedcontainers +Provides: python-pytrie = %{version} +Obsoletes: python-pytrie < %{version} +BuildArch: noarch +%python_subpackages + +%description +pytrie is a pure Python 3 implementation of the trie data structure. + +A trie is an ordered tree data structure that is used to store a mapping +where the keys are sequences, usually strings over an alphabet. In addition to +implementing the mapping interface, tries allow finding the items for a given +prefix, and vice versa, finding the items whose keys are prefixes of a given key. + +%prep +%setup -q -n PyTrie-%{version} +%autopatch -p1 + +%build +%pyproject_wheel + +%install +%pyproject_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%check +%pyunittest + +%files %{python_files} +%license LICENSE +%doc README.md +%{python_sitelib}/pytrie.py +%{python_sitelib}/[Pp]y[Tt]rie-%{version}*-info +%pycache_only %{python_sitelib}/__pycache__/pytrie* + +%changelog