14
0

Accepting request 850889 from home:andythe_great

update to 0.6.6

OBS-URL: https://build.opensuse.org/request/show/850889
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-screeninfo?expand=0&rev=7
This commit is contained in:
2020-11-27 13:38:35 +00:00
committed by Git OBS Bridge
parent 44d810ef5e
commit d38de93bb4
5 changed files with 12 additions and 20 deletions

View File

@@ -1,3 +1,10 @@
-------------------------------------------------------------------
Thu Nov 26 06:32:42 UTC 2020 - andy great <andythe_great@pm.me>
- Update to version 0.6.6.
* Use dataclasses only when needed.
- Remove use_dataclasses_when_needed.patch, fixed.
------------------------------------------------------------------- -------------------------------------------------------------------
Thu May 7 15:14:56 UTC 2020 - andy great <andythe_great@pm.me> Thu May 7 15:14:56 UTC 2020 - andy great <andythe_great@pm.me>

View File

@@ -19,14 +19,12 @@
%define skip_python2 1 %define skip_python2 1
%{?!python_module:%define python_module() python-%{**} python3-%{**}} %{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-screeninfo Name: python-screeninfo
Version: 0.6.5 Version: 0.6.6
Release: 0 Release: 0
Summary: Fetch location and size of physical screens Summary: Fetch location and size of physical screens
License: MIT License: MIT
URL: https://github.com/rr-/screeninfo 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/%{version}.tar.gz#/screeninfo-%{version}.tar.gz
# PATCH-FIX-UPSTREAM https://github.com/rr-/screeninfo/pull/36 -- Use dataclass when needed
Patch0: use_dataclasses_when_needed.patch
BuildRequires: %{python_module setuptools} BuildRequires: %{python_module setuptools}
%if 0%{?suse_version} <= 1500 %if 0%{?suse_version} <= 1500
BuildRequires: %{python_module dataclasses} BuildRequires: %{python_module dataclasses}
@@ -41,7 +39,6 @@ Python module to fetch location and size of physical screens.
%prep %prep
%setup -q -n screeninfo-%{version} %setup -q -n screeninfo-%{version}
%patch0 -p1
%build %build
%python_build %python_build

View File

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

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

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

View File

@@ -1,12 +0,0 @@
diff -ruN a/setup.py b/setup.py
--- a/setup.py 2020-04-15 15:13:07.000000000 +0100
+++ b/setup.py 2020-04-30 02:38:18.000000000 +0100
@@ -11,7 +11,7 @@
keywords=["screen", "monitor", "desktop"],
classifiers=[],
install_requires=[
- "dataclasses",
+ "dataclasses ; python_version<'3.7'",
'Cython ; sys_platform=="darwin"',
'pyobjus ; sys_platform=="darwin"',
],