Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-particle for openSUSE:Factory 
checked in at 2022-01-21 01:25:43
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-particle (Old)
 and      /work/SRC/openSUSE:Factory/.python-particle.new.1938 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-particle"

Fri Jan 21 01:25:43 2022 rev:11 rq:947749 version:0.20.0

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-particle/python-particle.changes  
2021-09-20 23:34:34.283278700 +0200
+++ 
/work/SRC/openSUSE:Factory/.python-particle.new.1938/python-particle.changes    
    2022-01-21 01:26:24.402181403 +0100
@@ -1,0 +2,20 @@
+Thu Jan 20 17:31:09 UTC 2022 - Atri Bhattacharya <[email protected]>
+
+- Update to version 0.20.0:
+  * Particle class:
+    - Deprecated method find method removed. Use findall or
+      finditer instead.
+    - HTML Greek letters in particle names use hex code rather
+      than entity name.
+  * PDGID class method and related standalone functions:
+    Deprecated function is_composite_quark_or_lepton removed. Use
+    is_excited_quark_or_lepton instead.
+  * Documentation: README updated with info on the new
+    experiment-specific module particle.lhcb.
+  * Miscellaneous:
+    - Support for Python 2 and Python 3.5 dropped.
+    - Full static typing implemented.
+- Update tests.tar.xz tarball to version 0.20.0.
+- New BuildRequires: python-pytest-benchmark.
+
+-------------------------------------------------------------------

Old:
----
  particle-0.16.1.tar.gz

New:
----
  particle-0.20.0.tar.gz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-particle.spec ++++++
--- /var/tmp/diff_new_pack.bC8d7r/_old  2022-01-21 01:26:24.822178525 +0100
+++ /var/tmp/diff_new_pack.bC8d7r/_new  2022-01-21 01:26:24.826178497 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package python-particle
 #
-# Copyright (c) 2021 SUSE LLC
+# 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
@@ -19,7 +19,7 @@
 %global modname particle
 %define skip_python2 1
 Name:           python-particle
-Version:        0.16.1
+Version:        0.20.0
 Release:        0
 Summary:        PDG particle data and identification codes
 License:        BSD-3-Clause
@@ -41,6 +41,7 @@
 BuildRequires:  %{python_module Deprecated}
 BuildRequires:  %{python_module hepunits}
 BuildRequires:  %{python_module importlib_resources}
+BuildRequires:  %{python_module pytest-benchmark}
 BuildRequires:  %{python_module pytest}
 # /SECTION
 %python_subpackages

++++++ _service ++++++
--- /var/tmp/diff_new_pack.bC8d7r/_old  2022-01-21 01:26:24.862178250 +0100
+++ /var/tmp/diff_new_pack.bC8d7r/_new  2022-01-21 01:26:24.866178222 +0100
@@ -2,7 +2,7 @@
        <service name="tar_scm" mode="disabled">
                <param 
name="url">https://github.com/scikit-hep/particle.git</param>
                <param name="scm">git</param>
-               <param name="revision">v0.16.1</param>
+               <param name="revision">v0.20.0</param>
                <param name="subdir">tests</param>
                <param name="version">_none_</param>
                <param name="filename">tests</param>

++++++ particle-0.16.1.tar.gz -> particle-0.20.0.tar.gz ++++++
++++ 4631 lines of diff (skipped)

++++++ tests.tar.xz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/tests/__init__.py new/tests/__init__.py
--- old/tests/__init__.py       2021-09-11 04:45:58.000000000 +0200
+++ new/tests/__init__.py       2022-01-15 18:07:50.000000000 +0100
@@ -1,5 +1,4 @@
-# -*- coding: utf-8 -*-
-# Copyright (c) 2018-2021, Eduardo Rodrigues and Henry Schreiner.
+# Copyright (c) 2018-2022, Eduardo Rodrigues and Henry Schreiner.
 #
 # Distributed under the 3-clause BSD license, see accompanying file LICENSE
 # or https://github.com/scikit-hep/particle for details.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/tests/conftest.py new/tests/conftest.py
