net-im/py-slackclient: Update to 1.2.1

- Python 3 is now supported [1].
- Update and sort all *_DEPENDS to match upstreams declarations, using specific
  versions where declared and possible (eg: we dont use "!=").
- We want one line per test ouput, so verbosify the tests.

[1] https://github.com/slackapi/python-slackclient/issues/165

Changelog:

  https://slackapi.github.io/python-slackclient/changelog.html

PR:		228137
Submitted by:	Derek Schrock <dereks lifeofadishwasher com>
This commit is contained in:
Kubilay Kocak 2018-05-11 06:40:27 +00:00
parent 11878b68ef
commit 781fe2df27
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=469613
2 changed files with 13 additions and 10 deletions

View File

@ -2,7 +2,7 @@
# $FreeBSD$
PORTNAME= slackclient
PORTVERSION= 1.1.0
PORTVERSION= 1.2.1
CATEGORIES= net-im python
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
@ -11,21 +11,24 @@ COMMENT= Python client for Slack.com
LICENSE= MIT
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}websocket-client>0:www/py-websocket-client@${FLAVOR} \
${PYTHON_PKGNAMEPREFIX}requests>0:www/py-requests@${FLAVOR}
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}websocket-client>=0.35:www/py-websocket-client@${FLAVOR} \
${PYTHON_PKGNAMEPREFIX}requests>=2.11:www/py-requests@${FLAVOR} \
${PYTHON_PKGNAMEPREFIX}six>=1.10:devel/py-six@${FLAVOR}
TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pytest>0:devel/py-pytest@${FLAVOR} \
${PYTHON_PKGNAMEPREFIX}pytest-mock>0:devel/py-pytest-mock@${FLAVOR}
${PYTHON_PKGNAMEPREFIX}pytest-mock>0:devel/py-pytest-mock@${FLAVOR} \
${PYTHON_PKGNAMEPREFIX}responses>0:devel/py-responses@${FLAVOR}
USES= python:-2.7
USES= python
USE_GITHUB= yes
USE_PYTHON= autoplist distutils
GH_ACCOUNT= slackhq
# Does not currently include tests in sdist
GH_ACCOUNT= slackapi
GH_PROJECT= python-${PORTNAME}
NO_ARCH= yes
do-test:
@cd ${WRKSRC} && ${PYTHON_CMD} -m pytest
@cd ${WRKSRC} && ${PYTHON_CMD} -m pytest -v
.include <bsd.port.mk>

View File

@ -1,3 +1,3 @@
TIMESTAMP = 1511699929
SHA256 (slackhq-python-slackclient-1.1.0_GH0.tar.gz) = 5b4edd97b7bf24e51b636a7bebb7085c4665337dc49651f1689a9d512a5653fa
SIZE (slackhq-python-slackclient-1.1.0_GH0.tar.gz) = 368088
TIMESTAMP = 1525652128
SHA256 (slackapi-python-slackclient-1.2.1_GH0.tar.gz) = d9c7c3a906d9fc9690fbc1698d11114a4b9bdbce2f92f4556ffca67a853cf8db
SIZE (slackapi-python-slackclient-1.2.1_GH0.tar.gz) = 453758