#3 Backport upstream patch to add support for cleo 2.0.0+
Closed a year ago by xvitaly. Opened a year ago by thrnciar.
rpms/ thrnciar/python-pytzdata compatibility-with-new-cleo  into  rawhide

file added
+35
@@ -0,0 +1,35 @@ 

+ From b205fbbf2fa4faef3bedd484128b6b9619d3e10d Mon Sep 17 00:00:00 2001

+ From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Hrn=C4=8Diar?= <thrnciar@redhat.com>

+ Date: Tue, 21 Feb 2023 14:11:43 +0100

+ Subject: [PATCH] Set mandatory name attribute in Command class to make

+  pytzdata compatible with cleo 2.0.0+

+ 

+ ---

+  pytzdata/commands/make.py  | 1 +

+  pytzdata/commands/zones.py | 1 +

+  2 files changed, 2 insertions(+)

+ 

+ diff --git a/pytzdata/commands/make.py b/pytzdata/commands/make.py

+ index e0a7b4b..78822d1 100644

+ --- a/pytzdata/commands/make.py

+ +++ b/pytzdata/commands/make.py

+ @@ -20,6 +20,7 @@ class MakeCommand(Command):

+          {version? : The version to make.}

+          {--path= : The destination directory.}

+      """

+ +    name = "make"

+  

+      FILES = ["tzcode-latest.tar.gz", "tzdata-latest.tar.gz"]

+  

+ diff --git a/pytzdata/commands/zones.py b/pytzdata/commands/zones.py

+ index ef3e33a..9ac7c2e 100644

+ --- a/pytzdata/commands/zones.py

+ +++ b/pytzdata/commands/zones.py

+ @@ -13,6 +13,7 @@ class ZonesCommand(Command):

+  

+      zones:dump

+      """

+ +    name = "zones"

+  

+      TEMPLATE = """# -*- coding: utf-8 -*-

+  

file modified
+8 -1
@@ -5,7 +5,7 @@ 

  

  Name: python-%{pypi_name}

  Version: 2020.1

- Release: 10%{?dist}

+ Release: 11%{?dist}

  

  License: MIT

  Summary: Timezone database for Python
@@ -14,6 +14,10 @@ 

  # Cleo was updated to 1.0.0a5 because the latest version of poetry needed it.

  # It changed the way how some modules are imported and this patch should fix it.

  Patch: 0001-Adapt-imports-to-the-latest-version-of-cleo.patch

+ 

+ # Set mandatory name attribute in Command class to make pytzdata

+ # compatible with cleo 2.0.0+

+ Patch: https://github.com/sdispater/pytzdata/pull/17.patch

  BuildArch: noarch

  

  BuildRequires: python3-devel
@@ -46,6 +50,9 @@ 

  %doc README.rst

  

  %changelog

+ * Tue Feb 21 2023 Tomáš Hrnčiar <thrnciar@redhat.com> - 2020.1-11

+ - Backport upstream patch to add support for cleo 2.0.0+

+ 

  * Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 2020.1-10

  - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild

  

no initial comment

Pull-Request has been closed by xvitaly

a year ago
Metadata