Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 11 Jan 2021 06:53:17 +0000 (UTC)
From:      Dima Panov <fluffy@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r561191 - head/devel/py-azure-mgmt-core/files
Message-ID:  <202101110653.10B6rHjY059681@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: fluffy
Date: Mon Jan 11 06:53:17 2021
New Revision: 561191
URL: https://svnweb.freebsd.org/changeset/ports/561191

Log:
  devel/py-azure-mgmt-core: Fix build with Python 3.6
  
  * Enable default UTF-8 encoding for file operations
  in setup.py which fixes the build issue with Python 3.6.
  
  Approved by:	portmgr blanket (fix build)

Added:
  head/devel/py-azure-mgmt-core/files/
  head/devel/py-azure-mgmt-core/files/patch-setup.py   (contents, props changed)

Added: head/devel/py-azure-mgmt-core/files/patch-setup.py
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/py-azure-mgmt-core/files/patch-setup.py	Mon Jan 11 06:53:17 2021	(r561191)
@@ -0,0 +1,11 @@
+--- setup.py.orig	2020-10-05 05:36:52 UTC
++++ setup.py
+@@ -21,7 +21,7 @@ package_folder_path = PACKAGE_NAME.replace('-', '/')
+ namespace_name = PACKAGE_NAME.replace('-', '.')
+ 
+ # Version extraction inspired from 'requests'
+-with open(os.path.join(package_folder_path, '_version.py'), 'r') as fd:
++with open(os.path.join(package_folder_path, '_version.py'), 'r', encoding='utf-8') as fd:
+     version = re.search(r'^VERSION\s*=\s*[\'"]([^\'"]*)[\'"]',  # type: ignore
+                         fd.read(), re.MULTILINE).group(1)
+ 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202101110653.10B6rHjY059681>