Accepting request 1237649 from devel:languages:python

OBS-URL: https://build.opensuse.org/request/show/1237649
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-typogrify?expand=0&rev=3
This commit is contained in:
Ana Guerrero 2025-01-15 16:42:01 +00:00 committed by Git OBS Bridge
commit 7168eabb78
4 changed files with 29 additions and 14 deletions

View File

@ -1,3 +1,15 @@
-------------------------------------------------------------------
Mon Jan 13 12:22:56 UTC 2025 - Benoît Monin <benoit.monin@gmx.fr>
- 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 <ecsos@opensuse.org> Thu Jul 6 11:08:55 UTC 2023 - ecsos <ecsos@opensuse.org>

View File

@ -1,7 +1,7 @@
# #
# spec file for package python-typogrify # 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 # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@ -18,19 +18,20 @@
%{?sle15_python_module_pythons} %{?sle15_python_module_pythons}
Name: python-typogrify Name: python-typogrify
Version: 2.0.7 Version: 2.1.0
Release: 0 Release: 0
Summary: Typography related template filters for Django & Jinja2 applications Summary: Typography related template filters for Django & Jinja2 applications
License: BSD-3-Clause License: BSD-3-Clause
Group: Development/Languages/Python Group: Development/Languages/Python
URL: https://github.com/mintchaos/typogrify URL: https://github.com/mintchaos/typogrify
Source: https://files.pythonhosted.org/packages/source/t/typogrify/typogrify-%{version}.tar.gz Source: https://files.pythonhosted.org/packages/source/t/typogrify/typogrify-%{version}.tar.gz
BuildRequires: %{python_module devel} BuildRequires: %{python_module base >= 3.9}
BuildRequires: %{python_module setuptools} BuildRequires: %{python_module hatchling}
BuildRequires: %{python_module smartypants} BuildRequires: %{python_module pip}
BuildRequires: %{python_module smartypants >= 1.8.3}
BuildRequires: fdupes BuildRequires: fdupes
BuildRequires: python-rpm-macros BuildRequires: python-rpm-macros
Requires: python-smartypants Requires: python-smartypants >= 1.8.3
BuildArch: noarch BuildArch: noarch
%python_subpackages %python_subpackages
@ -41,16 +42,17 @@ typographically-improved HTML.
%prep %prep
%setup -q -n typogrify-%{version} %setup -q -n typogrify-%{version}
# remove useless shebang # remove useless shebang and executable bit
sed -i '1d' \ sed -i '1d' \
typogrify/packages/titlecase/__init__.py \ typogrify/packages/titlecase/__init__.py \
typogrify/packages/titlecase/tests.py typogrify/packages/titlecase/tests.py
chmod -x typogrify/packages/titlecase/__init__.py
%build %build
%python_build %pyproject_wheel
%install %install
%python_install %pyproject_install
%fdupes %{buildroot}%{_prefix} %fdupes %{buildroot}%{_prefix}
%check %check
@ -60,7 +62,8 @@ $python -mdoctest -v typogrify/filters.py
%files %{python_files} %files %{python_files}
%license LICENSE.txt %license LICENSE.txt
%doc README.rst %doc README.md
%{python_sitelib}/* %{python_sitelib}/typogrify-%{version}.dist-info
%{python_sitelib}/typogrify
%changelog %changelog

BIN
typogrify-2.0.7.tar.gz (Stored with Git LFS)

Binary file not shown.

3
typogrify-2.1.0.tar.gz Normal file
View File

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