Accepting request 912950 from home:benoit_monin:branches:devel:languages:python

- update to version 1.9.2
- remove fix_encoding_in_setup_py.patch: merged upstream
- update the package description to match upstream readme
- move the %python_subpackages macro to fix an rpmlint warning

OBS-URL: https://build.opensuse.org/request/show/912950
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-feedgenerator?expand=0&rev=12
This commit is contained in:
Markéta Machová 2021-08-19 09:14:01 +00:00 committed by Git OBS Bridge
parent cb31acd508
commit a9b31c5674
5 changed files with 18 additions and 28 deletions

View File

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

View File

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

View File

@ -1,18 +0,0 @@
--- feedgenerator-1.9.1.orig/setup.py
+++ feedgenerator-1.9.1/setup.py
@@ -3,12 +3,14 @@
# Using setuptools rather than distutils to get the `develop` command
from setuptools import setup
+# Needed to specify the encoding
+from io import open
NAME = 'feedgenerator'
PACKAGES = ['feedgenerator', 'feedgenerator.django',
'feedgenerator.django.utils']
DESCRIPTION = 'Standalone version of django.utils.feedgenerator'
-LONG_DESCRIPTION = open('README.rst').read()
+LONG_DESCRIPTION = open('README.rst', encoding='utf-8').read()
URL = "https://github.com/getpelican/feedgenerator"

View File

@ -1,3 +1,14 @@
-------------------------------------------------------------------
Wed Aug 18 19:16:18 UTC 2021 - Benoît Monin <benoit.monin@gmx.fr>
- update to version 1.9.2:
* Use description field as subtitle for Atom feeds, if provided
(#23)
* Update list of explicitly-supported Python versions to 3.6-3.9
- remove fix_encoding_in_setup_py.patch: merged upstream
- update the package description to match upstream readme
- move the %python_subpackages macro to fix an rpmlint warning
-------------------------------------------------------------------
Thu May 27 06:29:32 UTC 2021 - pgajdos@suse.com

View File

@ -18,14 +18,13 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-feedgenerator
Version: 1.9.1
Version: 1.9.2
Release: 0
Summary: Standalone version of django.utilsfeedgenerator, compatible with Py3k
License: BSD-3-Clause
Group: Development/Languages/Python
URL: https://github.com/getpelican/feedgenerator
Source: https://files.pythonhosted.org/packages/source/f/feedgenerator/feedgenerator-%{version}.tar.gz
Patch0: fix_encoding_in_setup_py.patch
BuildRequires: %{python_module pytz}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module six}
@ -34,16 +33,14 @@ BuildRequires: python-rpm-macros
Requires: python-pytz
Requires: python-six
BuildArch: noarch
%python_subpackages
%description
Feedgenerator-py3k is a standalone version of Django's feedgenerator.
It is based on the current Django Version 1.5.dev20120824122350.
%python_subpackages
FeedGenerator is a standalone version of Djangos feedgenerator module.
It has evolved over time and includes numerous enhancements.
%prep
%setup -q -n feedgenerator-%{version}
%autopatch -p1
%build
%python_build