15
0
forked from pool/python-PyTrie

Accepting request 689249 from home:mcepl:branches:devel:languages:python

OBS-URL: https://build.opensuse.org/request/show/689249
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-PyTrie?expand=0&rev=1
This commit is contained in:
Tomáš Chvátal
2019-03-28 08:19:08 +00:00
committed by Git OBS Bridge
commit 7030da34b9
5 changed files with 111 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@@ -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

1
.gitignore vendored Normal file
View File

@@ -0,0 +1 @@
.osc

3
PyTrie-0.3.1.tar.gz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:3bb7d122a549d8006c9cba2feecac20bceda9f8c0e2a3fa99a5584cfe0dec523
size 94678

18
python-PyTrie.changes Normal file
View File

@@ -0,0 +1,18 @@
-------------------------------------------------------------------
Mon Mar 25 18:08:11 CET 2019 - Matej Cepl <mcepl@suse.com>
- 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 <adam@mizerski.pl>
- new package (version 0.2)

66
python-PyTrie.spec Normal file
View File

@@ -0,0 +1,66 @@
#
# spec file for package python-PyTrie
#
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
#
# 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/
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%bcond_without test
Name: python-PyTrie
Version: 0.3.1
Release: 0
Summary: A pure Python implementation of the trie data structure
License: BSD-3-Clause
Group: Development/Languages/Python
URL: https://github.com/gsakkis/pytrie/
Source: https://files.pythonhosted.org/packages/source/P/PyTrie/PyTrie-%{version}.tar.gz
BuildRequires: %{python_module devel}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module sortedcontainers}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
BuildRequires: python3-testsuite
Requires: python-sortedcontainers
BuildArch: noarch
%python_subpackages
%description
Pytrie is a a pure Python (2 and 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}
%build
%python_build
%install
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
%python_expand py.test-%{$python_bin_suffix} -v -k 'not (test_empty_string or test_items_wprefix or test_keys_wprefix or test_values_wprefix)'
%files %{python_files}
%doc README.md
%{python_sitelib}/*
%changelog