1
0

Accepting request 787472 from devel:languages:python

- Remove tests folder that was installed in sitelib

- 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/787472
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-python-barcode?expand=0&rev=4
This commit is contained in:
2020-03-24 21:34:17 +00:00
committed by Git OBS Bridge
4 changed files with 26 additions and 7 deletions

View File

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

View File

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

View File

@@ -1,3 +1,19 @@
-------------------------------------------------------------------
Mon Mar 23 13:08:48 UTC 2020 - Tomáš Chvátal <tchvatal@suse.com>
- Remove tests folder that was installed in sitelib
-------------------------------------------------------------------
Fri Mar 20 13:50:51 UTC 2020 - pgajdos@suse.com
- 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.
-------------------------------------------------------------------
Sat May 25 09:01:04 UTC 2019 - Tomáš Chvátal <tchvatal@suse.com>

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,20 +50,22 @@ 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
%install
%python_install
%python_expand rm -r %{buildroot}%{$python_sitelib}/tests
%python_expand %fdupes %{buildroot}%{$python_sitelib}
find "%{buildroot}" -type f -name "*.ttf" | while read i; do
ln -fs "%{_datadir}/fonts/truetype/${i##*/}" "$i"
done
%check
%python_exec test.py
sed -i '/cov/d' setup.cfg
%pytest
%files %{python_files}
%doc docs/*