--- old/tests/conftest.py       2021-09-11 04:45:58.000000000 +0200
+++ new/tests/conftest.py       2022-01-15 18:07:50.000000000 +0100
@@ -1,10 +1,8 @@
-# -*- coding: utf-8 -*-
-# Copyright (c) 2018-2021, Eduardo Rodrigues and Henry Schreiner.
+# Copyright (c) 2018-2022, Eduardo Rodrigues and Henry Schreiner.
 #
 # Distributed under the 3-clause BSD license, see accompanying file LICENSE
 # or https://github.com/scikit-hep/particle for details.
 
-# Backport needed if Python 2 is used
 from enum import IntEnum
 
 import pytest
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/tests/converters/__init__.py 
new/tests/converters/__init__.py
--- old/tests/converters/__init__.py    2021-09-11 04:45:58.000000000 +0200
+++ new/tests/converters/__init__.py    2022-01-15 18:07:50.000000000 +0100
@@ -1,5 +1,4 @@
-# -*- coding: utf-8 -*-
-# Copyright (c) 2018-2021, Eduardo Rodrigues and Henry Schreiner.
+# Copyright (c) 2018-2022, Eduardo Rodrigues and Henry Schreiner.
 #
 # Distributed under the 3-clause BSD license, see accompanying file LICENSE
 # or https://github.com/scikit-hep/particle for details.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/tests/converters/test_maps.py 
new/tests/converters/test_maps.py
--- old/tests/converters/test_maps.py   2021-09-11 04:45:58.000000000 +0200
+++ new/tests/converters/test_maps.py   2022-01-15 18:07:50.000000000 +0100
@@ -1,5 +1,4 @@
-# -*- coding: utf-8 -*-
-# Copyright (c) 2018-2021, Eduardo Rodrigues and Henry Schreiner.
+# Copyright (c) 2018-2022, Eduardo Rodrigues and Henry Schreiner.
 #
 # Distributed under the 3-clause BSD license, see accompanying file LICENSE
 # or https://github.com/scikit-hep/particle for details.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/tests/geant/__init__.py new/tests/geant/__init__.py
--- old/tests/geant/__init__.py 2021-09-11 04:45:58.000000000 +0200
+++ new/tests/geant/__init__.py 2022-01-15 18:07:50.000000000 +0100
@@ -1,5 +1,4 @@
-# -*- coding: utf-8 -*-
-# Copyright (c) 2018-2021, Eduardo Rodrigues and Henry Schreiner.
+# Copyright (c) 2018-2022, Eduardo Rodrigues and Henry Schreiner.
 #
 # Distributed under the 3-clause BSD license, see accompanying file LICENSE
 # or https://github.com/scikit-hep/particle for details.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/tests/geant/test_geant3id.py 
new/tests/geant/test_geant3id.py
--- old/tests/geant/test_geant3id.py    2021-09-11 04:45:58.000000000 +0200
+++ new/tests/geant/test_geant3id.py    2022-01-15 18:07:50.000000000 +0100
@@ -1,5 +1,4 @@
-# -*- coding: utf-8 -*-
-# Copyright (c) 2018-2021, Eduardo Rodrigues and Henry Schreiner.
+# Copyright (c) 2018-2022, Eduardo Rodrigues and Henry Schreiner.
 #
 # Distributed under the 3-clause BSD license, see accompanying file LICENSE
 # or https://github.com/scikit-hep/particle for details.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/tests/lhcb/test_lhcb_name.py 
