svn commit: r390578 - in head/devel: . py-twiggy py-twiggy/files
Kubilay Kocak
koobs at FreeBSD.org
Thu Jun 25 14:57:45 UTC 2015
Author: koobs
Date: Thu Jun 25 14:57:43 2015
New Revision: 390578
URL: https://svnweb.freebsd.org/changeset/ports/390578
Log:
[NEW] devel/py-twiggy: Pythonic logger
Twiggy is a Pythonic logger.
As near as I can tell, Twiggy is the first totally new design for a
logger since log4j was developed in 1996. Let me say that again: Twiggy
is the first new logger in 15 years.
Twiggy:
* Uses new-style format strings by default. Way nicer than % (printf).
* Includes easy support for structured logging
* Loosely couples loggers and outputs for configuration
* Supports asynchronous logging using the multiprocessing module
* Solves Your Problems. Pets Your Puppy.
WWW: http://twiggy.wearpants.org
Added:
head/devel/py-twiggy/
head/devel/py-twiggy/Makefile (contents, props changed)
head/devel/py-twiggy/distinfo (contents, props changed)
head/devel/py-twiggy/files/
head/devel/py-twiggy/files/patch-setup.py (contents, props changed)
head/devel/py-twiggy/pkg-descr (contents, props changed)
Modified:
head/devel/Makefile
Modified: head/devel/Makefile
==============================================================================
--- head/devel/Makefile Thu Jun 25 14:57:26 2015 (r390577)
+++ head/devel/Makefile Thu Jun 25 14:57:43 2015 (r390578)
@@ -4173,6 +4173,7 @@
SUBDIR += py-turbokid
SUBDIR += py-tvrage
SUBDIR += py-tw.forms
+ SUBDIR += py-twiggy
SUBDIR += py-twisted
SUBDIR += py-twistedCore
SUBDIR += py-twistedFlow
Added: head/devel/py-twiggy/Makefile
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/devel/py-twiggy/Makefile Thu Jun 25 14:57:43 2015 (r390578)
@@ -0,0 +1,24 @@
+# Created by: Kubilay Kocak <koobs at FreeBSD.org>
+# $FreeBSD$
+
+PORTNAME= twiggy
+PORTVERSION= 0.4.7
+CATEGORIES= devel python
+MASTER_SITES= CHEESESHOP
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+DISTNAME= Twiggy-${PORTVERSION}
+
+MAINTAINER= koobs at FreeBSD.org
+COMMENT= Pythonic logger
+
+LICENSE= BSD3CLAUSE
+LICENSE_FILE= ${WRKSRC}/LICENSE
+
+USES= python
+USE_PYTHON= autoplist distutils
+
+regression-test: build
+ @cd ${WRKSRC} && ${SETENV} TWIGGY_UNDER_TEST=1 \
+ ${PYTHON_CMD} ${PYDISTUTILS_SETUP} test
+
+.include <bsd.port.mk>
Added: head/devel/py-twiggy/distinfo
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/devel/py-twiggy/distinfo Thu Jun 25 14:57:43 2015 (r390578)
@@ -0,0 +1,2 @@
+SHA256 (Twiggy-0.4.7.tar.gz) = 44d8aa51110efaab0712b5ec2b015149ad4f28e28f729004aac45d0ad8e19be0
+SIZE (Twiggy-0.4.7.tar.gz) = 66978
Added: head/devel/py-twiggy/files/patch-setup.py
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/devel/py-twiggy/files/patch-setup.py Thu Jun 25 14:57:43 2015 (r390578)
@@ -0,0 +1,38 @@
+--- setup.py.orig 2015-06-25 09:44:36 UTC
++++ setup.py
+@@ -1,9 +1,28 @@
+ #!/usr/bin/env python
+
++from setuptools.command.test import test as TestCommand
+ from distutils.core import setup
+ import os.path
+ import sys
+
++class PyTest(TestCommand):
++ user_options = [('pytest-args=', 'a', "Arguments to pass to py.test")]
++
++ def initialize_options(self):
++ TestCommand.initialize_options(self)
++ self.pytest_args = []
++
++ def finalize_options(self):
++ TestCommand.finalize_options(self)
++ self.test_args = []
++ self.test_suite = True
++
++ def run_tests(self):
++ #import here, cause outside the eggs aren't loaded
++ import pytest
++ errno = pytest.main(self.pytest_args)
++ sys.exit(errno)
++
+ # stop with the bug reports
+ if sys.version_info < (2, 6):
+ raise RuntimeError("Twiggy requires Python 2.6 or greater")
+@@ -34,4 +53,6 @@ setup(name='Twiggy',
+ "Programming Language :: Python :: 3.4",
+ "License :: OSI Approved :: BSD License",],
+ long_description=open('README.rst').read(),
++ tests_require=['pytest'],
++ cmdclass = {'test': PyTest},
+ )
Added: head/devel/py-twiggy/pkg-descr
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/devel/py-twiggy/pkg-descr Thu Jun 25 14:57:43 2015 (r390578)
@@ -0,0 +1,15 @@
+Twiggy is a Pythonic logger.
+
+As near as I can tell, Twiggy is the first totally new design for a logger
+since log4j was developed in 1996. Let me say that again: Twiggy is the first
+new logger in 15 years.
+
+Twiggy:
+
+ * Uses new-style format strings by default. Way nicer than %s (printf).
+ * Includes easy support for structured logging
+ * Loosely couples loggers and outputs for configuration
+ * Supports asynchronous logging using the multiprocessing module
+ * Solves Your Problems. Pets Your Puppy.
+
+WWW: http://twiggy.wearpants.org
More information about the svn-ports-all
mailing list