14
0

Accepting request 1062212 from devel:languages:python

- Clean up SPEC file
- Add tests running
- 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/1062212
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-screeninfo?expand=0&rev=4
This commit is contained in:
2023-01-31 15:10:06 +00:00
committed by Git OBS Bridge
4 changed files with 46 additions and 23 deletions

View File

@@ -1,3 +1,27 @@
-------------------------------------------------------------------
Tue Jan 31 10:42:21 UTC 2023 - Matej Cepl <mcepl@suse.com>
- Clean up SPEC file
- Add tests running
-------------------------------------------------------------------
Mon Jan 30 09:47:38 UTC 2023 - Eyad Issa <eyadlorenzo@gmail.com>
- 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 <andythe_great@pm.me>

View File

@@ -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

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:602829a5477bd16d6b410b0b869aefdc856e12fdf6af67af0eab62b32b649871
size 8018

3
screeninfo-0.8.1.tar.gz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:f6b3eeb22196a253611df1d3ee8fff549f2654730823ef4d2533018c27f13b09
size 26498