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 2021-07-07 18:30:39
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-particle (Old)
 and      /work/SRC/openSUSE:Factory/.python-particle.new.2625 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-particle"

Wed Jul  7 18:30:39 2021 rev:9 rq:904547 version:0.15.1

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-particle/python-particle.changes  
2021-05-23 23:31:01.972630699 +0200
+++ 
/work/SRC/openSUSE:Factory/.python-particle.new.2625/python-particle.changes    
    2021-07-07 18:31:56.874299662 +0200
@@ -1,0 +2,9 @@
+Sat Jul  3 04:12:25 UTC 2021 - Atri Bhattacharya <[email protected]>
+
+- Update to version 0.15.1:
+  * Bug fix in Particle.to_dict.
+  * Code improvements thanks to Sourcery.
+  * Clean-up of unnecessary files/code.
+- Update tests tarball to version 0.15.1 too.
+
+-------------------------------------------------------------------

Old:
----
  particle-0.15.0.tar.gz

New:
----
  particle-0.15.1.tar.gz

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

Other differences:
------------------
++++++ python-particle.spec ++++++
--- /var/tmp/diff_new_pack.SQuMDB/_old  2021-07-07 18:31:57.338296021 +0200
+++ /var/tmp/diff_new_pack.SQuMDB/_new  2021-07-07 18:31:57.338296021 +0200
@@ -19,7 +19,7 @@
 %global modname particle
 %define skip_python2 1
 Name:           python-particle
-Version:        0.15.0
+Version:        0.15.1
 Release:        0
 Summary:        PDG particle data and identification codes
 License:        BSD-3-Clause

++++++ _service ++++++
--- /var/tmp/diff_new_pack.SQuMDB/_old  2021-07-07 18:31:57.366295801 +0200
+++ /var/tmp/diff_new_pack.SQuMDB/_new  2021-07-07 18:31:57.370295770 +0200
@@ -2,11 +2,10 @@
        <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.15.0</param>
+               <param name="revision">v0.15.1</param>
                <param name="subdir">tests</param>
                <param name="version">_none_</param>
                <param name="filename">tests</param>
-               <param name="filename">tests</param>
        </service>
        <service name="recompress" mode="disabled">
                <param name="compression">xz</param>

++++++ particle-0.15.0.tar.gz -> particle-0.15.1.tar.gz ++++++
++++ 1716 lines of diff (skipped)

++++++ tests.tar.xz ++++++
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-05-18 23:13:21.000000000 +0200
+++ new/tests/particle/test_particle.py 2021-06-24 11:03:53.000000000 +0200
@@ -603,6 +603,16 @@
     assert ["D(s)*+"] in tbl
 
 
+def test_to_dict():
+    query_as_dict = Particle.to_dict(
+        filter_fn=lambda p: p.pdgid.is_lepton and p.charge != 0,
+        exclusive_fields=["name", "charge"],
+        particle=False,
+    )
+
+    assert set(query_as_dict["name"]) == {"e+", "mu+", "tau+", "tau'+"}
+
+
 ampgen_style_names = (
     ("b", 5),
     ("b~", -5),

Reply via email to