Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 10 Jul 2018 09:37:22 +0000 (UTC)
From:      Martin Wilke <miwi@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r474345 - in head/devel/py-osprofiler: . files
Message-ID:  <201807100937.w6A9bMZN048629@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: miwi
Date: Tue Jul 10 09:37:22 2018
New Revision: 474345
URL: https://svnweb.freebsd.org/changeset/ports/474345

Log:
  - Update to 1.15.2
  - Added LICENSE and LICENSE_FILE
  - Added DOCS option with appropriate dependencies
  - Sorted variables a bit
  - Updated WWW and reformatted pkg-descr
  
  PR:`		228683
  Submitted by:	freebsd_ports@k-worx.org
  Approved by:	maintainer
  Sponsored by:	iXsystems Inc.

Added:
  head/devel/py-osprofiler/files/
  head/devel/py-osprofiler/files/patch-osprofiler_cmd_shell.py   (contents, props changed)
Modified:
  head/devel/py-osprofiler/Makefile
  head/devel/py-osprofiler/distinfo
  head/devel/py-osprofiler/pkg-descr

Modified: head/devel/py-osprofiler/Makefile
==============================================================================
--- head/devel/py-osprofiler/Makefile	Tue Jul 10 09:34:57 2018	(r474344)
+++ head/devel/py-osprofiler/Makefile	Tue Jul 10 09:37:22 2018	(r474345)
@@ -2,7 +2,7 @@
 # $FreeBSD$
 
 PORTNAME=	osprofiler
-PORTVERSION=	1.5.0
+PORTVERSION=	1.15.2
 CATEGORIES=	devel python
 MASTER_SITES=	CHEESESHOP
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
@@ -10,19 +10,33 @@ PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
 MAINTAINER=	alexander.nusov@nfvexpress.com
 COMMENT=	OpenStack Profiler Library
 
-BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}pbr>=1.6:devel/py-pbr@${PY_FLAVOR}
+LICENSE=	APACHE20
+LICENSE_FILE=	${WRKSRC}/LICENSE
+
 RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}six>=1.9.0:devel/py-six@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}oslo.utils>=3.16.0:devel/py-oslo.utils@${PY_FLAVOR} \
-		${PYTHON_PKGNAMEPREFIX}oslo.log>=3.11.0:devel/py-oslo.log@${PY_FLAVOR} \
-		${PYTHON_PKGNAMEPREFIX}oslo.concurrency>=3.8.0:devel/py-oslo.concurrency@${PY_FLAVOR} \
-		${PYTHON_PKGNAMEPREFIX}oslo.messaging>=5.2.0:devel/py-oslo.messaging@${PY_FLAVOR} \
-		${PYTHON_PKGNAMEPREFIX}netaddr>=0.7.13:net/py-netaddr@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}webob>=1.6.0:www/py-webob@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}requests>=2.10.0:www/py-requests@${PY_FLAVOR} \
-		${PYTHON_PKGNAMEPREFIX}webob>=1.6.0:www/py-webob@${PY_FLAVOR}
+		${PYTHON_PKGNAMEPREFIX}netaddr>=0.7.13:net/py-netaddr@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}oslo.concurrency>=3.8.0:devel/py-oslo.concurrency@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}oslo.config>=3.2.0:devel/py-oslo.config@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}oslo.serialization>=0:devel/py-oslo.serialization@${PY_FLAVOR}
 
-NO_ARCH=	yes
-
 USES=		python
 USE_PYTHON=	autoplist distutils
+
+NO_ARCH=	yes
+PORTDOCS=	*
+
+OPTIONS_DEFINE=	DOCS
+DOCS_BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}sphinx>=0:textproc/py-sphinx@${PY_FLAVOR} \
+			${PYTHON_PKGNAMEPREFIX}openstackdocstheme>=0:textproc/py-openstackdocstheme@${PY_FLAVOR}
+DOCS_VARS=		PYDISTUTILS_BUILD_TARGET+="build_sphinx -a -E"
+
+post-install-DOCS-on:
+	@${MKDIR} ${STAGEDIR}${DOCSDIR}
+	(cd ${WRKSRC}/doc/build/html && \
+		${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR} \
+			"! -name .buildinfo -and ! -name objects.inv")
 
 .include <bsd.port.mk>

Modified: head/devel/py-osprofiler/distinfo
==============================================================================
--- head/devel/py-osprofiler/distinfo	Tue Jul 10 09:34:57 2018	(r474344)
+++ head/devel/py-osprofiler/distinfo	Tue Jul 10 09:37:22 2018	(r474345)
@@ -1,3 +1,3 @@
-TIMESTAMP = 1485281715
-SHA256 (osprofiler-1.5.0.tar.gz) = aee63cfd888e6049ea82535ce458ce4844b4ac893dcb18060eda24192505627e
-SIZE (osprofiler-1.5.0.tar.gz) = 72539
+TIMESTAMP = 1527876497
+SHA256 (osprofiler-1.15.2.tar.gz) = 7b5501af2027986cfa50ca4638a681f48425d72f231eea24ee7bfeccdb985f61
+SIZE (osprofiler-1.15.2.tar.gz) = 80503

Added: head/devel/py-osprofiler/files/patch-osprofiler_cmd_shell.py
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/py-osprofiler/files/patch-osprofiler_cmd_shell.py	Tue Jul 10 09:37:22 2018	(r474345)
@@ -0,0 +1,13 @@
+--- osprofiler/cmd/shell.py.orig	2018-03-14 17:31:26 UTC
++++ osprofiler/cmd/shell.py
+@@ -54,7 +54,9 @@ class OSProfilerShell(object):
+         return parser
+ 
+     def _append_subcommands(self, parent_parser):
+-        subcommands = parent_parser.add_subparsers(help="<subcommands>")
++	# Fix CLI for Python 3.x
++        subcommands = parent_parser.add_subparsers(help="<subcommands>", dest="too few arguments")
++        subcommands.required = True
+         for group_cls in commands.BaseCommand.__subclasses__():
+             group_parser = subcommands.add_parser(group_cls.group_name)
+             subcommand_parser = group_parser.add_subparsers()

Modified: head/devel/py-osprofiler/pkg-descr
==============================================================================
--- head/devel/py-osprofiler/pkg-descr	Tue Jul 10 09:34:57 2018	(r474344)
+++ head/devel/py-osprofiler/pkg-descr	Tue Jul 10 09:37:22 2018	(r474345)
@@ -1,8 +1,9 @@
 OSProfiler provides a tiny but powerful library that is used by most (soon to
-be all) OpenStack projects and their python clients. It provides functionality
-to be able to generate 1 trace per request, that goes through all involved
-services. This trace can then be extracted and used to build a tree of calls
-which can be quite handy for a variety of reasons (for example in isolating
-cross-project performance issues).
+be all) OpenStack projects and their python clients.
 
-WWW: https://pypi.org/project/osprofiler/
+It provides functionality to be able to generate 1 trace per request, that goes
+through all involved services. This trace can then be extracted and used to
+build a tree of calls which can be quite handy for a variety of reasons (for
+example in isolating cross-project performance issues).
+
+WWW: https://https://docs.openstack.org/osprofiler/



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