1
0
Files
python-intervaltree/python-intervaltree.spec

65 lines
2.0 KiB
RPMSpec
Raw Permalink Normal View History

#
# spec file for package python-intervaltree
#
# Copyright (c) 2022 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.
Accepting request 662875 from home:TheBlackCat:branches:devel:languages:python:numeric - Update to Version 3.0.2 + Fixed: * On some systems, setup.py opened README.md with a non-unicode encoding. My fault for leaving the encoding flapping in the breeze. It's been fixed. - Update to Version 3.0.1 + Added: * Travis testing for 3.7 and 3.8-dev. These needed OpenSSL, sudo and Xenial. 3.8-dev is allowed to fail. + Fixed: * PyPI wasn't rendering markdown because I didn't tell it what format to use. * Python 2 wasn't installing via pip because of a new utils package. It has been zapped. + Maintainers: * TestPyPI version strings use .postN as the suffix instead of bN, and N counts from the latest tagged commit, which should be the last release * Install from TestPyPI works via make install-testpypi - Update to Version 3.0.0 + Breaking: * search(begin, end, strict) has been replaced with at(point), overlap(begin, end), and envelop(begin, end) * extend(items) has been deleted, use update(items) instead * Methods that take a strict=True/False argument now consistently default to strict=True * Dropped support for Python 2.6, 3.2, and 3.3 * Add support for Python 3.5, 3.6, and 3.7 * Faster Interval overlap checking (@tuxzz, #56) + Updated README: * new restructuring methods from 2.1.0 * example of from_tuples() added * more info about chop(), split_overlaps(), merge_overlaps() and merge_equals(). + Fixes: * Node.from_tuples() will now raise an error if given an empty iterable. This should never happen, and it should error if it does. * Interval.distance_to() gave an incorrect distance when passed the Interval's upper boundary * Node.pop_greatest_child() sometimes forgot to rotate() when creating new child nodes. (@escalonn, #41, #42) * IntervalTree.begin() and end() are O(1), not O(n). (@ProgVal, #40) * intersection_update() and symmetric_difference() and symmetric_difference_update() didn't actually work. Now they do. * collections.abc deprecation warning no longer happens + Maintainers: * PyPi accepts Markdown! Woohoo! * reorganize tests * more tests added to improve code coverage (We're at 96%! Yay!) * test for issue #4 had a broken import reference OBS-URL: https://build.opensuse.org/request/show/662875 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-intervaltree?expand=0&rev=5
2019-01-04 17:48:42 +00:00
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-intervaltree
Version: 3.1.0
Release: 0
Summary: Editable interval tree data structure for Python
Accepting request 662875 from home:TheBlackCat:branches:devel:languages:python:numeric - Update to Version 3.0.2 + Fixed: * On some systems, setup.py opened README.md with a non-unicode encoding. My fault for leaving the encoding flapping in the breeze. It's been fixed. - Update to Version 3.0.1 + Added: * Travis testing for 3.7 and 3.8-dev. These needed OpenSSL, sudo and Xenial. 3.8-dev is allowed to fail. + Fixed: * PyPI wasn't rendering markdown because I didn't tell it what format to use. * Python 2 wasn't installing via pip because of a new utils package. It has been zapped. + Maintainers: * TestPyPI version strings use .postN as the suffix instead of bN, and N counts from the latest tagged commit, which should be the last release * Install from TestPyPI works via make install-testpypi - Update to Version 3.0.0 + Breaking: * search(begin, end, strict) has been replaced with at(point), overlap(begin, end), and envelop(begin, end) * extend(items) has been deleted, use update(items) instead * Methods that take a strict=True/False argument now consistently default to strict=True * Dropped support for Python 2.6, 3.2, and 3.3 * Add support for Python 3.5, 3.6, and 3.7 * Faster Interval overlap checking (@tuxzz, #56) + Updated README: * new restructuring methods from 2.1.0 * example of from_tuples() added * more info about chop(), split_overlaps(), merge_overlaps() and merge_equals(). + Fixes: * Node.from_tuples() will now raise an error if given an empty iterable. This should never happen, and it should error if it does. * Interval.distance_to() gave an incorrect distance when passed the Interval's upper boundary * Node.pop_greatest_child() sometimes forgot to rotate() when creating new child nodes. (@escalonn, #41, #42) * IntervalTree.begin() and end() are O(1), not O(n). (@ProgVal, #40) * intersection_update() and symmetric_difference() and symmetric_difference_update() didn't actually work. Now they do. * collections.abc deprecation warning no longer happens + Maintainers: * PyPi accepts Markdown! Woohoo! * reorganize tests * more tests added to improve code coverage (We're at 96%! Yay!) * test for issue #4 had a broken import reference OBS-URL: https://build.opensuse.org/request/show/662875 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-intervaltree?expand=0&rev=5
2019-01-04 17:48:42 +00:00
License: Apache-2.0
Group: Development/Languages/Python
URL: https://github.com/chaimleib/intervaltree
Source: https://files.pythonhosted.org/packages/source/i/intervaltree/intervaltree-%{version}.tar.gz
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
# SECTION test requirements
BuildRequires: %{python_module pytest}
Accepting request 662875 from home:TheBlackCat:branches:devel:languages:python:numeric - Update to Version 3.0.2 + Fixed: * On some systems, setup.py opened README.md with a non-unicode encoding. My fault for leaving the encoding flapping in the breeze. It's been fixed. - Update to Version 3.0.1 + Added: * Travis testing for 3.7 and 3.8-dev. These needed OpenSSL, sudo and Xenial. 3.8-dev is allowed to fail. + Fixed: * PyPI wasn't rendering markdown because I didn't tell it what format to use. * Python 2 wasn't installing via pip because of a new utils package. It has been zapped. + Maintainers: * TestPyPI version strings use .postN as the suffix instead of bN, and N counts from the latest tagged commit, which should be the last release * Install from TestPyPI works via make install-testpypi - Update to Version 3.0.0 + Breaking: * search(begin, end, strict) has been replaced with at(point), overlap(begin, end), and envelop(begin, end) * extend(items) has been deleted, use update(items) instead * Methods that take a strict=True/False argument now consistently default to strict=True * Dropped support for Python 2.6, 3.2, and 3.3 * Add support for Python 3.5, 3.6, and 3.7 * Faster Interval overlap checking (@tuxzz, #56) + Updated README: * new restructuring methods from 2.1.0 * example of from_tuples() added * more info about chop(), split_overlaps(), merge_overlaps() and merge_equals(). + Fixes: * Node.from_tuples() will now raise an error if given an empty iterable. This should never happen, and it should error if it does. * Interval.distance_to() gave an incorrect distance when passed the Interval's upper boundary * Node.pop_greatest_child() sometimes forgot to rotate() when creating new child nodes. (@escalonn, #41, #42) * IntervalTree.begin() and end() are O(1), not O(n). (@ProgVal, #40) * intersection_update() and symmetric_difference() and symmetric_difference_update() didn't actually work. Now they do. * collections.abc deprecation warning no longer happens + Maintainers: * PyPi accepts Markdown! Woohoo! * reorganize tests * more tests added to improve code coverage (We're at 96%! Yay!) * test for issue #4 had a broken import reference OBS-URL: https://build.opensuse.org/request/show/662875 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-intervaltree?expand=0&rev=5
2019-01-04 17:48:42 +00:00
BuildRequires: %{python_module sortedcontainers}
# /SECTION
Requires: python-sortedcontainers
BuildArch: noarch
%python_subpackages
%description
A mutable, self-balancing interval tree for Python 2 and 3. Queries may
be by point, by range overlap, or by range envelopment.
This library was designed to allow tagging text and time intervals,
where the intervals include the lower bound but not the upper bound.
%prep
%setup -q -n intervaltree-%{version}
Accepting request 662875 from home:TheBlackCat:branches:devel:languages:python:numeric - Update to Version 3.0.2 + Fixed: * On some systems, setup.py opened README.md with a non-unicode encoding. My fault for leaving the encoding flapping in the breeze. It's been fixed. - Update to Version 3.0.1 + Added: * Travis testing for 3.7 and 3.8-dev. These needed OpenSSL, sudo and Xenial. 3.8-dev is allowed to fail. + Fixed: * PyPI wasn't rendering markdown because I didn't tell it what format to use. * Python 2 wasn't installing via pip because of a new utils package. It has been zapped. + Maintainers: * TestPyPI version strings use .postN as the suffix instead of bN, and N counts from the latest tagged commit, which should be the last release * Install from TestPyPI works via make install-testpypi - Update to Version 3.0.0 + Breaking: * search(begin, end, strict) has been replaced with at(point), overlap(begin, end), and envelop(begin, end) * extend(items) has been deleted, use update(items) instead * Methods that take a strict=True/False argument now consistently default to strict=True * Dropped support for Python 2.6, 3.2, and 3.3 * Add support for Python 3.5, 3.6, and 3.7 * Faster Interval overlap checking (@tuxzz, #56) + Updated README: * new restructuring methods from 2.1.0 * example of from_tuples() added * more info about chop(), split_overlaps(), merge_overlaps() and merge_equals(). + Fixes: * Node.from_tuples() will now raise an error if given an empty iterable. This should never happen, and it should error if it does. * Interval.distance_to() gave an incorrect distance when passed the Interval's upper boundary * Node.pop_greatest_child() sometimes forgot to rotate() when creating new child nodes. (@escalonn, #41, #42) * IntervalTree.begin() and end() are O(1), not O(n). (@ProgVal, #40) * intersection_update() and symmetric_difference() and symmetric_difference_update() didn't actually work. Now they do. * collections.abc deprecation warning no longer happens + Maintainers: * PyPi accepts Markdown! Woohoo! * reorganize tests * more tests added to improve code coverage (We're at 96%! Yay!) * test for issue #4 had a broken import reference OBS-URL: https://build.opensuse.org/request/show/662875 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-intervaltree?expand=0&rev=5
2019-01-04 17:48:42 +00:00
# Fix non-executable script
sed -i -e '/^#!\//, 1d' intervaltree/*.py
%build
%python_build
%install
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%files %{python_files}
Accepting request 662875 from home:TheBlackCat:branches:devel:languages:python:numeric - Update to Version 3.0.2 + Fixed: * On some systems, setup.py opened README.md with a non-unicode encoding. My fault for leaving the encoding flapping in the breeze. It's been fixed. - Update to Version 3.0.1 + Added: * Travis testing for 3.7 and 3.8-dev. These needed OpenSSL, sudo and Xenial. 3.8-dev is allowed to fail. + Fixed: * PyPI wasn't rendering markdown because I didn't tell it what format to use. * Python 2 wasn't installing via pip because of a new utils package. It has been zapped. + Maintainers: * TestPyPI version strings use .postN as the suffix instead of bN, and N counts from the latest tagged commit, which should be the last release * Install from TestPyPI works via make install-testpypi - Update to Version 3.0.0 + Breaking: * search(begin, end, strict) has been replaced with at(point), overlap(begin, end), and envelop(begin, end) * extend(items) has been deleted, use update(items) instead * Methods that take a strict=True/False argument now consistently default to strict=True * Dropped support for Python 2.6, 3.2, and 3.3 * Add support for Python 3.5, 3.6, and 3.7 * Faster Interval overlap checking (@tuxzz, #56) + Updated README: * new restructuring methods from 2.1.0 * example of from_tuples() added * more info about chop(), split_overlaps(), merge_overlaps() and merge_equals(). + Fixes: * Node.from_tuples() will now raise an error if given an empty iterable. This should never happen, and it should error if it does. * Interval.distance_to() gave an incorrect distance when passed the Interval's upper boundary * Node.pop_greatest_child() sometimes forgot to rotate() when creating new child nodes. (@escalonn, #41, #42) * IntervalTree.begin() and end() are O(1), not O(n). (@ProgVal, #40) * intersection_update() and symmetric_difference() and symmetric_difference_update() didn't actually work. Now they do. * collections.abc deprecation warning no longer happens + Maintainers: * PyPi accepts Markdown! Woohoo! * reorganize tests * more tests added to improve code coverage (We're at 96%! Yay!) * test for issue #4 had a broken import reference OBS-URL: https://build.opensuse.org/request/show/662875 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-intervaltree?expand=0&rev=5
2019-01-04 17:48:42 +00:00
%doc CHANGELOG.md README.md
%license LICENSE.txt
%{python_sitelib}/*
%changelog