Accepting request 806821 from devel:languages:python

OBS-URL: https://build.opensuse.org/request/show/806821
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-helpdev?expand=0&rev=3
This commit is contained in:
2020-05-19 12:47:06 +00:00
committed by Git OBS Bridge
5 changed files with 28 additions and 23 deletions

View File

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

3
helpdev-v0.7.1.tar.gz Normal file
View File

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

View File

@@ -1,3 +1,27 @@
-------------------------------------------------------------------
Mon May 18 08:11:04 UTC 2020 - Antonio Larrosa <alarrosa@suse.com>
- Update to version 0.7.1 (fixes issue reported in boo#1135733 #c4):
* Fix pipeline, doc8 linting ignores D001, line too long
* Add customize function, part of #1
* Change _filter to filter_packages and make it public
* Improve filter_package explanation
* Improve docs
* Add check_qt() function
* Add check_numbers() function
* Enhance help from command line parser
* Enhance command line order
* Correct mispelling errors
* Remove importlib_metadata for Python 3.8+, incoporated into std lib, MR#2
* Add MANIFEST.in, part of #9
* Improve internal code and linting
* Remove support for Python 2.7 and 3.4, closes #8
- There's no 0.7.0 release by upstream.
- Remove patch already included by upstream:
* python38.patch
-------------------------------------------------------------------
Sun Mar 8 03:51:01 UTC 2020 - Tomáš Chvátal <tchvatal@suse.com>

View File

@@ -18,14 +18,13 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-helpdev
Version: 0.6.10
Version: 0.7.1
Release: 0
Summary: HelpDev - Extracts information about the Python environment easily
License: MIT AND CC-BY-4.0
Group: Development/Languages/Python
URL: https://gitlab.com/dpizetta/helpdev
Source0: https://gitlab.com/dpizetta/helpdev/-/archive/v%{version}/helpdev-v%{version}.tar.gz
Patch0: python38.patch
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
@@ -44,7 +43,6 @@ HelpDev - Extracts information about the Python environment easily.
%prep
%setup -q -n helpdev-v%{version}
%patch0 -p1
sed -i '1{\,^#!%{_bindir}/env python,d}' helpdev/*.py
%build

View File

@@ -1,17 +0,0 @@
diff --git a/helpdev/__init__.py b/helpdev/__init__.py
index ca739c8ee30e8899a33ef98a60a59d458b376261..41bf220cf890fae1eb1aae557c75e8d404dd9a13 100644
--- a/helpdev/__init__.py
+++ b/helpdev/__init__.py
@@ -26,7 +26,11 @@ import sys
import time
import warnings
-import importlib_metadata
+try:
+ import importlib.metadata as importlib_metadata
+except ImportError:
+ # python < 3.8
+ import importlib_metadata
if sys.version_info >= (3, 4):
import importlib.util