svn commit: r561191 - head/devel/py-azure-mgmt-core/files

Dima Panov fluffy at FreeBSD.org
Mon Jan 11 06:53:17 UTC 2021


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)
+ 


More information about the svn-ports-all mailing list