Hello community, here is the log from the commit of package python-particle for openSUSE:Factory checked in at 2020-11-24 22:13:46 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-particle (Old) and /work/SRC/openSUSE:Factory/.python-particle.new.5913 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-particle" Tue Nov 24 22:13:46 2020 rev:4 rq:850393 version:0.13.1 Changes: -------- --- /work/SRC/openSUSE:Factory/python-particle/python-particle.changes 2020-11-23 10:45:15.170288374 +0100 +++ /work/SRC/openSUSE:Factory/.python-particle.new.5913/python-particle.changes 2020-11-24 22:14:15.579594530 +0100 @@ -1,0 +2,12 @@ +Mon Nov 23 17:36:10 UTC 2020 - Atri Bhattacharya <badshah...@gmail.com> + +- Add _service file to: + * Download tests dir from upstream git repository. + * Recompress downloaded tests.tar into tests.tar.xz. +- Update %prep section to unpack tests tarball into main source + dir. +- Add BuildRequires: python-importlib_resources for openSUSE <= + 1500; needed for tests. +- Implement %check section where pytest runs the tests. + +------------------------------------------------------------------- New: ---- _service tests.tar.xz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-particle.spec ++++++ --- /var/tmp/diff_new_pack.RxnW74/_old 2020-11-24 22:14:16.691595560 +0100 +++ /var/tmp/diff_new_pack.RxnW74/_new 2020-11-24 22:14:16.695595564 +0100 @@ -24,7 +24,9 @@ Summary: PDG particle data and identification codes License: BSD-3-Clause URL: https://github.com/scikit-hep/particle -Source: https://files.pythonhosted.org/packages/source/p/particle/%{modname}-%{version}.tar.gz +Source0: https://files.pythonhosted.org/packages/source/p/particle/%{modname}-%{version}.tar.gz +# Downloaded separately from github using _service file +Source1: tests.tar.xz BuildRequires: %{python_module setuptools_scm} BuildRequires: %{python_module setuptools} BuildRequires: %{python_module toml} @@ -35,6 +37,13 @@ Recommends: python-pandas Recommends: python-tabulate BuildArch: noarch +# SECTION For tests +BuildRequires: %{python_module hepunits} +BuildRequires: %{python_module pytest} +%if 0%{?suse_version} <= 1500 +BuildRequires: %{python_module importlib_resources} +%endif +# /SECTION %python_subpackages %description @@ -42,7 +51,8 @@ particle data tables and particle identification codes. %prep -%setup -q -n particle-%{version} +%setup -q -n %{modname}-%{version} +%setup -q -D -n %{modname}-%{version} -a 1 sed -Ei "1{/^#!\/usr\/bin\/env python/d}" src/particle/__main__.py %build @@ -52,8 +62,8 @@ %python_install %python_expand %fdupes %{buildroot}%{$python_sitelib} -# NO TESTS DEFINED -#%%check +%check +%pytest %files %{python_files} %doc README.rst ++++++ _service ++++++ <services> <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.13.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> <param name="file">tests.tar</param> </service> </services> _______________________________________________ openSUSE Commits mailing list -- commit@lists.opensuse.org To unsubscribe, email commit-le...@lists.opensuse.org List Netiquette: https://en.opensuse.org/openSUSE:Mailing_list_netiquette List Archives: https://lists.opensuse.org/archives/list/commit@lists.opensuse.org