From b277a0d0f99e88e929aac0649f898712c37fe7b0ca38a0da4cbef25392deef05 Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Tue, 31 Jan 2023 11:01:12 +0000 Subject: [PATCH] - 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