new/tests/lhcb/test_lhcb_name.py
--- old/tests/lhcb/test_lhcb_name.py    1970-01-01 01:00:00.000000000 +0100
+++ new/tests/lhcb/test_lhcb_name.py    2022-01-15 18:07:50.000000000 +0100
@@ -0,0 +1,33 @@
+# Copyright (c) 2018-2022, Eduardo Rodrigues and Henry Schreiner.
+#
+# Distributed under the 3-clause BSD license, see accompanying file LICENSE
+# or https://github.com/scikit-hep/particle for details.
+
+import pytest
+
+from particle import Particle
+from particle.lhcb import from_lhcb_name, to_lhcb_name
+
+lhcb_style_names = (
+    ("nu_tau", 16),
+    ("nu_tau~", -16),
+    ("eta_prime", 331),
+    ("f'_2(1525)", 335),
+    ("D*_s+", 433),
+    ("D*_s-", -433),
+    ("B_s0", 531),
+    ("B_s~0", -531),
+    ("Lambda_b0", 5122),
+    ("Lambda_b~0", -5122),
+    # ("X_1(3872)", 9920443),
+)
+
+
[email protected]("name,pid", lhcb_style_names)
+def test_from_lhcb_name(name, pid):
+    assert from_lhcb_name(name).pdgid == pid
+
+
[email protected]("name,pid", lhcb_style_names)
+def test_to_lhcb_name(name, pid):
+    assert to_lhcb_name(Particle.from_pdgid(pid)) == name
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/tests/particle/__init__.py 
new/tests/particle/__init__.py
--- old/tests/particle/__init__.py      2021-09-11 04:45:58.000000000 +0200
+++ new/tests/particle/__init__.py      2022-01-15 18:07:50.000000000 +0100
@@ -1,5 +1,4 @@
-# -*- coding: utf-8 -*-
-# Copyright (c) 2018-2021, Eduardo Rodrigues and Henry Schreiner.
+# Copyright (c) 2018-2022, Eduardo Rodrigues and Henry Schreiner.
 #
 # Distributed under the 3-clause BSD license, see accompanying file LICENSE
 # or https://github.com/scikit-hep/particle for details.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/tests/particle/test_convert.py 
new/tests/particle/test_convert.py
--- old/tests/particle/test_convert.py  2021-09-11 04:45:58.000000000 +0200
+++ new/tests/particle/test_convert.py  2022-01-15 18:07:50.000000000 +0100
@@ -1,5 +1,4 @@
-# -*- coding: utf-8 -*-
-# Copyright (c) 2018-2021, Eduardo Rodrigues and Henry Schreiner.
+# Copyright (c) 2018-2022, Eduardo Rodrigues and Henry Schreiner.
 #
 # Distributed under the 3-clause BSD license, see accompanying file LICENSE
 # or https://github.com/scikit-hep/particle for details.
@@ -9,13 +8,9 @@
 # Requires pandas
 pd = pytest.importorskip("pandas")
 
-from particle.particle.convert import get_from_pdg_mcd
-
-try:
-    from pathlib2 import Path
-except ImportError:
-    from pathlib import Path
+from pathlib import Path
 
+from particle.particle.convert import get_from_pdg_mcd
 
 DIR = Path(__file__).parent.resolve()
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/tests/particle/test_decfilenames.py 
new/tests/particle/test_decfilenames.py
--- old/tests/particle/test_decfilenames.py     2021-09-11 04:45:58.000000000 
+0200
+++ new/tests/particle/test_decfilenames.py     2022-01-15 18:07:50.000000000 
+0100
@@ -1,10 +1,8 @@
-# -*- coding: utf-8 -*-
-# Copyright (c) 2018-2021, Eduardo Rodrigues and Henry Schreiner.
+# Copyright (c) 2018-2022, Eduardo Rodrigues and Henry Schreiner.
 #
 # Distributed under the 3-clause BSD license, see accompanying file LICENSE
 # or https://github.com/scikit-hep/particle for details.
 
-from __future__ import absolute_import, division, print_function
 
 from particle.particle import Particle, ParticleNotFound
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/tests/particle/test_enums.py 
new/tests/particle/test_enums.py
--- old/tests/particle/test_enums.py    2021-09-11 04:45:58.000000000 +0200
+++ new/tests/particle/test_enums.py    2022-01-15 18:07:50.000000000 +0100
@@ -1,10 +1,8 @@
-# -*- coding: utf-8 -*-
-# Copyright (c) 2018-2021, Eduardo Rodrigues and Henry Schreiner.
+# Copyright (c) 2018-2022, Eduardo Rodrigues and Henry Schreiner.
 #
 # Distributed under the 3-clause BSD license, see accompanying file LICENSE
 # or https://github.com/scikit-hep/particle for details.
 
