Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/devel/py-pylint Use explicit encoding in setup.py for ...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/89329bf8ce7e
branches:  trunk
changeset: 431682:89329bf8ce7e
user:      joerg <joerg%pkgsrc.org@localhost>
date:      Sat May 16 02:11:40 2020 +0000

description:
Use explicit encoding in setup.py for unicode source.

diffstat:

 devel/py-pylint/distinfo                 |   4 ++--
 devel/py-pylint/patches/patch-README.rst |  15 ---------------
 devel/py-pylint/patches/patch-setup.py   |  13 +++++++++++++
 3 files changed, 15 insertions(+), 17 deletions(-)

diffs (49 lines):

diff -r b00e1d73fd4e -r 89329bf8ce7e devel/py-pylint/distinfo
--- a/devel/py-pylint/distinfo  Sat May 16 01:04:35 2020 +0000
+++ b/devel/py-pylint/distinfo  Sat May 16 02:11:40 2020 +0000
@@ -1,7 +1,7 @@
-$NetBSD: distinfo,v 1.29 2020/05/05 18:21:25 adam Exp $
+$NetBSD: distinfo,v 1.30 2020/05/16 02:11:40 joerg Exp $
 
 SHA1 (pylint-2.5.2.tar.gz) = c79bd688a881e42ed68cfa19915b900439258fdc
 RMD160 (pylint-2.5.2.tar.gz) = 1c6af3008c48acd7a9617d2170cc0e3ba68cfda3
 SHA512 (pylint-2.5.2.tar.gz) = 94debcf0a26ac61ce2e161180f300677279b7e251894c4b368ffe7e70e480f53e59475e1d84df7daf7d1bff5256f75d363fe415960986dee99e634fe95e6bd3c
 Size (pylint-2.5.2.tar.gz) = 683111 bytes
-SHA1 (patch-README.rst) = 315caa017c1a94b6487f59c962bf31bb1ed73ee6
+SHA1 (patch-setup.py) = 56a63cfe22fc22563b7e39b0567bd36437096d01
diff -r b00e1d73fd4e -r 89329bf8ce7e devel/py-pylint/patches/patch-README.rst
--- a/devel/py-pylint/patches/patch-README.rst  Sat May 16 01:04:35 2020 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,15 +0,0 @@
-$NetBSD: patch-README.rst,v 1.1 2019/12/21 23:36:23 joerg Exp $
-
-Remove non-ASCII character.
-
---- README.rst.orig    2019-12-21 21:20:53.977120638 +0000
-+++ README.rst
-@@ -126,7 +126,7 @@ We use pytest_ for testing ``pylint``, w
- 
- If you want to run tests on a specific portion of the code with pytest_, (pytest-cov_) and your local python version::
- 
--    # ( pip install pytest-cov )
-+    # ( pip install pytest-cov )
-     # Everything:
-     python3 -m pytest tests/
-     # Everything in tests/message with coverage for the relevant code:
diff -r b00e1d73fd4e -r 89329bf8ce7e devel/py-pylint/patches/patch-setup.py
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/py-pylint/patches/patch-setup.py    Sat May 16 02:11:40 2020 +0000
@@ -0,0 +1,13 @@
+$NetBSD: patch-setup.py,v 1.3 2020/05/16 02:11:40 joerg Exp $
+
+--- setup.py.orig      2020-05-15 22:33:46.785574641 +0000
++++ setup.py
+@@ -49,7 +49,7 @@ except ImportError:
+ base_dir = os.path.dirname(__file__)
+ 
+ __pkginfo__ = {}
+-with open(os.path.join(base_dir, "pylint", "__pkginfo__.py")) as pkginfo_fp:
++with open(os.path.join(base_dir, "pylint", "__pkginfo__.py"), encoding="UTF-8") as pkginfo_fp:
+     exec(pkginfo_fp.read(), __pkginfo__)
+ scripts = __pkginfo__.get("scripts", [])
+ data_files = __pkginfo__.get("data_files", None)



Home | Main Index | Thread Index | Old Index