[Python-modules-commits] [python-coloredlogs] 02/12: Initial commit of py2dsc generated debian folder

Gaurav Juvekar gauravjuvekar-guest at moszumanska.debian.org
Sun Mar 12 20:21:29 UTC 2017


This is an automated email from the git hooks/post-receive script.

gauravjuvekar-guest pushed a commit to branch master
in repository python-coloredlogs.

commit 593f2495eb9310a0593701af4a8202381e62fcca
Author: Gaurav Juvekar <gauravjuvekar at gmail.com>
Date:   Mon Jan 30 08:43:44 2017 +0100

    Initial commit of py2dsc generated debian folder
---
 debian/changelog                |   6 ++
 debian/compat                   |   1 +
 debian/control                  | 232 ++++++++++++++++++++++++++++++++++++++++
 debian/copyright                |  34 ++++++
 debian/python3-coloredlogs.docs |   1 +
 debian/rules                    |   6 ++
 debian/source/format            |   1 +
 debian/source/options           |   1 +
 debian/watch                    |   4 +
 9 files changed, 286 insertions(+)

diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..fedce7d
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,6 @@
+coloredlogs (5.2-0~pypi2deb) UNRELEASED; urgency=low
+
+  * Autogenerated by py2dsp v1.20151008
+
+ -- Gaurav Juvekar <gauravjuvekar at gmail.com>  Sun, 29 Jan 2017 19:30:15 +0000
+
diff --git a/debian/compat b/debian/compat
new file mode 100644
index 0000000..ec63514
--- /dev/null
+++ b/debian/compat
@@ -0,0 +1 @@
+9
diff --git a/debian/control b/debian/control
new file mode 100644
index 0000000..3a27559
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,232 @@
+Source: coloredlogs
+Section: python
+Priority: optional
+Maintainer: Gaurav Juvekar <gauravjuvekar at gmail.com>
+Build-Depends: debhelper (>= 9), dh-python,
+               depends,
+               python-all,
+               python-setuptools,
+               python3-all,
+               python3-setuptools,
+               recommends,
+               suggests,
+Standards-Version: 3.9.8
+Homepage: https://coloredlogs.readthedocs.io
+
+Package: python-coloredlogs
+Architecture: all
+Depends: ${misc:Depends}, ${python:Depends},
+Recommends: ${python:Recommends}
+Suggests: ${python:Suggests}
+Description: Colored terminal output for Python's logging module - Python 2.X
+ coloredlogs: Colored terminal output for Python's logging module
+ ================================================================
+ .
+  .. image:: https://travis-ci.org/xolox/python-coloredlogs.svg?branch=master
+    :target: https://travis-ci.org/xolox/python-coloredlogs
+ .
+  .. image:: https://coveralls.io/repos/xolox/python-coloredlogs/badge.png?branch=master
+    :target: https://coveralls.io/r/xolox/python-coloredlogs?branch=master
+ .
+ The `coloredlogs` package enables colored terminal output for Python's logging_
+ module. The ColoredFormatter_ class inherits from `logging.Formatter`_ and uses
+ `ANSI escape sequences`_ to render your logging messages in color. It uses only
+ standard colors so it should work on any UNIX terminal. It's currently tested
+ on Python 2.6, 2.7, 3.4, 3.5 and PyPy. On Windows `coloredlogs` automatically
+ pulls in Colorama_ as a dependency and enables ANSI escape sequence translation
+ using Colorama. Here is a screen shot of the demo that is printed when the
+ command ``coloredlogs --demo`` is executed:
+ .
+  .. image:: https://peterodding.com/code/python/coloredlogs/screenshots/terminal.png
+ .
+ Note that the screenshot above includes the custom logging level `VERBOSE`
+ defined by my verboselogs_ package: if you install both `coloredlogs` and
+ `verboselogs` it will Just Work (`verboselogs` is of course not required to use
+ `coloredlogs`).
+ .
+  .. contents::
+    :local:
+ .
+ Format of log messages
+ ----------------------
+ .
+ The ColoredFormatter_ class supports user defined log formats so you can use
+ any log format you like. The default log format is as follows::
+ .
+  %(asctime)s %(hostname)s %(name)s[%(process)d] %(levelname)s %(message)s
+ .
+ This log format results in the following output::
+ .
+  2015-10-23 03:32:22 peter-macbook coloredlogs.demo[30462] DEBUG message with level 'debug'
+  2015-10-23 03:32:23 peter-macbook coloredlogs.demo[30462] VERBOSE message with level 'verbose'
+  2015-10-23 03:32:24 peter-macbook coloredlogs.demo[30462] INFO message with level 'info'
+  ...
+ .
+ You can customize the log format and styling using environment variables as
+ well as programmatically, please refer to the `online documentation`_ for
+ details.
+ .
+ Usage
+ -----
+ .
+ Here's an example of how easy it is to get started:
+ .
+  .. code-block:: python
+ .
+    # Create a logger object.
+    import logging
+    logger = logging.getLogger('your-module')
+ .
+    # Initialize coloredlogs.
+    import coloredlogs
+    coloredlogs.install(level='DEBUG')
+ .
+    # Some examples.
+    logger.debug("this is a debugging message")
+    logger.info("this is an informational message")
+    logger.warn("this is a warning message")
+    logger.error("this is an error message")
+    logger.critical("this is a critical message")
+ .
+ Colored output from cron
+ ------------------------
+ .
+ When `coloredlogs` is used in a cron_ job, the output that's e-mailed to you by
+ cron won't contain any ANSI escape sequences because `coloredlogs` realizes
+ that it's not attached to an interactive terminal. If you'd like to have colors
+ e-mailed to you by cron there's a simple way to set it up::
+ .
+     MAILTO="your-email-address at here"
+     CONTENT_TYPE="text/html"
+     * * * * * root coloredlogs --to-html your-command
+ .
+ The ``coloredlogs`` program is installed when you install the `coloredlogs`
+ package. When you execute ``coloredlogs --to-html your-command`` it runs
+ ``your-command`` under the external program ``script`` (you need to have this
+ installed). This makes ``your-command`` think that it's attached to an
+ interactive terminal which means it will output ANSI escape sequences which
+ will then be converted to HTML by the ``coloredlogs`` program. Yes, this is a
+ bit convoluted, but it works great :-)
+ .
+ You can use this feature without using `coloredlogs` in your Python modules,
+ but please note that only normal text, bold text and text with one of the
+ foreground colors black, red, green, yellow, blue, magenta, cyan and white
+ (these are the portable ANSI color codes) are supported.
+ .
+ Contact
+ -------
+ .
+ The latest version of `coloredlogs` is available on PyPI_ and GitHub_. The
+ `online documentation`_ is available on Read The Docs. For bug reports please
+ create an issue on GitHub_. If you have questions, suggestions, etc. feel free
+ to send me an e-mail at `peter at peterodding.com`_.
+ .
+
+Package: python3-coloredlogs
+Architecture: all
+Depends: ${misc:Depends}, ${python3:Depends},
+Recommends: ${python3:Recommends}
+Suggests: ${python3:Suggests}
+Description: Colored terminal output for Python's logging module
+ coloredlogs: Colored terminal output for Python's logging module
+ ================================================================
+ .
+  .. image:: https://travis-ci.org/xolox/python-coloredlogs.svg?branch=master
+    :target: https://travis-ci.org/xolox/python-coloredlogs
+ .
+  .. image:: https://coveralls.io/repos/xolox/python-coloredlogs/badge.png?branch=master
+    :target: https://coveralls.io/r/xolox/python-coloredlogs?branch=master
+ .
+ The `coloredlogs` package enables colored terminal output for Python's logging_
+ module. The ColoredFormatter_ class inherits from `logging.Formatter`_ and uses
+ `ANSI escape sequences`_ to render your logging messages in color. It uses only
+ standard colors so it should work on any UNIX terminal. It's currently tested
+ on Python 2.6, 2.7, 3.4, 3.5 and PyPy. On Windows `coloredlogs` automatically
+ pulls in Colorama_ as a dependency and enables ANSI escape sequence translation
+ using Colorama. Here is a screen shot of the demo that is printed when the
+ command ``coloredlogs --demo`` is executed:
+ .
+  .. image:: https://peterodding.com/code/python/coloredlogs/screenshots/terminal.png
+ .
+ Note that the screenshot above includes the custom logging level `VERBOSE`
+ defined by my verboselogs_ package: if you install both `coloredlogs` and
+ `verboselogs` it will Just Work (`verboselogs` is of course not required to use
+ `coloredlogs`).
+ .
+  .. contents::
+    :local:
+ .
+ Format of log messages
+ ----------------------
+ .
+ The ColoredFormatter_ class supports user defined log formats so you can use
+ any log format you like. The default log format is as follows::
+ .
+  %(asctime)s %(hostname)s %(name)s[%(process)d] %(levelname)s %(message)s
+ .
+ This log format results in the following output::
+ .
+  2015-10-23 03:32:22 peter-macbook coloredlogs.demo[30462] DEBUG message with level 'debug'
+  2015-10-23 03:32:23 peter-macbook coloredlogs.demo[30462] VERBOSE message with level 'verbose'
+  2015-10-23 03:32:24 peter-macbook coloredlogs.demo[30462] INFO message with level 'info'
+  ...
+ .
+ You can customize the log format and styling using environment variables as
+ well as programmatically, please refer to the `online documentation`_ for
+ details.
+ .
+ Usage
+ -----
+ .
+ Here's an example of how easy it is to get started:
+ .
+  .. code-block:: python
+ .
+    # Create a logger object.
+    import logging
+    logger = logging.getLogger('your-module')
+ .
+    # Initialize coloredlogs.
+    import coloredlogs
+    coloredlogs.install(level='DEBUG')
+ .
+    # Some examples.
+    logger.debug("this is a debugging message")
+    logger.info("this is an informational message")
+    logger.warn("this is a warning message")
+    logger.error("this is an error message")
+    logger.critical("this is a critical message")
+ .
+ Colored output from cron
+ ------------------------
+ .
+ When `coloredlogs` is used in a cron_ job, the output that's e-mailed to you by
+ cron won't contain any ANSI escape sequences because `coloredlogs` realizes
+ that it's not attached to an interactive terminal. If you'd like to have colors
+ e-mailed to you by cron there's a simple way to set it up::
+ .
+     MAILTO="your-email-address at here"
+     CONTENT_TYPE="text/html"
+     * * * * * root coloredlogs --to-html your-command
+ .
+ The ``coloredlogs`` program is installed when you install the `coloredlogs`
+ package. When you execute ``coloredlogs --to-html your-command`` it runs
+ ``your-command`` under the external program ``script`` (you need to have this
+ installed). This makes ``your-command`` think that it's attached to an
+ interactive terminal which means it will output ANSI escape sequences which
+ will then be converted to HTML by the ``coloredlogs`` program. Yes, this is a
+ bit convoluted, but it works great :-)
+ .
+ You can use this feature without using `coloredlogs` in your Python modules,
+ but please note that only normal text, bold text and text with one of the
+ foreground colors black, red, green, yellow, blue, magenta, cyan and white
+ (these are the portable ANSI color codes) are supported.
+ .
+ Contact
+ -------
+ .
+ The latest version of `coloredlogs` is available on PyPI_ and GitHub_. The
+ `online documentation`_ is available on Read The Docs. For bug reports please
+ create an issue on GitHub_. If you have questions, suggestions, etc. feel free
+ to send me an e-mail at `peter at peterodding.com`_.
+ .
\ No newline at end of file
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..08d95bc
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,34 @@
+Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: coloredlogs
+Upstream-Contact: Peter Odding <peter at peterodding.com>
+Source: https://coloredlogs.readthedocs.io
+
+Files: *
+Copyright: (c) 2015 Peter Odding
+License: 
+
+Files: debian/*
+Copyright: 2017 © Gaurav Juvekar <gauravjuvekar at gmail.com>
+License: 
+
+License: 
+ Copyright (c) 2015 Peter Odding
+ .
+ Permission is hereby granted, free of charge, to any person obtaining
+ a copy of this software and associated documentation files (the
+ "Software"), to deal in the Software without restriction, including
+ without limitation the rights to use, copy, modify, merge, publish,
+ distribute, sublicense, and/or sell copies of the Software, and to
+ permit persons to whom the Software is furnished to do so, subject to
+ the following conditions:
+ .
+ The above copyright notice and this permission notice shall be
+ included in all copies or substantial portions of the Software.
+ .
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
\ No newline at end of file
diff --git a/debian/python3-coloredlogs.docs b/debian/python3-coloredlogs.docs
new file mode 100644
index 0000000..a1320b1
--- /dev/null
+++ b/debian/python3-coloredlogs.docs
@@ -0,0 +1 @@
+README.rst
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..144b85c
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,6 @@
+#! /usr/bin/make -f
+
+export PYBUILD_NAME=coloredlogs
+export PYBUILD_AFTER_INSTALL_python2=rm -rf {destdir}/usr/bin/
+%:
+	dh $@ --with python2,python3 --buildsystem=pybuild
\ No newline at end of file
diff --git a/debian/source/format b/debian/source/format
new file mode 100644
index 0000000..163aaf8
--- /dev/null
+++ b/debian/source/format
@@ -0,0 +1 @@
+3.0 (quilt)
diff --git a/debian/source/options b/debian/source/options
new file mode 100644
index 0000000..d81db3f
--- /dev/null
+++ b/debian/source/options
@@ -0,0 +1 @@
+extend-diff-ignore="^[^/]+.egg-info/"
diff --git a/debian/watch b/debian/watch
new file mode 100644
index 0000000..7e79c37
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,4 @@
+# try also https://pypi.debian.net/coloredlogs/watch
+version=3
+opts=uversionmangle=s/(rc|a|b|c)/~$1/ \
+https://pypi.debian.net/coloredlogs/coloredlogs-(.+)\.(?:zip|tgz|tbz|txz|(?:tar\.(?:gz|bz2|xz)))

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/python-coloredlogs.git



More information about the Python-modules-commits mailing list