-from __future__ import absolute_import, division, print_function
 
 from particle.particle.enums import Charge, SpinType
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/tests/particle/test_generation.py 
new/tests/particle/test_generation.py
--- old/tests/particle/test_generation.py       2021-09-11 04:45:58.000000000 
+0200
+++ new/tests/particle/test_generation.py       2022-01-15 18:07:50.000000000 
+0100
@@ -1,5 +1,4 @@
-# -*- coding: utf-8 -*-
-# Copyright (c) 2018-2021, Eduardo Rodrigues and Henry Schreiner.
+# Copyright (c) 2018-2022, Eduardo Rodrigues and Henry Schreiner.
 #
 # Distributed under the 3-clause BSD license, see accompanying file LICENSE
 # or https://github.com/scikit-hep/particle for details.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/tests/particle/test_kinematics.py 
new/tests/particle/test_kinematics.py
--- old/tests/particle/test_kinematics.py       2021-09-11 04:45:58.000000000 
+0200
+++ new/tests/particle/test_kinematics.py       2022-01-15 18:07:50.000000000 
+0100
@@ -1,5 +1,4 @@
-# -*- coding: utf-8 -*-
-# Copyright (c) 2018-2021, Eduardo Rodrigues and Henry Schreiner.
+# Copyright (c) 2018-2022, Eduardo Rodrigues and Henry Schreiner.
 #
 # Distributed under the 3-clause BSD license, see accompanying file LICENSE
 # or https://github.com/scikit-hep/particle for details.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/tests/particle/test_literals.py 
new/tests/particle/test_literals.py
--- old/tests/particle/test_literals.py 2021-09-11 04:45:58.000000000 +0200
+++ new/tests/particle/test_literals.py 2022-01-15 18:07:50.000000000 +0100
@@ -1,10 +1,8 @@
-# -*- coding: utf-8 -*-
-# Copyright (c) 2018-2021, Eduardo Rodrigues and Henry Schreiner.
+# Copyright (c) 2018-2022, Eduardo Rodrigues and Henry Schreiner.
 #
 # Distributed under the 3-clause BSD license, see accompanying file LICENSE
 # or https://github.com/scikit-hep/particle for details.
 
-from __future__ import division
 
 from particle import literals as lp
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/tests/particle/test_particle.py 
new/tests/particle/test_particle.py
--- old/tests/particle/test_particle.py 2021-09-11 04:45:58.000000000 +0200
+++ new/tests/particle/test_particle.py 2022-01-15 18:07:50.000000000 +0100
@@ -1,12 +1,8 @@
-# -*- coding: utf-8 -*-
-# Copyright (c) 2018-2021, Eduardo Rodrigues and Henry Schreiner.
+# Copyright (c) 2018-2022, Eduardo Rodrigues and Henry Schreiner.
 #
 # Distributed under the 3-clause BSD license, see accompanying file LICENSE
 # or https://github.com/scikit-hep/particle for details.
 
-from __future__ import absolute_import, division, print_function
-
-import sys
 
 import pytest
 from hepunits import meter, second
@@ -20,21 +16,6 @@
 from particle.pdgid.functions import Location, _digit
 
 
-def test_find():
-    # 1 match found
-    with pytest.deprecated_call():
-        prepr = repr(Particle.find(name="gamma"))
-    assert prepr == '<Particle: name="gamma", pdgid=22, mass=0.0 MeV>'
-
-    # No match found
-    with pytest.deprecated_call(), pytest.raises(ParticleNotFound):
-        Particle.find(name="NotInPDT")
-
-    # Multiple matches found
-    with pytest.deprecated_call(), pytest.raises(RuntimeError):
-        Particle.find(name=lambda x: "Upsilon" in x)
-
-
 def test_sorted_find():
     assert Particle.findall() == sorted(Particle.finditer())
 
