1
0

Compare commits

...

13 Commits

Author SHA256 Message Date
66604c628b Accepting request 1139376 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1139376
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-python-barcode?expand=0&rev=9
2024-01-17 21:16:23 +00:00
6c03803d1c Accepting request 1139177 from Application:ERP:GNUHealth:4.4
- enabled %{?sle15_python_module_pythons}

OBS-URL: https://build.opensuse.org/request/show/1139177
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-python-barcode?expand=0&rev=20
2024-01-17 07:19:57 +00:00
f83d5c0eee Accepting request 1112732 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1112732
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-python-barcode?expand=0&rev=8
2023-09-21 20:22:53 +00:00
5f0acc6b46 Accepting request 1112601 from home:mimi_vx:branches:devel:languages:python
- update to 0.15.1
 * Improved type hints.
 * Updated ISBN to support newer allocated ranges.
 * Fixed compatibility with Pillow 10.0.

OBS-URL: https://build.opensuse.org/request/show/1112601
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-python-barcode?expand=0&rev=18
2023-09-21 08:46:08 +00:00
39391edf6b Accepting request 989337 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/989337
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-python-barcode?expand=0&rev=7
2022-07-15 11:52:45 +00:00
3445b941b4 Accepting request 989258 from home:bnavigator:branches:devel:languages:python
- Update to 0.14.0
  * Breaking: The default dimensions have changed slightly. This is
    so that the results of generating a PNG and an SVG look more
    alike.
  * Previous versions included an empty text element for SVGs with
    no comment. This is no longer the case.
  * Some internals have been improved so as to allow better
    subclassing. Subclasses of Barcode can now override
    default_writer_options and default_writer().
  * A guardbar parameter has been added to EAN barcodes. This
    renders barcodes with guardars (longer bars).
  * Added support for Python 3.10.
  * The documentation setup has been redone, hopefully squashing a
    lot of legacy quirks.
  * Previous versions installed the tests module. This was not
    intentional and have been fixed.
- Remove ancient pathlib dependency

OBS-URL: https://build.opensuse.org/request/show/989258
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-python-barcode?expand=0&rev=16
2022-07-15 07:05:59 +00:00
bbbaede3cf Accepting request 843978 from devel:languages:python
- Update to 0.13.1:
  * Fix a crash when using the generate shortcut function.
  * Added support for transparent backgrounds. This is done by setting the
    mode option for a writer to RGBA.
  * Removed writer_options from barcode.get. This parameter was not used.
  * Add a with_doctype flag to SVGWriter. Set this to false to avoid including
    a DOCTYPE in the resulting SVG.
  * Add support for Pillow>=8.0.0.

OBS-URL: https://build.opensuse.org/request/show/843978
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-python-barcode?expand=0&rev=6
2020-10-26 15:21:20 +00:00
7f866a97c3 - Update to 0.13.1:
* Fix a crash when using the generate shortcut function.
  * Added support for transparent backgrounds. This is done by setting the
    mode option for a writer to RGBA.
  * Removed writer_options from barcode.get. This parameter was not used.
  * Add a with_doctype flag to SVGWriter. Set this to false to avoid including
    a DOCTYPE in the resulting SVG.
  * Add support for Pillow>=8.0.0.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-python-barcode?expand=0&rev=14
2020-10-26 04:16:18 +00:00
492f774f07 Accepting request 807675 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/807675
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-python-barcode?expand=0&rev=5
2020-05-26 15:18:17 +00:00
Tomáš Chvátal
3b5ab635d8 Accepting request 807633 from home:pgajdos:python
submit

OBS-URL: https://build.opensuse.org/request/show/807633
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-python-barcode?expand=0&rev=12
2020-05-20 11:33:59 +00:00
081b5433d7 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
2020-03-24 21:34:17 +00:00
9868a22126 Accepting request 705390 from devel:languages:python
- Update to 0.10.0:
  * Various minor fixes and tweaks
  * CI integration fixes

OBS-URL: https://build.opensuse.org/request/show/705390
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-python-barcode?expand=0&rev=3
2019-05-27 06:39:14 +00:00
bec412fbfa Accepting request 692224 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/692224
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-python-barcode?expand=0&rev=2
2019-05-06 11:21:15 +00:00
4 changed files with 81 additions and 18 deletions

View File

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

View File

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

View File

