Page MenuHomeFreeBSD

D16863.id47160.diff
No OneTemporary

D16863.id47160.diff

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,37 @@
+# $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 \
+ mercurial:devel/mercurial
+
+USES= python
+USE_GITHUB= yes
+USE_PYTHON= autoplist concurrent distutils
+
+NO_ARCH= yes
+GH_ACCOUNT= peritus
+
+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 <bsd.port.mk>
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

File Metadata

Mime Type
text/plain
Expires
Mon, Jan 20, 12:33 PM (2 h, 45 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
15977865
Default Alt Text
D16863.id47160.diff (2 KB)

Event Timeline