@@ -313,14 +294,14 @@
     # Test print-out of zero width values
     [22, "Width = 0.0 MeV"],  # photon
     # Test print-out of symmetric width errors
-    [413, u"Width = 0.0834 ?? 0.0018 MeV"],  # D*(2010)+
-    [443, u"Width = 0.0926 ?? 0.0017 MeV"],  # J/psi
+    [413, "Width = 0.0834 ?? 0.0018 MeV"],  # D*(2010)+
+    [443, "Width = 0.0926 ?? 0.0017 MeV"],  # J/psi
     # Test print-out of asymmetric width errors
     [4222, "Width = 1.89 + 0.09 - 0.18 MeV"],  # Sigma_c(2455)++
-    [23, u"Width = 2495.2 ?? 2.3 MeV"],  # H0
+    [23, "Width = 2495.2 ?? 2.3 MeV"],  # H0
     # Test print-out of symmetric lifetime errors
-    [5332, u"Lifetime = 1.65e-03 + 1.8e-04 - 1.8e-04 ns"],  # Omega_b-
-    [211, u"Lifetime = 26.033 ?? 0.005 ns"],  # pion
+    [5332, "Lifetime = 1.65e-03 + 1.8e-04 - 1.8e-04 ns"],  # Omega_b-
+    [211, "Lifetime = 26.033 ?? 0.005 ns"],  # pion
     # Test print-out of asymmetric lifetime errors
     [4332, "Lifetime = 2.7e-04 + 3e-05 - 3e-05 ns"],  # Omega_c^0
     # Test particles with at present an upper limit on their width
@@ -330,9 +311,6 @@
     [4212, "Width < 4.6 MeV"],  # Sigma(c)(2455)+
     [4214, "Width < 17.0 MeV"],  # Sigma(c)(2520)+
 )
-if sys.version_info < (3, 0):
-    for i, pair_vals in enumerate(checklist_describe):
-        checklist_describe[i][1] = pair_vals[1].replace(u"??", u"+/-")
 
 
 @pytest.mark.parametrize("pid,description", checklist_describe)
