14
0

Accepting request 786899 from home:pgajdos:python

- version update to 0.11.0
  * Added basic support for multiline text.
  * Dropped lots of older compat-only code and other cleanups.
  * Fixed a bug in the API when combining certain barcodes and writers.
  * Published documentation again and updated all project references.
  * Fix python_barcode.get mixups between options as writer_options. Previously, some writer/barcode combinations worked fine, while others failed. Now all work consistently.
  * The cli tool has been fixed and should now work as expected again.

OBS-URL: https://build.opensuse.org/request/show/786899
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-python-barcode?expand=0&rev=9
This commit is contained in:
Tomáš Chvátal
2020-03-20 14:02:55 +00:00
committed by Git OBS Bridge
parent c610f74914
commit 8021f49d52
4 changed files with 20 additions and 7 deletions

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-python-barcode
#
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2020 SUSE LLC
# Copyright (c) 2019 Dr. Axel Braun
#
# All modifications and additions to the file contributed by third parties
@@ -21,7 +21,7 @@
%define skip_python2 1
%define base_name python-barcode
Name: python-%{base_name}
Version: 0.10.0
Version: 0.11.0
Release: 0
Summary: Library to create Barcodes with Python
License: MIT
@@ -30,6 +30,7 @@ URL: https://github.com/WhyNotHugo/python-barcode
Source: https://files.pythonhosted.org/packages/source/p/%{base_name}/%{base_name}-%{version}.tar.gz
BuildRequires: %{python_module Pillow}
BuildRequires: %{python_module pathlib}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module setuptools_scm}
BuildRequires: %{python_module setuptools}
BuildRequires: dejavu-fonts
@@ -49,7 +50,7 @@ Library to create standard barcodes with Python. No external modules needed (opt
# Fix rpmlint warning about too many +x perms when these files get installed later.
find . -type f -exec chmod a-x {} +
# doc buildscripts we don't wanna ship
rm docs/{Makefile,make.bat}
rm docs/Makefile
%build
%python_build
@@ -62,7 +63,8 @@ find "%{buildroot}" -type f -name "*.ttf" | while read i; do
done
%check
%python_exec test.py
sed -i '/cov/d' setup.cfg
%pytest
%files %{python_files}
%doc docs/*