diff --git a/python-typogrify.changes b/python-typogrify.changes index 7cd57fc..0441f63 100644 --- a/python-typogrify.changes +++ b/python-typogrify.changes @@ -1,3 +1,15 @@ +------------------------------------------------------------------- +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 diff --git a/python-typogrify.spec b/python-typogrify.spec index 24cfdab..a6e6f83 100644 --- a/python-typogrify.spec +++ b/python-typogrify.spec @@ -1,7 +1,7 @@ # # spec file for package python-typogrify # -# Copyright (c) 2021 SUSE LLC +# 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 @@ -18,19 +18,20 @@ %{?sle15_python_module_pythons} Name: python-typogrify -Version: 2.0.7 +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 devel} -BuildRequires: %{python_module setuptools} -BuildRequires: %{python_module smartypants} +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 +Requires: python-smartypants >= 1.8.3 BuildArch: noarch %python_subpackages @@ -41,16 +42,17 @@ typographically-improved HTML. %prep %setup -q -n typogrify-%{version} -# remove useless shebang +# 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 -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %fdupes %{buildroot}%{_prefix} %check @@ -60,7 +62,8 @@ $python -mdoctest -v typogrify/filters.py %files %{python_files} %license LICENSE.txt -%doc README.rst -%{python_sitelib}/* +%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 deleted file mode 100644 index f2fe2a4..0000000 --- a/typogrify-2.0.7.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -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