@@ -377,15 +355,15 @@
 
 
 checklist_html_name = (
-    (22, "&gamma;"),  # photon
+    (22, "&#x03b3;"),  # photon
     (1, "d"),  # d quark
     (-2, "u&#773;"),  # u antiquark
     (11, "e<SUP>-</SUP>"),  # e-
-    (-13, "&mu;<SUP>+</SUP>"),  # mu+
-    (-14, "&nu;&#773;<SUB>&mu;</SUB>"),  # nu_mu_bar
-    (111, "&pi;<SUP>0</SUP>"),  # pi0
-    (-211, "&pi;<SUP>-</SUP>"),  # pi-
-    (-213, "&rho;(770)<SUP>-</SUP>"),  # rho(770)-
+    (-13, "&#x03bc;<SUP>+</SUP>"),  # mu+
+    (-14, "&#x03bd;&#773;<SUB>&#x03bc;</SUB>"),  # nu_mu_bar
+    (111, "&#x03c0;<SUP>0</SUP>"),  # pi0
+    (-211, "&#x03c0;<SUP>-</SUP>"),  # pi-
+    (-213, "&#x03c1;(770)<SUP>-</SUP>"),  # rho(770)-
     (20213, "a<SUB>1</SUB>(1260)<SUP>+</SUP>"),  # a_1(1260)+
     (321, "K<SUP>+</SUP>"),  # K+
     (130, "K<SUB>L</SUB><SUP>0</SUP>"),  # K_L
@@ -393,19 +371,18 @@
     (-10321, "K<SUB>0</SUB><SUP>*</SUP>(1430)<SUP>-</SUP>"),  # K(0)*(1430)-
     (10433, "D<SUB>s1</SUB>(2536)<SUP>+</SUP>"),  # D_s1(2536)+
     (-511, "B&#773;<SUP>0</SUP>"),  # B0_bar
-    (443, "J/&psi;(1S)"),  # J/psi
-    (10441, "&chi;<SUB>c0</SUB>(1P)"),  # chi_c0(1P)
-    (300553, "&Upsilon;(4S)"),  # Upsilon(4S)
+    (443, "J/&#x03c8;(1S)"),  # J/psi
+    (10441, "&#x03c7;<SUB>c0</SUB>(1P)"),  # chi_c0(1P)
+    (300553, "&#x03a5;(4S)"),  # Upsilon(4S)
     (2212, "p"),  # proton
     (-2112, "n&#773;"),  # antineutron
-    (-2224, "&Delta;&#773;(1232)<SUP>--</SUP>"),  # Delta_bar(1232)--
-    (3322, "&Xi;<SUP>0</SUP>"),  # Xi0
-    (-3322, "&Xi;&#773;<SUP>0</SUP>"),  # Xi0_bar
-    (-5122, "&Lambda;&#773;<SUB>b</SUB><SUP>0</SUP>"),  # Lb0_bar
+    (-2224, "&#x0394;&#773;(1232)<SUP>--</SUP>"),  # Delta_bar(1232)--
+    (3322, "&#x039e;<SUP>0</SUP>"),  # Xi0
+    (-3322, "&#x039e;&#773;<SUP>0</SUP>"),  # Xi0_bar
+    (-5122, "&#x039b;&#773;<SUB>b</SUB><SUP>0</SUP>"),  # Lb0_bar
 )
 
 
[email protected](sys.version_info < (3, 0), reason="Requires Python 3")
 @pytest.mark.parametrize("pid,html_name", checklist_html_name)
 def test_html_name(pid, html_name):
     particle = Particle.from_pdgid(pid)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/tests/particle/test_performance.py 
new/tests/particle/test_performance.py
--- old/tests/particle/test_performance.py      1970-01-01 01:00:00.000000000 
+0100
+++ new/tests/particle/test_performance.py      2022-01-15 18:07:50.000000000 
+0100
@@ -0,0 +1,24 @@
+from particle import Particle, data
+
+
+def test_load_particle_table(benchmark):
+    benchmark(Particle.load_table, data.basepath / "particle2021.csv")
+
+
+def test_load_nuclei_append(benchmark):
+    def load_two():
+        Particle.load_table(data.basepath / "particle2021.csv")
+        Particle.load_table(data.basepath / "nuclei2020.csv", append=True)
+
+    benchmark(load_two)
+
+
+def test_from_pdgid(benchmark):
+    Particle.load_table(data.basepath / "particle2021.csv")
+    table = [int(s.pdgid) for s in Particle.all()]
+
+    def get_all(listing):
+        for pdgid in listing:
+            Particle.from_pdgid(pdgid)
+
+    benchmark(get_all, table)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/tests/particle/test_utilities.py 
new/tests/particle/test_utilities.py
--- old/tests/particle/test_utilities.py        2021-09-11 04:45:58.000000000 
+0200
+++ new/tests/particle/test_utilities.py        2022-01-15 18:07:50.000000000 
+0100
@@ -1,35 +1,29 @@
-# -*- coding: utf-8 -*-
-# Copyright (c) 2018-2021, Eduardo Rodrigues and Henry Schreiner.
+# Copyright (c) 2018-2022, Eduardo Rodrigues and Henry Schreiner.
 #
 # Distributed under the 3-clause BSD license, see accompanying file LICENSE
 # or https://github.com/scikit-hep/particle for details.
 
