svn commit: r541494 - in head/devel/py-azure-multiapi-storage: . files

Danilo G. Baio dbaio at FreeBSD.org
Wed Jul 8 14:28:49 UTC 2020


Author: dbaio
Date: Wed Jul  8 14:28:48 2020
New Revision: 541494
URL: https://svnweb.freebsd.org/changeset/ports/541494

Log:
  devel/py-azure-multiapi-storage: Fix packaging
  
  Reported by:	lwhsu
  MFH:		2020Q3 (blanket: runtime fix)

Added:
  head/devel/py-azure-multiapi-storage/files/
  head/devel/py-azure-multiapi-storage/files/patch-setup.py   (contents, props changed)
Modified:
  head/devel/py-azure-multiapi-storage/Makefile

Modified: head/devel/py-azure-multiapi-storage/Makefile
==============================================================================
--- head/devel/py-azure-multiapi-storage/Makefile	Wed Jul  8 14:03:50 2020	(r541493)
+++ head/devel/py-azure-multiapi-storage/Makefile	Wed Jul  8 14:28:48 2020	(r541494)
@@ -2,6 +2,7 @@
 
 PORTNAME=	azure-multiapi-storage
 PORTVERSION=	0.3.5
+PORTREVISION=	1
 CATEGORIES=	devel python
 MASTER_SITES=	CHEESESHOP
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}

Added: head/devel/py-azure-multiapi-storage/files/patch-setup.py
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/py-azure-multiapi-storage/files/patch-setup.py	Wed Jul  8 14:28:48 2020	(r541494)
@@ -0,0 +1,27 @@
+# https://github.com/Azure/azure-multiapi-storage-python/pull/29/files
+
+--- setup.py.orig	2020-07-08 12:22:39 UTC
++++ setup.py
+@@ -18,6 +18,13 @@
+ from setuptools import find_packages, setup
+ import sys
+ 
++if sys.version_info[0] < 3:
++    packages = find_packages()
++else:
++    # ensure that the "azure" native namespace is coherent
++    from setuptools import find_namespace_packages
++    packages = find_namespace_packages(include=["azure.multiapi.*"])
++
+ # azure v0.x is not compatible with this package
+ # azure v0.x used to have a __version__ attribute (newer versions don't)
+ try:
+@@ -57,7 +64,7 @@ setup(
+         'License :: OSI Approved :: Apache Software License',
+     ],
+     zip_safe=False,
+-    packages=find_packages(exclude=["azure"]),
++    packages=packages,
+     install_requires=[
+         'azure-common',
+         'cryptography',


More information about the svn-ports-all mailing list