Index: head/devel/py-osprofiler/Makefile =================================================================== --- head/devel/py-osprofiler/Makefile (revision 474344) +++ head/devel/py-osprofiler/Makefile (revision 474345) @@ -1,28 +1,42 @@ # Created by: Alexander Nusov # $FreeBSD$ PORTNAME= osprofiler -PORTVERSION= 1.5.0 +PORTVERSION= 1.15.2 CATEGORIES= devel python MASTER_SITES= CHEESESHOP 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 Index: head/devel/py-osprofiler/distinfo =================================================================== --- head/devel/py-osprofiler/distinfo (revision 474344) +++ head/devel/py-osprofiler/distinfo (revision 474345) @@ -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 Index: head/devel/py-osprofiler/files/patch-osprofiler_cmd_shell.py =================================================================== --- head/devel/py-osprofiler/files/patch-osprofiler_cmd_shell.py (nonexistent) +++ head/devel/py-osprofiler/files/patch-osprofiler_cmd_shell.py (revision 474345) @@ -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="") ++ # Fix CLI for Python 3.x ++ subcommands = parent_parser.add_subparsers(help="", 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() Property changes on: head/devel/py-osprofiler/files/patch-osprofiler_cmd_shell.py ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/devel/py-osprofiler/pkg-descr =================================================================== --- head/devel/py-osprofiler/pkg-descr (revision 474344) +++ head/devel/py-osprofiler/pkg-descr (revision 474345) @@ -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/