From b1b45ec9ae348a578345d253eb4c60c444f0fa7e8d5a19381edc0255f0c8b0ba Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Thu, 7 Aug 2025 16:07:12 +0000 Subject: [PATCH] - Update to 1.0.3 * Fix typos in README.md * __init__.py: Fix a tiny typo in a comment * Update README.md * Tests : Use slant instead of doh to use only fonts-contrib * Added: Double-Blocky Font * Big type hinting and modernization upgrade OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyfiglet?expand=0&rev=14 --- .gitattributes | 23 +++++++++++ .gitignore | 1 + pyfiglet-1.0.2.tar.gz | 3 ++ pyfiglet-1.0.3.tar.gz | 3 ++ python-pyfiglet.changes | 72 +++++++++++++++++++++++++++++++++++ python-pyfiglet.spec | 84 +++++++++++++++++++++++++++++++++++++++++ 6 files changed, 186 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 pyfiglet-1.0.2.tar.gz create mode 100644 pyfiglet-1.0.3.tar.gz create mode 100644 python-pyfiglet.changes create mode 100644 python-pyfiglet.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -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 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/pyfiglet-1.0.2.tar.gz b/pyfiglet-1.0.2.tar.gz new file mode 100644 index 0000000..7e94812 --- /dev/null +++ b/pyfiglet-1.0.2.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:758788018ab8faaddc0984e1ea05ff330d3c64be663c513cc1f105f6a3066dab +size 832345 diff --git a/pyfiglet-1.0.3.tar.gz b/pyfiglet-1.0.3.tar.gz new file mode 100644 index 0000000..33a7018 --- /dev/null +++ b/pyfiglet-1.0.3.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:bad3b55d2eccb30d4693ccfd94573c2a3477dd75f86a0e5465cea51bdbfe2875 +size 833445 diff --git a/python-pyfiglet.changes b/python-pyfiglet.changes new file mode 100644 index 0000000..a179b0e --- /dev/null +++ b/python-pyfiglet.changes @@ -0,0 +1,72 @@ +------------------------------------------------------------------- +Wed Aug 6 10:13:40 UTC 2025 - John Paul Adrian Glaubitz + +- Update to 1.0.3 + * Fix typos in README.md + * __init__.py: Fix a tiny typo in a comment + * Update README.md + * Tests : Use slant instead of doh to use only fonts-contrib + * Added: Double-Blocky Font + * Big type hinting and modernization upgrade + +------------------------------------------------------------------- +Sun Jan 7 20:58:55 UTC 2024 - Dirk Müller + +- update to 1.0.2: + * Close file handle in preloadFont + * Add python3.9 to testing + * subprocess32 no longer needed + * Add python_requires >= 3.9 +- update to 1.0.0: + * Update setup.py for python 3.6 and 3.7 + * Add 'make publish' which also publishes wheel (0.8.post1) + * Add support for zipped fonts + * Fix simple typo: compatability -> compatibility + * make color parameter caps + * add options for handling surrounding whitespace + * Fix for #89 - clarify font licensing + * Update __init__.py + * Add loading German Umlaute + * Added fonts + * Support caca2tlf converted fonts better + * add blocky font + * Fix setup + * Revert "Fix setup" + * Update test.yml python versions + * Port to importlib.resources + * seek to the start of the file after checking for a zip header + * Fix for various font issues + * Fix most reming font issues + * Fix #95 - Default fonts if user just runs setup.py + * Setup auto publish + +------------------------------------------------------------------- +Wed May 20 07:26:26 UTC 2020 - Petr Gajdos + +- %python3_only -> %python_alternative + +------------------------------------------------------------------- +Wed May 8 17:49:32 UTC 2019 - John Vandenberg + +- Activate test suite +- Remove tests from runtime package +- Install manpage and add doc/figfont.txt to %doc +- Update to v0.8 + * Change LICENSE to MIT + * Provide font installation option (-L) and remove + unlicenced fonts from the distribution + +------------------------------------------------------------------- +Thu Nov 8 15:00:58 UTC 2018 - Antonio Larrosa + +- Remove BuildRequires python-devel + +------------------------------------------------------------------- +Tue Nov 6 12:44:51 UTC 2018 - Jan Engelhardt + +- Fix typography. + +------------------------------------------------------------------- +Mon Nov 5 21:02:33 UTC 2018 - Todd R + +- Initial version diff --git a/python-pyfiglet.spec b/python-pyfiglet.spec new file mode 100644 index 0000000..719a1e1 --- /dev/null +++ b/python-pyfiglet.spec @@ -0,0 +1,84 @@ +# +# spec file for package python-pyfiglet +# +# Copyright (c) 2024 SUSE LLC +# +# 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} +Name: python-pyfiglet +Version: 1.0.3 +Release: 0 +Summary: Pure Python FIGlet implementation +License: MIT +Group: Development/Languages/Python +URL: https://github.com/pwaller/pyfiglet +Source: https://files.pythonhosted.org/packages/source/p/pyfiglet/pyfiglet-%{version}.tar.gz +BuildRequires: %{python_module pip} +BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} +BuildRequires: fdupes +BuildRequires: figlet +BuildRequires: python-rpm-macros +Requires(post): update-alternatives +Requires(postun):update-alternatives +BuildArch: noarch +%python_subpackages + +%description +PyFIGlet is a full port of FIGlet (http://www.figlet.org/) into pure +Python. It takes ASCII text and renders it in ASCII art fonts. + +%prep +%setup -q -n pyfiglet-%{version} +sed -i -e '1{/^#!/d}' pyfiglet/__init__.py +mv pyfiglet/test.py . + +%build +%pyproject_wheel + +%install +%pyproject_install + +install -d -m 0755 %{buildroot}%{_mandir}/man1 +install -m 0644 doc/pyfiglet.1 %{buildroot}%{_mandir}/man1/ + +%python_clone -a %{buildroot}%{_mandir}/man1/pyfiglet.1 +%python_clone -a %{buildroot}%{_bindir}/pyfiglet + +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +# Fix python-bytecode-inconsistent-mtime +%python_expand $python -m compileall -d %{$python_sitelib} %{buildroot}%{$python_sitelib}/pyfiglet/fonts/ +%python_expand $python -O -m compileall -d %{$python_sitelib} %{buildroot}%{$python_sitelib}/pyfiglet/fonts/ +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%check +%python_expand PYTHONPATH=%{buildroot}%{$python_sitelib} $python test.py + +%post +%python_install_alternative pyfiglet pyfiglet.1 + +%postun +%python_uninstall_alternative pyfiglet pyfiglet.1 + +%files %{python_files} +%doc README.md doc/figfont.txt +%license LICENSE +%python_alternative %{_bindir}/pyfiglet +%python_alternative %{_mandir}/man1/pyfiglet.1%{ext_man} +%{python_sitelib}/pyfiglet +%{python_sitelib}/pyfiglet-%{version}.dist-info + +%changelog