1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-03 01:23:49 +00:00

www/py-bleach: Update to 1.2.2

- Update to 1.2.2
- Pin html5lib version in RUN_DEPENDS
- Make regression-test target use test command
- Patch setup.py: Add test_suite integration (and report upstream)

Changes:

- Pin html5lib to version 0.95 for now due to major API break.
This commit is contained in:
Kubilay Kocak 2013-06-10 01:48:19 +00:00
parent 6050f3749d
commit a5d8662fcf
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=320430
3 changed files with 17 additions and 7 deletions

View File

@ -2,7 +2,7 @@
# $FreeBSD$
PORTNAME= bleach
PORTVERSION= 1.2.1
PORTVERSION= 1.2.2
CATEGORIES= www python
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
@ -11,7 +11,7 @@ COMMENT= An easy whitelist-based HTML-sanitizing tool for Python
LICENSE= BSD
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}html5lib>=0.95:${PORTSDIR}/www/py-html5lib
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}html5lib==0.95:${PORTSDIR}/www/py-html5lib
USE_GITHUB= yes
USE_PYTHON= yes
@ -19,12 +19,12 @@ USE_PYDISTUTILS= easy_install
GH_ACCOUNT= jsocol
GH_TAGNAME= v${PORTVERSION}
GH_COMMIT= ab7c8b3
GH_COMMIT= baf1eac
TEST_DEPENDS:= ${RUN_DEPENDS} \
nosetests:${PORTSDIR}/devel/py-nose \
regression-test: build
cd ${WRKSRC} && ${PYTHON_CMD} ${PYSETUP} nosetests
@cd ${WRKSRC} && ${PYTHON_CMD} ${PYSETUP} test
.include <bsd.port.mk>

View File

@ -1,2 +1,2 @@
SHA256 (bleach-1.2.1.tar.gz) = 5b61fb6369cea2e4aaf6cc34ec4de9bf658f69c16693fad2dfe8da6890ccb72a
SIZE (bleach-1.2.1.tar.gz) = 27318
SHA256 (bleach-1.2.2.tar.gz) = 2e7a29881eff2b7f2aa9a24e052edcd296d12c1c206957cd8be9f9e140f266b0
SIZE (bleach-1.2.2.tar.gz) = 27607

View File

@ -0,0 +1,10 @@
--- ./setup.py.orig 2013-06-10 11:19:04.719234114 +1000
+++ ./setup.py 2013-06-10 11:19:34.305595246 +1000
@@ -23,5 +23,6 @@
'Operating System :: OS Independent',
'Programming Language :: Python',
'Topic :: Software Development :: Libraries :: Python Modules',
- ]
+ ],
+ test_suite='nose.collector'
)