-import sys
-
 import pytest
 
 from particle.particle.utilities import str_with_unc
 
 possibilities = (
-    (1.234567, 0.01, None, u"1.235 ?? 0.010"),
-    (1.234567e-9, 0.01e-9, None, u"1.235e-09 ?? 1.0e-11"),
-    (1.234567e9, 0.04e9, None, u"1.23e+09 ?? 4e+07"),
-    (0.001, 0.00001, None, u"1.000e-03 ?? 1.0e-05"),
-    (0.00099, 0.00001, None, u"9.90e-04 ?? 1.0e-05"),
-    (99, 0.24, None, u"99.00 ?? 0.24"),
-    (100, 0.25, None, u"100.0 ?? 0.2"),
-    (101, 0.26, None, u"101.0 ?? 0.3"),
-    (0.00001231, 0.000002, 0.000004, u"1.23e-05 + 2.0e-06 - 4.0e-06"),
-    (1234.5, 0.03, 0.03, u"1234.50 ?? 0.03"),
-    (1234.5, 5, 5, u"1234 ?? 5"),
-    (1234.5, 2, 2, u"1234.5 ?? 2.0"),
+    (1.234567, 0.01, None, "1.235 ?? 0.010"),
+    (1.234567e-9, 0.01e-9, None, "1.235e-09 ?? 1.0e-11"),
+    (1.234567e9, 0.04e9, None, "1.23e+09 ?? 4e+07"),
+    (0.001, 0.00001, None, "1.000e-03 ?? 1.0e-05"),
+    (0.00099, 0.00001, None, "9.90e-04 ?? 1.0e-05"),
+    (99, 0.24, None, "99.00 ?? 0.24"),
+    (100, 0.25, None, "100.0 ?? 0.2"),
+    (101, 0.26, None, "101.0 ?? 0.3"),
+    (0.00001231, 0.000002, 0.000004, "1.23e-05 + 2.0e-06 - 4.0e-06"),
+    (1234.5, 0.03, 0.03, "1234.50 ?? 0.03"),
+    (1234.5, 5, 5, "1234 ?? 5"),
+    (1234.5, 2, 2, "1234.5 ?? 2.0"),
 )
 
 
 @pytest.mark.parametrize("value,err_u,err_l,test_str", possibilities)
 def test_unc_printout(value, err_u, err_l, test_str):
 
-    if sys.version_info < (3, 0):
-        test_str = test_str.replace(u"??", u"+/-")
-
     assert str_with_unc(value, err_u, err_l) == test_str
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/tests/pdgid/__init__.py new/tests/pdgid/__init__.py
--- old/tests/pdgid/__init__.py 2021-09-11 04:45:58.000000000 +0200
+++ new/tests/pdgid/__init__.py 2022-01-15 18:07:50.000000000 +0100
@@ -1,5 +1,4 @@
-# -*- coding: utf-8 -*-
-# Copyright (c) 2018-2021, Eduardo Rodrigues and Henry Schreiner.
+# Copyright (c) 2018-2022, Eduardo Rodrigues and Henry Schreiner.
 #
 # Distributed under the 3-clause BSD license, see accompanying file LICENSE
 # or https://github.com/scikit-hep/particle for details.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/tests/pdgid/test_functions.py 
new/tests/pdgid/test_functions.py
--- old/tests/pdgid/test_functions.py   2021-09-11 04:45:58.000000000 +0200
+++ new/tests/pdgid/test_functions.py   2022-01-15 18:07:50.000000000 +0100
@@ -1,10 +1,8 @@
-# -*- coding: utf-8 -*-
-# Copyright (c) 2018-2021, Eduardo Rodrigues and Henry Schreiner.
+# Copyright (c) 2018-2022, Eduardo Rodrigues and Henry Schreiner.
 #
 # Distributed under the 3-clause BSD license, see accompanying file LICENSE
 # or https://github.com/scikit-hep/particle for details.
 
