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,3 +1,22 @@
-------------------------------------------------------------------
Tue May 14 18:27:23 UTC 2019 - John Jolly <jjolly@suse.com>
- 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
------------------------------------------------------------------- -------------------------------------------------------------------
Fri Jun 15 20:40:25 UTC 2018 - toddrme2178@gmail.com Fri Jun 15 20:40:25 UTC 2018 - toddrme2178@gmail.com

View File

@@ -1,7 +1,7 @@
# #
# spec file for package python-quicktions # 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 # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # 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) # license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative. # 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-%{**}} %{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-quicktions Name: python-quicktions
Version: 1.6 Version: 1.9
Release: 0 Release: 0
License: Python-2.0
Summary: Fast fractions data type for rational numbers Summary: Fast fractions data type for rational numbers
Url: https://github.com/scoder/quicktions License: Python-2.0
Group: Development/Languages/Python Group: Development/Languages/Python
Url: https://github.com/scoder/quicktions
Source: https://files.pythonhosted.org/packages/source/q/quicktions/quicktions-%{version}.tar.gz Source: https://files.pythonhosted.org/packages/source/q/quicktions/quicktions-%{version}.tar.gz
BuildRequires: %{python_module Cython} BuildRequires: %{python_module Cython}
BuildRequires: %{python_module devel} BuildRequires: %{python_module devel}
@@ -62,10 +63,8 @@ export CFLAGS="%{optflags}"
%python_expand %fdupes %{buildroot}%{$python_sitearch} %python_expand %fdupes %{buildroot}%{$python_sitearch}
%check %check
%{python_expand export PYTHONDONTWRITEBYTECODE=1 export PYTHONDONTWRITEBYTECODE=1
export PYTHONPATH=%{buildroot}%{$python_sitearch} %pytest_arch --capture=no
py.test-%{$python_bin_suffix} src/test_fractions.py --capture=no --strict
}
%files %{python_files} %files %{python_files}
%doc CHANGES.rst README.rst %doc CHANGES.rst README.rst

View File

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

3
quicktions-1.9.tar.gz Normal file
View File

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