14
0

Accepting request 702945 from home:jjolly:branches:devel:languages:python

- Update to 1.9
  + Substantially faster normalisation (and therefore instantiation)
    in Py3.5+.
  + // (floordiv) now follows the expected rounding behaviour when used
    with floats (by converting to float first), and is much faster for
    integer operations.
  + Fix return type of divmod(), where the first item should be an integer.
  + Further speed up mod and divmod operations.
- Update to 1.8
  + Faster mod and divmod calculation.
- Update to 1.7
  + Faster normalisation and fraction string parsing.
  + Add support for Python 3.7.
  + Built using Cython 0.29.
- Changed %check to use %pytest_arch

OBS-URL: https://build.opensuse.org/request/show/702945
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-quicktions?expand=0&rev=5
This commit is contained in:
Tomáš Chvátal
2019-05-14 18:56:45 +00:00
committed by Git OBS Bridge
parent 3597de1543
commit 0ff2f21b8b
4 changed files with 30 additions and 12 deletions

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-quicktions
#
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
# 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
@@ -12,17 +12,18 @@
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-quicktions
Version: 1.6
Version: 1.9
Release: 0
License: Python-2.0
Summary: Fast fractions data type for rational numbers
Url: https://github.com/scoder/quicktions
License: Python-2.0
Group: Development/Languages/Python
Url: https://github.com/scoder/quicktions
Source: https://files.pythonhosted.org/packages/source/q/quicktions/quicktions-%{version}.tar.gz
BuildRequires: %{python_module Cython}
BuildRequires: %{python_module devel}
@@ -62,10 +63,8 @@ export CFLAGS="%{optflags}"
%python_expand %fdupes %{buildroot}%{$python_sitearch}
%check
%{python_expand export PYTHONDONTWRITEBYTECODE=1
export PYTHONPATH=%{buildroot}%{$python_sitearch}
py.test-%{$python_bin_suffix} src/test_fractions.py --capture=no --strict
}
export PYTHONDONTWRITEBYTECODE=1
%pytest_arch --capture=no
%files %{python_files}
%doc CHANGES.rst README.rst