File: Fix-PKG-INFO-encoding.patch

package info (click to toggle)
dacite 1.9.2-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 332 kB
  • sloc: python: 1,870; makefile: 8
file content (26 lines) | stat: -rw-r--r-- 805 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
From: Valentin Vidic <vvidic@debian.org>
Date: Sun, 4 Jan 2026 17:30:57 -0400
Subject: Fix encoding of PKG-INFO file

Last-Update: 2020-04-11

Reproducible test fails if the file is encoded differently
depending on the current locale settings.
Last-Update: 2020-04-11
---
 setup.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/setup.py b/setup.py
index f2c33b0..ca4bf9c 100644
--- a/setup.py
+++ b/setup.py
@@ -4,7 +4,7 @@ setup(
     name="dacite",
     version="1.9.2",
     description="Simple creation of data classes from dictionaries.",
-    long_description=open("README.md").read(),
+    long_description=open("README.md", encoding="utf-8").read(),
     long_description_content_type="text/markdown",
     author="Konrad Hałas",
     author_email="halas.konrad@gmail.com",