mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-01 05:45:45 +00:00
Update to 1.3.1
Changes: https://github.com/sumerc/yappi/blob/master/CHANGELOG
This commit is contained in:
parent
40e63beb37
commit
9476b11094
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=556199
@ -2,7 +2,7 @@
|
||||
# $FreeBSD$
|
||||
|
||||
PORTNAME= yappi
|
||||
PORTVERSION= 1.3.0
|
||||
PORTVERSION= 1.3.1
|
||||
CATEGORIES= devel python
|
||||
MASTER_SITES= CHEESESHOP
|
||||
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
||||
@ -22,6 +22,6 @@ post-install:
|
||||
${STRIP_CMD} ${STAGEDIR}${PYTHON_SITELIBDIR}/_yappi.so
|
||||
|
||||
do-test:
|
||||
cd ${WRKSRC} && ${PYTHON_CMD} ${FILESDIR}/run_tests.py
|
||||
cd ${WRKSRC} && ${PYTHON_CMD} run_tests.py
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
@ -1,3 +1,3 @@
|
||||
TIMESTAMP = 1602317879
|
||||
SHA256 (yappi-1.3.0.tar.gz) = a443240f4a776fa1be04430bf423dbf09615c05eba34f4a2a6af344a7ce8ff61
|
||||
SIZE (yappi-1.3.0.tar.gz) = 58200
|
||||
TIMESTAMP = 1606243331
|
||||
SHA256 (yappi-1.3.1.tar.gz) = b5a09608253246e680450611cadf4f6226b2559b4fe134ac6b943d21a783a416
|
||||
SIZE (yappi-1.3.1.tar.gz) = 58752
|
||||
|
@ -1,31 +0,0 @@
|
||||
import unittest
|
||||
import sys
|
||||
|
||||
|
||||
def _testsuite_from_tests(tests):
|
||||
suite = unittest.TestSuite()
|
||||
loader = unittest.defaultTestLoader
|
||||
for t in tests:
|
||||
test = loader.loadTestsFromName('tests.%s' % (t))
|
||||
suite.addTest(test)
|
||||
return suite
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
sys.path.append('tests/')
|
||||
test_loader = unittest.defaultTestLoader
|
||||
test_runner = unittest.TextTestRunner(verbosity=2)
|
||||
tests = ['test_functionality', 'test_hooks', 'test_tags', 'test_gevent']
|
||||
if sys.version_info >= (3, 4):
|
||||
tests += ['test_asyncio']
|
||||
if sys.version_info >= (3, 7):
|
||||
tests += ['test_asyncio_context_vars']
|
||||
test_suite = test_loader.loadTestsFromNames(tests)
|
||||
|
||||
if len(sys.argv) > 1:
|
||||
test_suite = _testsuite_from_tests(sys.argv[1:])
|
||||
|
||||
#tests = ['test_functionality.BasicUsage.test_run_as_script']
|
||||
|
||||
result = test_runner.run(test_suite)
|
||||
sys.exit(not result.wasSuccessful())
|
Loading…
Reference in New Issue
Block a user