Index: devel/Makefile =================================================================== --- devel/Makefile +++ devel/Makefile @@ -4399,6 +4399,7 @@ SUBDIR += py-buildbot-worker SUBDIR += py-buildbot-www SUBDIR += py-bullet3 + SUBDIR += py-bumpversion SUBDIR += py-cached-property SUBDIR += py-cachetools SUBDIR += py-calendar Index: devel/py-bumpversion/Makefile =================================================================== --- /dev/null +++ devel/py-bumpversion/Makefile @@ -0,0 +1,45 @@ +# $FreeBSD$ + +PORTNAME= bumpversion +DISTVERSIONPREFIX= v +DISTVERSION= 0.5.3 +CATEGORIES= devel python +MASTER_SITES= CHEESESHOP +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= loader@FreeBSD.org +COMMENT= Version-bump your software with a single command + +LICENSE= MIT +LICENSE_FILE= ${WRKSRC}/LICENSE.rst + +TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pytest>0:devel/py-pytest@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}mock>0:devel/py-mock@${PY_FLAVOR} \ + git:devel/git \ + hg:devel/mercurial + +USES= python +USE_GITHUB= yes +USE_PYTHON= autoplist concurrent distutils + +NO_ARCH= yes +GH_ACCOUNT= peritus + +OPTIONS_DEFINE= GIT MERCURIAL + +GIT_DESC= Install devel/git as runtime dependency +MERCURIAL_DESC= Install devel/mercurial as runtime dependency + +GIT_RUN_DEPENDS= git:devel/git +MERCURIAL_RUN_DEPENDS= hg:devel/mercurial + +post-patch: + ${REINPLACE_CMD} -e '/bumpversion --help/s|bumpversion|${STAGEDIR}${PREFIX}/bin/bumpversion${UNIQUE_SUFFIX}|' \ + -e '/bumpversion patch;/s|bumpversion|${STAGEDIR}${PREFIX}/bin/bumpversion${UNIQUE_SUFFIX}|' \ + ${WRKSRC}/tests.py + +do-test: + @cd ${TEST_WRKSRC} && ${SETENV} ${TEST_ENV} PYTHONPATH=${PYDISTUTILS_EGGINFODIR} \ + ${PYTHON_CMD} -m pytest + +.include Index: devel/py-bumpversion/distinfo =================================================================== --- /dev/null +++ devel/py-bumpversion/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1534859060 +SHA256 (peritus-bumpversion-v0.5.3_GH0.tar.gz) = 97ac6efca7544853309b68efe92f113ab6bddb77ecbaefa5702a6183a30bcb33 +SIZE (peritus-bumpversion-v0.5.3_GH0.tar.gz) = 25073 Index: devel/py-bumpversion/files/patch-bumpversion_____init____.py =================================================================== --- /dev/null +++ devel/py-bumpversion/files/patch-bumpversion_____init____.py @@ -0,0 +1,13 @@ +https://github.com/peritus/bumpversion/pull/183 + +--- bumpversion/__init__.py.orig 2015-04-15 09:12:43 UTC ++++ bumpversion/__init__.py +@@ -30,6 +30,8 @@ import codecs + + if sys.version_info[0] == 2: + sys.stdout = codecs.getwriter('utf-8')(sys.stdout) ++elif sys.version_info[0] == 3 and sys.version_info[1] <= 6: ++ sys.stdout = codecs.getwriter('utf-8')(sys.stdout.buffer, 'strict') + + __VERSION__ = '0.5.3' + Index: devel/py-bumpversion/pkg-descr =================================================================== --- /dev/null +++ devel/py-bumpversion/pkg-descr @@ -0,0 +1,4 @@ +A small command line tool to simplify releasing software by updating +all version strings in your source code by the correct increment. + +WWW: https://github.com/peritus/bumpversion