@@ -1,3 +1,54 @@
-------------------------------------------------------------------
Sun Jan 14 18:43:01 UTC 2024 - Axel Braun <axel.braun@gmx.de>
- enabled %{?sle15_python_module_pythons}
-------------------------------------------------------------------
Wed Sep 20 15:26:50 UTC 2023 - Ondřej Súkup <mimi.vx@gmail.com>
- update to 0.15.1
* Improved type hints.
* Updated ISBN to support newer allocated ranges.
* Fixed compatibility with Pillow 10.0.
-------------------------------------------------------------------
Thu Jul 14 20:48:46 UTC 2022 - Ben Greiner <code@bnavigator.de>
- Update to 0.14.0
* Breaking: The default dimensions have changed slightly. This is
so that the results of generating a PNG and an SVG look more
alike.
* Previous versions included an empty text element for SVGs with
no comment. This is no longer the case.
* Some internals have been improved so as to allow better
subclassing. Subclasses of Barcode can now override
default_writer_options and default_writer().
* A guardbar parameter has been added to EAN barcodes. This
renders barcodes with guardars (longer bars).
* Added support for Python 3.10.
* The documentation setup has been redone, hopefully squashing a
lot of legacy quirks.
* Previous versions installed the tests module. This was not
intentional and have been fixed.
- Remove ancient pathlib dependency
-------------------------------------------------------------------
Mon Oct 26 04:08:04 UTC 2020 - Steve Kowalik <steven.kowalik@suse.com>
- Update to 0.13.1:
* Fix a crash when using the generate shortcut function.
* Added support for transparent backgrounds. This is done by setting the
mode option for a writer to RGBA.
* Removed writer_options from barcode.get. This parameter was not used.
* Add a with_doctype flag to SVGWriter. Set this to false to avoid including
a DOCTYPE in the resulting SVG.
* Add support for Pillow>=8.0.0.
-------------------------------------------------------------------
Wed May 20 07:26:48 UTC 2020 - Petr Gajdos <pgajdos@suse.com>
- %python3_only -> %python_alternative
-------------------------------------------------------------------
Mon Mar 23 13:08:48 UTC 2020 - Tomáš Chvátal <tchvatal@suse.com>

View File

@@ -1,8 +1,8 @@
#
# spec file for package python-python-barcode
# spec file
#
# Copyright (c) 2020 SUSE LLC
# Copyright (c) 2019 Dr. Axel Braun
# Copyright (c) 2024 SUSE LLC
# Copyright (c) 2019-2024 Dr. Axel Braun <DocB@opensuse.org>
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -17,19 +17,17 @@
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%define skip_python2 1
%{?sle15_python_module_pythons}
%define base_name python-barcode
Name: python-%{base_name}
Version: 0.11.0
Version: 0.15.1
Release: 0
Summary: Library to create Barcodes with Python
License: MIT
Group: Development/Languages/Python
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}
@@ -37,8 +35,10 @@ BuildRequires: dejavu-fonts
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: dejavu-fonts
Provides: python-pyBarcode
Obsoletes: python-pyBarcode
Requires(post): update-alternatives
Requires(postun):update-alternatives
Provides: python-pyBarcode = %{version}-%{release}
Obsoletes: python-pyBarcode < %{version}-%{release}
BuildArch: noarch
%python_subpackages
@@ -57,20 +57,32 @@ rm docs/Makefile
%install
%python_install
%python_expand rm -r %{buildroot}%{$python_sitelib}/tests
%python_clone -a %{buildroot}%{_bindir}/python-barcode
%python_expand %fdupes %{buildroot}%{$python_sitelib}
find "%{buildroot}" -type f -name "*.ttf" | while read i; do
find %{buildroot} -type f -name "*.ttf" | while read i; do
ln -fs "%{_datadir}/fonts/truetype/${i##*/}" "$i"
done
%{python_expand # copy docs for deduplication
mkdir -p %{buildroot}%{_docdir}
cp -r docs %{buildroot}%{_docdir}/$python-python-barcode
%fdupes %{buildroot}%{_docdir}/$python-python-barcode
}
%check
sed -i '/cov/d' setup.cfg
%pytest
%post
%python_install_alternative python-barcode
%postun
%python_uninstall_alternative python-barcode
%files %{python_files}
%doc docs/*
%license LICENCE
%{python_sitelib}/*
%python3_only %{_bindir}/python-barcode
%doc %{_docdir}/%{python_flavor}-python-barcode
%{python_sitelib}/barcode
%{python_sitelib}/python_barcode-%{version}*-info
%python_alternative %{_bindir}/python-barcode
%changelog