From 44ece5b5ca3c4578ff24f0f818ce25e8ced11b684b17dd82ca483801b0d68e0f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Tue, 14 Jan 2025 07:25:16 +0000 Subject: [PATCH] - update to version 2.1.0 - update the build requirements to build with pip and hatchling - remove executable bit of typogrify/packages/titlecase/__init__.py - restrict the list of packaged files to typogrify only OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-typogrify?expand=0&rev=6 --- .gitattributes | 23 ++++++++++++++ .gitignore | 1 + python-typogrify.changes | 61 +++++++++++++++++++++++++++++++++++ python-typogrify.spec | 69 ++++++++++++++++++++++++++++++++++++++++ typogrify-2.0.7.tar.gz | 3 ++ typogrify-2.1.0.tar.gz | 3 ++ 6 files changed, 160 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 python-typogrify.changes create mode 100644 python-typogrify.spec create mode 100644 typogrify-2.0.7.tar.gz create mode 100644 typogrify-2.1.0.tar.gz 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/python-typogrify.changes b/python-typogrify.changes new file mode 100644 index 0000000..0441f63 --- /dev/null +++ b/python-typogrify.changes @@ -0,0 +1,61 @@ +------------------------------------------------------------------- +Mon Jan 13 12:22:56 UTC 2025 - Benoît Monin + +- update to version 2.1.0: + * Add ability to select which filters are applied + * Package via pyproject instead of Setuptools + * Improve testing, linting, and CI tooling + * Drop support for Python < 3.9 +- update the build requirements to build with pip and hatchling +- remove executable bit of typogrify/packages/titlecase/__init__.py +- restrict the list of packaged files to typogrify only + +------------------------------------------------------------------- +Thu Jul 6 11:08:55 UTC 2023 - ecsos + +- Add %{?sle15_python_module_pythons} + +------------------------------------------------------------------- +Mon Jan 4 07:37:25 UTC 2021 - Markéta Machová + +- spec-cleaner to pass the Factory checks + +------------------------------------------------------------------- +Mon Nov 16 10:32:21 UTC 2020 - Matej Cepl + +- Enable tests. + +------------------------------------------------------------------- +Mon May 8 16:58:45 UTC 2017 - benoit.monin@gmx.fr + +- convert the package to singlespec +- call fdupes to fix duplicated files + +------------------------------------------------------------------- +Tue Sep 23 16:55:08 UTC 2014 - benoit.monin@gmx.fr + +- update to version 2.0.7: + * 2.0.4: moving titlecase into the project + * 2.0.2, 2.0.3: adding support for custom ignore tags +- remove useless shebang on python files +- add package documentation +- add the requires as buildrequires to guarantee they are available + +------------------------------------------------------------------- +Wed Jan 8 18:02:06 UTC 2014 - benoit.monin@gmx.fr + +- update to upstream version 2.0.1: + * add Python 3 compatibility + * rectify deprecated function calls + +------------------------------------------------------------------- +Fri Dec 27 17:13:54 UTC 2013 - benoit.monin@gmx.fr + +- switch from distribute to setuptools +- remove useless CFLAGS="%{optflags}" + +------------------------------------------------------------------- +Wed Mar 27 21:29:59 UTC 2013 - benoit.monin@gmx.fr + +- initial package with version 2.0.0 + diff --git a/python-typogrify.spec b/python-typogrify.spec new file mode 100644 index 0000000..a6e6f83 --- /dev/null +++ b/python-typogrify.spec @@ -0,0 +1,69 @@ +# +# spec file for package python-typogrify +# +# Copyright (c) 2025 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-typogrify +Version: 2.1.0 +Release: 0 +Summary: Typography related template filters for Django & Jinja2 applications +License: BSD-3-Clause +Group: Development/Languages/Python +URL: https://github.com/mintchaos/typogrify +Source: https://files.pythonhosted.org/packages/source/t/typogrify/typogrify-%{version}.tar.gz +BuildRequires: %{python_module base >= 3.9} +BuildRequires: %{python_module hatchling} +BuildRequires: %{python_module pip} +BuildRequires: %{python_module smartypants >= 1.8.3} +BuildRequires: fdupes +BuildRequires: python-rpm-macros +Requires: python-smartypants >= 1.8.3 +BuildArch: noarch +%python_subpackages + +%description +This application provides a set of custom filters for the Django template system +which automatically apply various transformations to plain text in order to yield +typographically-improved HTML. + +%prep +%setup -q -n typogrify-%{version} +# remove useless shebang and executable bit +sed -i '1d' \ + typogrify/packages/titlecase/__init__.py \ + typogrify/packages/titlecase/tests.py +chmod -x typogrify/packages/titlecase/__init__.py + +%build +%pyproject_wheel + +%install +%pyproject_install +%fdupes %{buildroot}%{_prefix} + +%check +%{python_expand export PYTHONPATH=%{buildroot}%{$python_sitelib} PYTHONDONTWRITEBYTECODE=1 +$python -mdoctest -v typogrify/filters.py +} + +%files %{python_files} +%license LICENSE.txt +%doc README.md +%{python_sitelib}/typogrify-%{version}.dist-info +%{python_sitelib}/typogrify + +%changelog diff --git a/typogrify-2.0.7.tar.gz b/typogrify-2.0.7.tar.gz new file mode 100644 index 0000000..f2fe2a4 --- /dev/null +++ b/typogrify-2.0.7.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:8be4668cda434163ce229d87ca273a11922cb1614cb359970b7dc96eed13cb38 +size 12903 diff --git a/typogrify-2.1.0.tar.gz b/typogrify-2.1.0.tar.gz new file mode 100644 index 0000000..71eeb8b --- /dev/null +++ b/typogrify-2.1.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f0aa004e98032a6e6be4c9da65e7eb7150e36ca3bf508adbcda82b4d003e61ee +size 28622