forked from pool/python-python-barcode
- Switch to pyproject macros.
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-python-barcode?expand=0&rev=22
This commit is contained in:
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@@ -0,0 +1,23 @@
|
|||||||
|
## Default LFS
|
||||||
|
*.7z filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.bsp filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.gem filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.gz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.jar filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.lz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.lzma filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.obscpio filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.oxt filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.pdf filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.png filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.rpm filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.tbz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.tbz2 filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.tgz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.ttf filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.txz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.whl filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.xz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.zip filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.zst filter=lfs diff=lfs merge=lfs -text
|
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
|||||||
|
.osc
|
3
python-barcode-0.15.1.tar.gz
Normal file
3
python-barcode-0.15.1.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:3b1825fbdb11e597466dff4286b4ea9b1e86a57717b59e563ae679726fc854de
|
||||||
|
size 228161
|
99
python-python-barcode.changes
Normal file
99
python-python-barcode.changes
Normal file
@@ -0,0 +1,99 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon May 5 03:49:30 UTC 2025 - Steve Kowalik <steven.kowalik@suse.com>
|
||||||
|
|
||||||
|
- Switch to pyproject macros.
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
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>
|
||||||
|
|
||||||
|
- 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>
|
||||||
|
|
||||||
|
- Update to 0.10.0:
|
||||||
|
* Various minor fixes and tweaks
|
||||||
|
* CI integration fixes
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Sat Apr 6 22:21:01 UTC 2019 - Jan Engelhardt <jengelh@inai.de>
|
||||||
|
|
||||||
|
- Unbundle DejaVu font and reuse the one from the system.
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Apr 4 09:24:13 UTC 2019 - Tomáš Chvátal <tchvatal@suse.com>
|
||||||
|
|
||||||
|
- Provide and obsolete pyBarcode as we are fork of it
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Apr 3 08:08:05 UTC 2019 - Tomáš Chvátal <tchvatal@suse.com>
|
||||||
|
|
||||||
|
- Run the spec-cleaner
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Mar 25 16:28:57 UTC 2019 - Axel Braun <axel.braun@gmx.de>
|
||||||
|
|
||||||
|
- Verion 0.9 of python-barcode (fork of pyBarcode)
|
||||||
|
initial OBS build
|
90
python-python-barcode.spec
Normal file
90
python-python-barcode.spec
Normal file
@@ -0,0 +1,90 @@
|
|||||||
|
#
|
||||||
|
# spec file for package python-python-barcode
|
||||||
|
#
|
||||||
|
# Copyright (c) 2025 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
|
||||||
|
# upon. The license for this file, and modifications and additions to the
|
||||||
|
# file, is the same license as for the pristine package itself (unless the
|
||||||
|
# license for the pristine package is not an Open Source License, in which
|
||||||
|
# case the license is the MIT License). An "Open Source License" is a
|
||||||
|
# license that conforms to the Open Source Definition (Version 1.9)
|
||||||
|
# published by the Open Source Initiative.
|
||||||
|
|
||||||
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
||||||
|
#
|
||||||
|
|
||||||
|
|
||||||
|
%{?sle15_python_module_pythons}
|
||||||
|
|
||||||
|
%define base_name python-barcode
|
||||||
|
Name: python-%{base_name}
|
||||||
|
Version: 0.15.1
|
||||||
|
Release: 0
|
||||||
|
Summary: Library to create Barcodes with Python
|
||||||
|
License: MIT
|
||||||
|
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 pip}
|
||||||
|
BuildRequires: %{python_module pytest}
|
||||||
|
BuildRequires: %{python_module setuptools_scm}
|
||||||
|
BuildRequires: %{python_module setuptools}
|
||||||
|
BuildRequires: %{python_module wheel}
|
||||||
|
BuildRequires: dejavu-fonts
|
||||||
|
BuildRequires: fdupes
|
||||||
|
BuildRequires: python-rpm-macros
|
||||||
|
Requires: dejavu-fonts
|
||||||
|
Requires(post): update-alternatives
|
||||||
|
Requires(postun): update-alternatives
|
||||||
|
Provides: python-pyBarcode = %{version}-%{release}
|
||||||
|
Obsoletes: python-pyBarcode < %{version}-%{release}
|
||||||
|
BuildArch: noarch
|
||||||
|
%python_subpackages
|
||||||
|
|
||||||
|
%description
|
||||||
|
Library to create standard barcodes with Python. No external modules needed (optional PIL support included).
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%setup -q -n %{base_name}-%{version}
|
||||||
|
# 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
|
||||||
|
|
||||||
|
%build
|
||||||
|
%pyproject_wheel
|
||||||
|
|
||||||
|
%install
|
||||||
|
%pyproject_install
|
||||||
|
%python_clone -a %{buildroot}%{_bindir}/python-barcode
|
||||||
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||||
|
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}
|
||||||
|
%license LICENCE
|
||||||
|
%doc %{_docdir}/%{python_flavor}-python-barcode
|
||||||
|
%{python_sitelib}/barcode
|
||||||
|
%{python_sitelib}/python_barcode-%{version}.dist-info
|
||||||
|
%python_alternative %{_bindir}/python-barcode
|
||||||
|
|
||||||
|
%changelog
|
Reference in New Issue
Block a user