Compare commits

1 Commits
main ... 1.1

4 changed files with 16 additions and 35 deletions

View File

@@ -1,20 +1,3 @@
-------------------------------------------------------------------
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>
- Add %{?sle15_python_module_pythons}
-------------------------------------------------------------------
Mon Jan 4 07:37:25 UTC 2021 - Markéta Machová <mmachova@suse.com>

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-typogrify
#
# Copyright (c) 2025 SUSE LLC
# Copyright (c) 2021 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -16,22 +16,22 @@
#
%{?sle15_python_module_pythons}
%define skip_python2 1
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-typogrify
Version: 2.1.0
Version: 2.0.7
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: %{python_module devel}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module smartypants}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-smartypants >= 1.8.3
Requires: python-smartypants
BuildArch: noarch
%python_subpackages
@@ -42,17 +42,16 @@ typographically-improved HTML.
%prep
%setup -q -n typogrify-%{version}
# remove useless shebang and executable bit
# remove useless shebang
sed -i '1d' \
typogrify/packages/titlecase/__init__.py \
typogrify/packages/titlecase/tests.py
chmod -x typogrify/packages/titlecase/__init__.py
%build
%pyproject_wheel
%python_build
%install
%pyproject_install
%python_install
%fdupes %{buildroot}%{_prefix}
%check
@@ -62,8 +61,7 @@ $python -mdoctest -v typogrify/filters.py
%files %{python_files}
%license LICENSE.txt
%doc README.md
%{python_sitelib}/typogrify-%{version}.dist-info
%{python_sitelib}/typogrify
%doc README.rst
%{python_sitelib}/*
%changelog

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

Binary file not shown.

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

Binary file not shown.