commit python-power for openSUSE:Factory
Hello community, here is the log from the commit of package python-power for openSUSE:Factory checked in at 2019-10-31 22:45:23 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-power (Old) and /work/SRC/openSUSE:Factory/.python-power.new.2990 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Package is "python-power" Thu Oct 31 22:45:23 2019 rev:3 rq:744500 version:1.4 Changes: -------- --- /work/SRC/openSUSE:Factory/python-power/python-power.changes 2017-09-09 20:26:38.481188860 +0200 +++ /work/SRC/openSUSE:Factory/.python-power.new.2990/python-power.changes 2019-10-31 22:45:28.673861040 +0100 @@ -1,0 +2,9 @@ +Sun Oct 20 02:54:52 UTC 2019 - John Vandenberg <jayvdb@gmail.com> + +- Remove unnecessary dependency on python-devel +- Remove runtime code for Darwin, FreeBSD and Windows +- Remove test suite from runtime package +- Run spec-cleaner +- Activate test suite + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-power.spec ++++++ --- /var/tmp/diff_new_pack.BBnVAD/_old 2019-10-31 22:45:30.201862938 +0100 +++ /var/tmp/diff_new_pack.BBnVAD/_new 2019-10-31 22:45:30.241862987 +0100 @@ -1,7 +1,7 @@ # # spec file for package python-power # -# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -12,7 +12,7 @@ # license that conforms to the Open Source Definition (Version 1.9) # 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/ # @@ -22,33 +22,37 @@ Release: 0 Summary: System power status information in Python License: MIT -Url: https://github.com/Kentzo/Power Group: Development/Languages/Python +URL: https://github.com/Kentzo/Power Source: https://files.pythonhosted.org/packages/source/p/power/power-%{version}.tar.gz -BuildRequires: %{python_module devel} BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: python-rpm-macros BuildArch: noarch - %python_subpackages %description Python module that allows you to get power and battery status of the system. %prep -%setup -n power-%{version} +%setup -q -n power-%{version} +rm power/darwin.py power/freebsd.py power/win32.py +mkdir tests +mv power/tests.py tests/ %build -export CFLAGS="%{optflags}" %python_build %install %python_install %python_expand %fdupes %{buildroot}%{$python_sitelib} +%check +# tests.py can be run directly, but those tests expect user to alter power state during tests +cd tests +%python_expand PYTHONPATH=%{buildroot}%{$python_sitelib}:. $python -m unittest tests + %files %{python_files} -%defattr(-,root,root,-) %{python_sitelib}/power/ %{python_sitelib}/power-%{version}-py*.egg-info
participants (1)
-
root