From 5853f6424f0cb4453b1ef6fd1927e4f40c1b07019816b5604169a01bdcf844d5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Mon, 2 Dec 2019 07:39:05 +0000 Subject: [PATCH] Accepting request 752673 from home:apersaud:branches:devel:languages:python:numeric update to latest version OBS-URL: https://build.opensuse.org/request/show/752673 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-numericalunits?expand=0&rev=10 --- numericalunits-1.23.tar.gz | 3 --- numericalunits-1.24.tar.gz | 3 +++ python-numericalunits.changes | 11 +++++++++++ python-numericalunits.spec | 10 +++++----- tests.py | 2 +- 5 files changed, 20 insertions(+), 9 deletions(-) delete mode 100644 numericalunits-1.23.tar.gz create mode 100644 numericalunits-1.24.tar.gz diff --git a/numericalunits-1.23.tar.gz b/numericalunits-1.23.tar.gz deleted file mode 100644 index 946b25f..0000000 --- a/numericalunits-1.23.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:fe09fbfb72468c2813587b0484542e26dd0a4283c1005c9840f24cd0fbcf32e0 -size 14553 diff --git a/numericalunits-1.24.tar.gz b/numericalunits-1.24.tar.gz new file mode 100644 index 0000000..b67b124 --- /dev/null +++ b/numericalunits-1.24.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1a069e03036b3b68d48c6b02ab7e9ea90ccf01bbc83688ed3319f70c2e9ec772 +size 15164 diff --git a/python-numericalunits.changes b/python-numericalunits.changes index 161a7d4..b23932a 100644 --- a/python-numericalunits.changes +++ b/python-numericalunits.changes @@ -1,3 +1,14 @@ +------------------------------------------------------------------- +Sun Dec 1 03:32:39 UTC 2019 - Arun Persaud + +- specfile: + - disable python2 + +- update to version 1.24: + * drop support for python 2 + * update to latest CODATA + * add more acceleration-related units. + ------------------------------------------------------------------- Fri May 24 08:00:27 UTC 2019 - John Vandenberg diff --git a/python-numericalunits.spec b/python-numericalunits.spec index e42955b..143236b 100644 --- a/python-numericalunits.spec +++ b/python-numericalunits.spec @@ -1,7 +1,7 @@ # # spec file for package python-numericalunits # -# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2019 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -17,13 +17,14 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} +%define skip_python2 1 Name: python-numericalunits -Version: 1.23 +Version: 1.24 Release: 0 Summary: Python module for defining quantities with units License: MIT Group: Development/Languages/Python -Url: https://github.com/sbyrnes321/numericalunits +URL: https://github.com/sbyrnes321/numericalunits Source: https://files.pythonhosted.org/packages/source/n/numericalunits/numericalunits-%{version}.tar.gz Source1: https://raw.githubusercontent.com/sbyrnes321/numericalunits/master/tests/tests.py BuildRequires: %{python_module setuptools} @@ -31,13 +32,12 @@ BuildRequires: dos2unix BuildRequires: fdupes BuildRequires: python-rpm-macros BuildArch: noarch - %python_subpackages %description Units and dimensional analysis compatible with everything -This package implements units and dimensional analysis in an unconventional +This package implements units and dimensional analysis in an unconventional way with unique advantages: * Compatible with everything diff --git a/tests.py b/tests.py index a5bd15e..403849c 100644 --- a/tests.py +++ b/tests.py @@ -17,7 +17,7 @@ class TestStuff(unittest.TestCase): def test_everything(self): """just some very basic smoke tests""" - # example from README + # example from README x = 5 * nu.mL self.assert_almost_equal(x, 5e21 * nu.nm**3, rtol=1e-9)