diff --git a/python-screeninfo.changes b/python-screeninfo.changes index 46b3920..e86f15d 100644 --- a/python-screeninfo.changes +++ b/python-screeninfo.changes @@ -1,3 +1,27 @@ +------------------------------------------------------------------- +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 + +- 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..b057eb6 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,49 +16,48 @@ # -%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 URL: https://github.com/rr-/screeninfo -Source0: https://github.com/rr-/screeninfo/archive/%{version}.tar.gz#/screeninfo-%{version}.tar.gz -BuildRequires: %{python_module setuptools} +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 +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 -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 -# upstream does not provide any tests +%pytest tests %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/enumerators/*.py* -%pycache_only %{python_sitelib}/screeninfo/__pycache__/ -%pycache_only %{python_sitelib}/screeninfo/enumerators/__pycache__/ +%{python_sitelib}/screeninfo +%{python_sitelib}/screeninfo-%{version}*-info %changelog 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..8c79a84 --- /dev/null +++ b/screeninfo-0.8.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f6b3eeb22196a253611df1d3ee8fff549f2654730823ef4d2533018c27f13b09 +size 26498