commit bfe4e5147ddf1d28c8cf9a43e7e531fd7e86d4df2a843d74fd56cc1dfcaad54c Author: Markéta Machová Date: Thu Jun 12 12:14:26 2025 +0000 - Convert to pip-based build OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-sortedcollections?expand=0&rev=19 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/python-sortedcollections.changes b/python-sortedcollections.changes new file mode 100644 index 0000000..bcb9da0 --- /dev/null +++ b/python-sortedcollections.changes @@ -0,0 +1,71 @@ +------------------------------------------------------------------- +Thu Jun 12 12:14:14 UTC 2025 - Markéta Machová + +- Convert to pip-based build + +------------------------------------------------------------------- +Fri Dec 1 16:43:28 UTC 2023 - Antonio Larrosa + +- Add %{?sle15_python_module_pythons} + +------------------------------------------------------------------- +Sat Jan 30 05:20:31 UTC 2021 - John Vandenberg + +- Update to v2.1.0 + * Add NearestDict + * Update for Python 3 + * Fixes for doctest support + * Add NearestDict implementation + * Update docs to reference NearestDict + * Use Python3 defaults for inheritance + * Use f-strings +- from v2.0.0 + * Remove shims for Python 2 + * Add support for mypy + * Drop need for "gj" from requirements + * Load version from __init__.py rather than by import + * Add __all__ to __init__.py for flake8 + * Small fixes/changes for linters/formatters/type-checkers +- from v1.2.3 + * Add support for "blue" formatter + * Fixes for doctest support +- from v1.2.2 + * Add pickle support for IndexableSet + +------------------------------------------------------------------- +Wed Jul 22 15:04:59 UTC 2020 - Matej Cepl + +- Update to 1.2.1: + - Update self._dict_* methods to use dict.__* functions directly. + +------------------------------------------------------------------- +Mon Jul 20 11:05:33 UTC 2020 - Matej Cepl + +- Add method_item.patch to replace _del_item and _set_item methods + (gh#grantjenks/python-sortedcollections#12). + +------------------------------------------------------------------- +Tue May 14 08:51:22 UTC 2019 - Marketa Calabkova + +- update to version 1.1.2 + * Add ItemSortedDict.__deepcopy__ for deep copying + * Define _setitem = __setitem__ in overrides + * Some new tests and various code cleanup + +------------------------------------------------------------------- +Tue Dec 4 12:54:27 UTC 2018 - Matej Cepl + +- Remove superfluous devel dependency for noarch package + +------------------------------------------------------------------- +Thu May 24 17:46:06 UTC 2018 - toddrme2178@gmail.com + +- Update to 1.0.1 + * Update for sortedcontainers V2 and Python 3 semantics + * Update sortedcollections to remove load (changed in sortedcontainers) +- Fix changes file name + +------------------------------------------------------------------- +Mon Aug 14 00:16:49 UTC 2017 - toddrme2178@gmail.com + +- Initial version diff --git a/python-sortedcollections.spec b/python-sortedcollections.spec new file mode 100644 index 0000000..acb7d78 --- /dev/null +++ b/python-sortedcollections.spec @@ -0,0 +1,76 @@ +# +# spec file for package python-sortedcollections +# +# 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/ +# + + +%{?sle15_python_module_pythons} +Name: python-sortedcollections +Version: 2.1.0 +Release: 0 +Summary: Python Sorted Collections +License: Apache-2.0 +Group: Development/Languages/Python +URL: https://github.com/grantjenks/sortedcollections +#Source: https://files.pythonhosted.org/packages/source/s/sortedcollections/sortedcollections-%%{version}.tar.gz +Source: https://github.com/grantjenks/python-sortedcollections/archive/v%{version}.tar.gz +BuildRequires: %{python_module pip} +BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} +BuildRequires: fdupes +BuildRequires: python-rpm-macros +Requires: python-sortedcontainers >= 2 +BuildArch: noarch +# SECTION test requirements +BuildRequires: %{python_module pytest} +BuildRequires: %{python_module sortedcontainers >= 2} +# /SECTION +%python_subpackages + +%description +SortedCollections is an Python sorted collections library. + +Features +-------- + +- ValueSortedDict - Dictionary with (key, value) item pairs sorted by value. +- ItemSortedDict - Dictionary with key-function support for item pairs. +- OrderedDict - Ordered dictionary with numeric indexing support. +- OrderedSet - Ordered set with numeric indexing support. +- IndexableDict - Dictionary with numeric indexing support. +- IndexableSet - Set with numeric indexing support. +- SegmentList - List with fast random access insertion and deletion. + +%prep +%setup -q -n python-sortedcollections-%{version} +rm tox.ini + +%build +%pyproject_wheel + +%install +%pyproject_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%check +%pytest tests + +%files %{python_files} +%doc README.rst +%license LICENSE +%{python_sitelib}/sortedcollections +%{python_sitelib}/sortedcollections-%{version}*-info + +%changelog diff --git a/v2.1.0.tar.gz b/v2.1.0.tar.gz new file mode 100644 index 0000000..1ae769c --- /dev/null +++ b/v2.1.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:4a70235d04737268feaed645e11c4aa25d165f0c69114f92d71e84ecb3e99ccf +size 48563