Package: buku / 4.6+ds-1

Remove-unnecessary-copyfile-function-to-avoid-upstream-ch.patch Patch series | 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
From: =?utf-8?b?IlNaIExpbiAo5p6X5LiK5pm6KSI=?= <szlin@debian.org>
Date: Thu, 2 May 2019 15:29:31 +0800
Subject: Remove unnecessary copyfile function to avoid upstream changes

---
 setup.py | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/setup.py b/setup.py
index 678dad3..419bf57 100644
--- a/setup.py
+++ b/setup.py
@@ -6,10 +6,7 @@ import shutil
 
 from setuptools import setup, find_packages
 
-if os.path.isfile('buku'):
-    shutil.copyfile('buku', 'buku.py')
-
-with open('buku.py', encoding='utf-8') as f:
+with open('buku', encoding='utf-8') as f:
     version = re.search('__version__ = \'([^\']+)\'', f.read()).group(1)  # type: ignore
 
 with open('README.md', encoding='utf-8') as f: