From 3d2e55832793e1905bb81134089f1e11824844ed6ef6ebcc0306e251df7cd06d Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Tue, 31 Jan 2023 09:15:54 +0000 Subject: [PATCH 1/3] Accepting request 1062025 from home:VaiTon:branches:devel:languages:python - Update to 0.8.1 * Added typing information - Update to 0.8 * Started tracking changes * Switched to poetry * Added ignoring of enumerators that work, but return no valid monitors * Added `ScreenInfoError` to list of top-level symbols - Update to 0.7 * No changelog available - Update to 0.6.7 * No changelog available. OBS-URL: https://build.opensuse.org/request/show/1062025 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-screeninfo?expand=0&rev=9 --- python-screeninfo.changes | 18 ++++++++++++++++++ python-screeninfo.spec | 13 ++++++++----- screeninfo-0.6.6.tar.gz | 3 --- screeninfo-0.8.1.tar.gz | 3 +++ 4 files changed, 29 insertions(+), 8 deletions(-) delete mode 100644 screeninfo-0.6.6.tar.gz create mode 100644 screeninfo-0.8.1.tar.gz diff --git a/python-screeninfo.changes b/python-screeninfo.changes index 46b3920..563225d 100644 --- a/python-screeninfo.changes +++ b/python-screeninfo.changes @@ -1,3 +1,21 @@ +------------------------------------------------------------------- +Mon Jan 30 09:47:38 UTC 2023 - Eyad Issa + +- Update to 0.8.1 + * Added typing information + +- Update to 0.8 + * Started tracking changes + * Switched to poetry + * Added ignoring of enumerators that work, but return no valid monitors + * Added `ScreenInfoError` to list of top-level symbols + +- Update to 0.7 + * No changelog available + +- Update to 0.6.7 + * No changelog available. + ------------------------------------------------------------------- Thu Nov 26 06:32:42 UTC 2020 - andy great diff --git a/python-screeninfo.spec b/python-screeninfo.spec index 1c7b8ca..616e940 100644 --- a/python-screeninfo.spec +++ b/python-screeninfo.spec @@ -1,7 +1,7 @@ # # spec file for package python-screeninfo # -# Copyright (c) 2020 SUSE LLC +# Copyright (c) 2023 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -16,10 +16,8 @@ # -%define skip_python2 1 -%{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-screeninfo -Version: 0.6.6 +Version: 0.8.1 Release: 0 Summary: Fetch location and size of physical screens License: MIT @@ -31,6 +29,9 @@ BuildRequires: %{python_module dataclasses} %endif BuildRequires: fdupes BuildRequires: python-rpm-macros +Suggests: python-dataclasses +Suggests: python-Cython +Suggests: python-pyobjc-framework-Cocoa BuildArch: noarch %python_subpackages @@ -48,7 +49,7 @@ Python module to fetch location and size of physical screens. %python_expand %fdupes %{buildroot}%{$python_sitelib} %check -# upstream does not provide any tests +# tests are not included in the PyPI tarball %files %{python_files} %license LICENSE.md @@ -57,7 +58,9 @@ Python module to fetch location and size of physical screens. %dir %{python_sitelib}/screeninfo/enumerators/ %{python_sitelib}/screeninfo-%{version}-py%{python_version}.egg-info/ %{python_sitelib}/screeninfo/*.py* +%{python_sitelib}/screeninfo/*.typed %{python_sitelib}/screeninfo/enumerators/*.py* +%{python_sitelib}/screeninfo/enumerators/*.typed %pycache_only %{python_sitelib}/screeninfo/__pycache__/ %pycache_only %{python_sitelib}/screeninfo/enumerators/__pycache__/ diff --git a/screeninfo-0.6.6.tar.gz b/screeninfo-0.6.6.tar.gz deleted file mode 100644 index f004b0e..0000000 --- a/screeninfo-0.6.6.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:602829a5477bd16d6b410b0b869aefdc856e12fdf6af67af0eab62b32b649871 -size 8018 diff --git a/screeninfo-0.8.1.tar.gz b/screeninfo-0.8.1.tar.gz new file mode 100644 index 0000000..9f6d6ca --- /dev/null +++ b/screeninfo-0.8.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:9983076bcc7e34402a1a9e4d7dabf3729411fd2abb3f3b4be7eba73519cd2ed1 +size 10666 From bb6e33348255430f44d5e469318780291e743b17290a71a40a39980039f4207a Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Tue, 31 Jan 2023 10:42:39 +0000 Subject: [PATCH 2/3] - Clean up SPEC file OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-screeninfo?expand=0&rev=10 --- python-screeninfo.changes | 5 +++++ python-screeninfo.spec | 33 ++++++++++++++------------------- 2 files changed, 19 insertions(+), 19 deletions(-) diff --git a/python-screeninfo.changes b/python-screeninfo.changes index 563225d..a882ef9 100644 --- a/python-screeninfo.changes +++ b/python-screeninfo.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue Jan 31 10:42:21 UTC 2023 - Matej Cepl + +- Clean up SPEC file + ------------------------------------------------------------------- Mon Jan 30 09:47:38 UTC 2023 - Eyad Issa diff --git a/python-screeninfo.spec b/python-screeninfo.spec index 616e940..b537a6f 100644 --- a/python-screeninfo.spec +++ b/python-screeninfo.spec @@ -23,29 +23,31 @@ Summary: Fetch location and size of physical screens License: MIT URL: https://github.com/rr-/screeninfo Source0: https://github.com/rr-/screeninfo/archive/%{version}.tar.gz#/screeninfo-%{version}.tar.gz -BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module pip} +BuildRequires: %{python_module poetry-core} +BuildRequires: %{python_module wheel} +BuildRequires: fdupes +BuildRequires: python-rpm-macros +Suggests: python-Cython +Suggests: python-dataclasses +Suggests: python-pyobjc-framework-Cocoa +BuildArch: noarch %if 0%{?suse_version} <= 1500 BuildRequires: %{python_module dataclasses} %endif -BuildRequires: fdupes -BuildRequires: python-rpm-macros -Suggests: python-dataclasses -Suggests: python-Cython -Suggests: python-pyobjc-framework-Cocoa -BuildArch: noarch %python_subpackages %description Python module to fetch location and size of physical screens. %prep -%setup -q -n screeninfo-%{version} +%autosetup -p1 -n screeninfo-%{version} %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitelib} %check @@ -54,14 +56,7 @@ Python module to fetch location and size of physical screens. %files %{python_files} %license LICENSE.md %doc README.md -%dir %{python_sitelib}/screeninfo/ -%dir %{python_sitelib}/screeninfo/enumerators/ -%{python_sitelib}/screeninfo-%{version}-py%{python_version}.egg-info/ -%{python_sitelib}/screeninfo/*.py* -%{python_sitelib}/screeninfo/*.typed -%{python_sitelib}/screeninfo/enumerators/*.py* -%{python_sitelib}/screeninfo/enumerators/*.typed -%pycache_only %{python_sitelib}/screeninfo/__pycache__/ -%pycache_only %{python_sitelib}/screeninfo/enumerators/__pycache__/ +%{python_sitelib}/screeninfo +%{python_sitelib}/screeninfo-%{version}*-info %changelog From b277a0d0f99e88e929aac0649f898712c37fe7b0ca38a0da4cbef25392deef05 Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Tue, 31 Jan 2023 11:01:12 +0000 Subject: [PATCH 3/3] - Add tests running OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-screeninfo?expand=0&rev=11 --- python-screeninfo.changes | 1 + python-screeninfo.spec | 5 +++-- screeninfo-0.8.1.tar.gz | 4 ++-- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/python-screeninfo.changes b/python-screeninfo.changes index a882ef9..e86f15d 100644 --- a/python-screeninfo.changes +++ b/python-screeninfo.changes @@ -2,6 +2,7 @@ Tue Jan 31 10:42:21 UTC 2023 - Matej Cepl - Clean up SPEC file +- Add tests running ------------------------------------------------------------------- Mon Jan 30 09:47:38 UTC 2023 - Eyad Issa diff --git a/python-screeninfo.spec b/python-screeninfo.spec index b537a6f..b057eb6 100644 --- a/python-screeninfo.spec +++ b/python-screeninfo.spec @@ -22,9 +22,10 @@ Release: 0 Summary: Fetch location and size of physical screens License: MIT URL: https://github.com/rr-/screeninfo -Source0: https://github.com/rr-/screeninfo/archive/%{version}.tar.gz#/screeninfo-%{version}.tar.gz +Source0: https://github.com/rr-/screeninfo/archive/refs/tags/%{version}.tar.gz#/screeninfo-%{version}.tar.gz BuildRequires: %{python_module pip} BuildRequires: %{python_module poetry-core} +BuildRequires: %{python_module pytest} BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros @@ -51,7 +52,7 @@ Python module to fetch location and size of physical screens. %python_expand %fdupes %{buildroot}%{$python_sitelib} %check -# tests are not included in the PyPI tarball +%pytest tests %files %{python_files} %license LICENSE.md diff --git a/screeninfo-0.8.1.tar.gz b/screeninfo-0.8.1.tar.gz index 9f6d6ca..8c79a84 100644 --- a/screeninfo-0.8.1.tar.gz +++ b/screeninfo-0.8.1.tar.gz @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:9983076bcc7e34402a1a9e4d7dabf3729411fd2abb3f3b4be7eba73519cd2ed1 -size 10666 +oid sha256:f6b3eeb22196a253611df1d3ee8fff549f2654730823ef4d2533018c27f13b09 +size 26498