-from __future__ import absolute_import, division, print_function
 
 from particle.pdgid import (
     A,
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/tests/pdgid/test_literals.py 
new/tests/pdgid/test_literals.py
--- old/tests/pdgid/test_literals.py    2021-09-11 04:45:58.000000000 +0200
+++ new/tests/pdgid/test_literals.py    2022-01-15 18:07:50.000000000 +0100
@@ -1,10 +1,8 @@
-# -*- coding: utf-8 -*-
-# Copyright (c) 2018-2021, Eduardo Rodrigues and Henry Schreiner.
+# Copyright (c) 2018-2022, Eduardo Rodrigues and Henry Schreiner.
 #
 # Distributed under the 3-clause BSD license, see accompanying file LICENSE
 # or https://github.com/scikit-hep/particle for details.
 
-from __future__ import division
 
 from particle.pdgid import literals as lid
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/tests/pdgid/test_pdgid.py 
new/tests/pdgid/test_pdgid.py
--- old/tests/pdgid/test_pdgid.py       2021-09-11 04:45:58.000000000 +0200
+++ new/tests/pdgid/test_pdgid.py       2022-01-15 18:07:50.000000000 +0100
@@ -1,11 +1,8 @@
-# -*- coding: utf-8 -*-
-# Copyright (c) 2018-2021, Eduardo Rodrigues and Henry Schreiner.
+# Copyright (c) 2018-2022, Eduardo Rodrigues and Henry Schreiner.
 #
 # Distributed under the 3-clause BSD license, see accompanying file LICENSE
 # or https://github.com/scikit-hep/particle for details.
 
-import pytest
-
 from particle.pdgid import PDGID
 from particle.pdgid import functions as _functions
 from particle.pdgid.pdgid import _fnames
@@ -95,7 +92,6 @@
     Check that all particle.pdgid functions decorated in the PDGID class
     work as expected for all kinds of PDGIDs.
     """
-    with pytest.deprecated_call():
-        for m in _fnames:
-            for pid in PDGIDs:
-                assert getattr(PDGID(pid), m) == getattr(_functions, m)(pid)
+    for m in _fnames:
+        for pid in PDGIDs:
+            assert getattr(PDGID(pid), m) == getattr(_functions, m)(pid)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/tests/pythia/__init__.py new/tests/pythia/__init__.py
--- old/tests/pythia/__init__.py        2021-09-11 04:45:58.000000000 +0200
+++ new/tests/pythia/__init__.py        2022-01-15 18:07:50.000000000 +0100
@@ -1,5 +1,4 @@
-# -*- coding: utf-8 -*-
-# Copyright (c) 2018-2021, Eduardo Rodrigues and Henry Schreiner.
+# Copyright (c) 2018-2022, Eduardo Rodrigues and Henry Schreiner.
 #
 # Distributed under the 3-clause BSD license, see accompanying file LICENSE
 # or https://github.com/scikit-hep/particle for details.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/tests/pythia/test_pythiaid.py 
new/tests/pythia/test_pythiaid.py
--- old/tests/pythia/test_pythiaid.py   2021-09-11 04:45:58.000000000 +0200
+++ new/tests/pythia/test_pythiaid.py   2022-01-15 18:07:50.000000000 +0100
@@ -1,5 +1,4 @@
-# -*- coding: utf-8 -*-
-# Copyright (c) 2018-2021, Eduardo Rodrigues and Henry Schreiner.
+# Copyright (c) 2018-2022, Eduardo Rodrigues and Henry Schreiner.
 #
 # Distributed under the 3-clause BSD license, see accompanying file LICENSE
 # or https://github.com/scikit-hep/particle for details.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/tests/test_package.py new/tests/test_package.py
--- old/tests/test_package.py   2021-09-11 04:45:58.000000000 +0200
+++ new/tests/test_package.py   2022-01-15 18:07:50.000000000 +0100
@@ -1,5 +1,4 @@
-# -*- coding: utf-8 -*-
-# Copyright (c) 2018-2021, Eduardo Rodrigues and Henry Schreiner.
+# Copyright (c) 2018-2022, Eduardo Rodrigues and Henry Schreiner.
 #
 # Distributed under the 3-clause BSD license, see accompanying file LICENSE
 # or https://github.com/scikit-hep/particle for details.

Reply via email to