1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-14 07:43:06 +00:00

www/py-slumber: Update to 0.6.1, chase repo move

- Update to 0.6.1
- Chase upstream repository move [1]
- Add TESTS option
- Tweak existing OPTIONS descriptions
- Explicitly set TEST_DEPENDS
- Add LICENSE_FILE
- Update regression-test: target invocation
- Patch setup.py to include unittest2 requirement [2]
- pkg-descr: Update WWW: URL

[2] https://github.com/samgiles/slumber/pull/104

PR:		197119 [1]
Reported by:	antoine [1]
This commit is contained in:
Kubilay Kocak 2015-01-27 03:00:24 +00:00
parent 53a17fb8a3
commit cb1fe9b6a0
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=377972
4 changed files with 30 additions and 14 deletions

View File

@ -2,8 +2,7 @@
# $FreeBSD$
PORTNAME= slumber
PORTVERSION= 0.6.0
PORTREVISION= 2
PORTVERSION= 0.6.1
CATEGORIES= www python
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
@ -11,26 +10,32 @@ MAINTAINER= koobs@FreeBSD.org
COMMENT= Python library that makes consuming a RESTful API easier
LICENSE= BSD2CLAUSE
LICENSE_FILE= ${WRKSRC}/LICENSE.txt
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}requests>0:${PORTSDIR}/www/py-requests
TEST_DEPENDS:= ${RUN_DEPENDS} \
TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}requests>0:${PORTSDIR}/www/py-requests \
${PYTHON_PKGNAMEPREFIX}unittest2>0:${PORTSDIR}/devel/py-unittest2 \
${PYTHON_PKGNAMEPREFIX}mock>0:${PORTSDIR}/devel/py-mock
OPTIONS_DEFINE= YAML
OPTIONS_DEFINE= TESTS YAML
YAML_DESC= Enable YAML serializer support
TESTS_DESC= Install test suite requirements
TESTS_BUILD_DEPENDS= ${TEST_DEPENDS}
YAML_DESC= YAML serializer support
YAML_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}yaml>0:${PORTSDIR}/devel/py-yaml
USES= python
USE_PYTHON= autoplist distutils
USE_GITHUB= yes
GH_ACCOUNT= dstufft
GH_COMMIT= 85b17b9
GH_ACCOUNT= samgiles
GH_COMMIT= d53a9ec
GH_TAGNAME= v${DISTVERSION}
USES= python
USE_PYTHON= distutils autoplist
pre-install: regression-test
regression-test: build
@cd ${WRKSRC} && ${PYTHON_CMD} ${PYSETUP} test
@cd ${WRKSRC} && ${PYTHON_CMD} ${PYDISTUTILS_SETUP} test
.include <bsd.port.mk>

View File

@ -1,2 +1,2 @@
SHA256 (slumber-0.6.0.tar.gz) = b7091250a331277823440fd6c148f4a4a605960bec3c146616d3f9a6bb0ce80b
SIZE (slumber-0.6.0.tar.gz) = 14202
SHA256 (slumber-0.6.1.tar.gz) = 4765add16e44368a198546758cae46c292dcffc650524ec459c8dba8c0b5005f
SIZE (slumber-0.6.1.tar.gz) = 14782

View File

@ -0,0 +1,11 @@
--- setup.py.orig 2015-01-27 02:55:28 UTC
+++ setup.py
@@ -2,7 +2,7 @@ import os
from setuptools import setup
install_requires = ["requests"]
-tests_require = ["mock"]
+tests_require = ["mock", "unittest2"]
base_dir = os.path.dirname(os.path.abspath(__file__))

View File

@ -3,4 +3,4 @@ orientated interface to ReSTful APIs. It acts as a wrapper around the
excellent requests_ library and abstracts away the handling of urls,
serialization, and processing requests.
WWW: http://slumber.in/
WWW: http://github.com/samgiles/slumber