[Python-modules-commits] [python-stomp] 01/02: New upstream version 4.1.19

Sophie Brun sbrun-guest at moszumanska.debian.org
Thu Oct 26 08:50:41 UTC 2017


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

sbrun-guest pushed a commit to branch debian/master
in repository python-stomp.

commit 81ed54c6c912b13615feee4880e39d9803488f3b
Author: Sophie Brun <sophie at freexian.com>
Date:   Wed Oct 25 16:31:07 2017 +0200

    New upstream version 4.1.19
---
 .gitignore                            |  49 ++
 .travis.yml                           |  26 ++
 CHANGELOG                             | 367 +++++++++++++++
 LICENSE                               | 202 ++++++++
 MANIFEST.in                           |   6 +
 Makefile                              |  71 +++
 README                                |  12 +
 README.md                             |  44 ++
 docs/Makefile                         | 193 ++++++++
 docs/source/api.rst                   | 189 ++++++++
 docs/source/commandline.rst           |  74 +++
 docs/source/conf.py                   | 290 ++++++++++++
 docs/source/index.rst                 |  28 ++
 docs/source/intro.rst                 |  47 ++
 docs/source/modules.rst               |   7 +
 docs/source/quickstart.rst            |  61 +++
 docs/source/stomp.adapter.rst         |  22 +
 docs/source/stomp.rst                 | 134 ++++++
 docs/source/stomp.test.rst            | 166 +++++++
 setup.cfg                             |   7 +
 setup.py                              | 127 +++++
 stomp.log.conf                        |  22 +
 stomp/__init__.py                     |  56 +++
 stomp/__main__.py                     | 553 ++++++++++++++++++++++
 stomp/adapter/__init__.py             |   2 +
 stomp/adapter/multicast.py            | 180 ++++++++
 stomp/backward.py                     |  30 ++
 stomp/backward2.py                    |  61 +++
 stomp/backward3.py                    |  68 +++
 stomp/backwardsock.py                 |  11 +
 stomp/backwardsock25.py               |  30 ++
 stomp/backwardsock26.py               |  16 +
 stomp/colors.py                       |  18 +
 stomp/connect.py                      | 203 ++++++++
 stomp/constants.py                    |  29 ++
 stomp/exception.py                    |  35 ++
 stomp/listener.py                     | 522 +++++++++++++++++++++
 stomp/protocol.py                     | 517 +++++++++++++++++++++
 stomp/test/__init__.py                |  13 +
 stomp/test/basic_test.py              | 195 ++++++++
 stomp/test/cli_ssl_test.py            |  38 ++
 stomp/test/cli_test.py                | 227 +++++++++
 stomp/test/haproxy.cfg                |  14 +
 stomp/test/local_test.py              |  34 ++
 stomp/test/misc_test.py               | 116 +++++
 stomp/test/multicast_test.py          |  85 ++++
 stomp/test/override_threading_test.py |  67 +++
 stomp/test/p2_backward_test.py        |  21 +
 stomp/test/p2_nonascii_test.py        |  41 ++
 stomp/test/p3_backward_test.py        |  22 +
 stomp/test/p3_nonascii_test.py        | 124 +++++
 stomp/test/rabbitmq_test.py           |  28 ++
 stomp/test/s10_test.py                |  51 ++
 stomp/test/s11_test.py                |  85 ++++
 stomp/test/s12_test.py                | 127 +++++
 stomp/test/setup.ini                  |  24 +
 stomp/test/ss_test.py                 | 197 ++++++++
 stomp/test/ssl_sni_test.py            |  45 ++
 stomp/test/ssl_test.py                | 113 +++++
 stomp/test/stompserver_test.py        |  31 ++
 stomp/test/test-out.gif               | Bin 0 -> 60 bytes
 stomp/test/test-out.gif.gz            | Bin 0 -> 81 bytes
 stomp/test/test.gif                   | Bin 0 -> 60 bytes
 stomp/test/test.gif.gz                | Bin 0 -> 81 bytes
 stomp/test/testutils.py               | 192 ++++++++
 stomp/test/threading_test.py          | 125 +++++
 stomp/test/transport_test.py          |  27 ++
 stomp/test/utils_test.py              |  84 ++++
 stomp/transport.py                    | 848 ++++++++++++++++++++++++++++++++++
 stomp/utils.py                        | 259 +++++++++++
 70 files changed, 7708 insertions(+)

diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..f64be7a
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,49 @@
+*.py[cod]
+
+# C extensions
+*.so
+
+# Packages
+*.egg
+*.egg-info
+dist
+build
+eggs
+parts
+bin
+var
+sdist
+develop-eggs
+.installed.cfg
+lib
+lib64
+__pycache__
+
+# VIM
+.*.swp
+.*.un~
+
+# Installer logs
+pip-log.txt
+
+# Unit test / coverage reports
+.coverage
+.tox
+nosetests.xml
+
+# Translations
+*.mo
+
+# Mr Developer
+.mr.developer.cfg
+.project
+.pydevproject
+
+.idea
+
+MANIFEST
+
+tmp/
+docs/build
+
+.DS_Store
diff --git a/.travis.yml b/.travis.yml
new file mode 100644
index 0000000..b7e5aa2
--- /dev/null
+++ b/.travis.yml
@@ -0,0 +1,26 @@
+sudo: required
+language: python
+python:
+  - "2.6"
+  - "2.7"
+  - "3.3"
+  - "3.4"
+  - "3.5"
+  - "pypy-5.4"
+services:
+  - rabbitmq
+addons:
+  apt:
+    packages:
+      - stompserver
+env:
+  - RABBITMQ_HOST=localhost RABBITMQ_PORT=61613 RABBITMQ_USER=guest RABBITMQ_PASSWORD=guest STOMPSERVER_HOST=localhost STOMPSERVER_PORT=63613 STD_HOST=localhost STD_PORT=61613 STD_USER=guest STD_PASSWORD=guest STD_VHOST=/
+install:
+  - sudo service stompserver stop
+  - sudo rabbitmq-plugins enable rabbitmq_stomp
+  - sudo sed -i -e s/61613/$STOMPSERVER_PORT/ /etc/stompserver/stompserver.conf
+  - sudo service stompserver start
+  - pip install virtualenv-api
+  - pip install docopt
+script:
+  - make travistests
diff --git a/CHANGELOG b/CHANGELOG
new file mode 100644
index 0000000..7c8a485
--- /dev/null
+++ b/CHANGELOG
@@ -0,0 +1,367 @@
+Version 4.1.19 -
+
+ * Replace custom script by setuptools' entry_point for creating the executable
+ * Stop waiting for protocol answers when the connection has been closed
+ * Add check for is_connected on transport.stop
+ * Change command-line tool to use docopt
+
+
+Version 4.1.18 -
+
+ * Strip passcode from log messages
+
+
+Version 4.1.17 - Feb 2017
+
+ * Add support for password callback (https://github.com/jasonrbriggs/stomp.py/pull/140)
+ * Add disconnect receipt handling for better notification of disconnects
+ * Error handling for null frames
+ * Stop raising exceptions in the receiver loop, if a connection has been disconnected
+
+
+Version 4.1.16 - Jan 2017
+
+ * bug fix for heartbeat timeout (https://github.com/jasonrbriggs/stomp.py/issues/129)
+ * handle error with invalid/empty frames
+
+
+Version 4.1.15 - Nov 2016
+
+ * Minor change to release wheel
+ * Note: rolled forward releases to try to fix issue 132 (https://github.com/jasonrbriggs/stomp.py/issues/132)
+
+
+Version 4.1.14 - Nov 2016
+
+ * Minor changes for ssl testing (update: now removed)
+
+
+Version 4.1.13 - Oct 2016
+
+ * Minor change to release wheel
+ * Add proxy testing to makefile
+ * Tidy up method parameters
+ * Tidy up documentation
+ * Improvement to heartbeat handling
+
+
+Version 4.1.12 - Oct 2016
+
+ * Merge patch from Nigel S, improving heartbeat accuracy (https://github.com/jasonrbriggs/stomp.py/pull/95)
+ * Merge various patches from Ville S (including):
+    * fixing receipt id generation (https://github.com/jasonrbriggs/stomp.py/pull/102)
+    * generate disconnect receipt ids (https://github.com/jasonrbriggs/stomp.py/pull/108)
+    * don't send unnecessary heartbeats (https://github.com/jasonrbriggs/stomp.py/pull/113)
+    * fix misdetection of heartbeats (https://github.com/jasonrbriggs/stomp.py/pull/120)
+ * Merge patch from Hugh P, adding SNI support (https://github.com/jasonrbriggs/stomp.py/pull/124)
+ * Fix for heartbeat calculation error (https://github.com/jasonrbriggs/stomp.py/pull/125)
+
+
+Version 4.1.11 - Apr 2016
+
+ * Minor tidy up (missed from prior release)
+
+
+Version 4.1.10 - Apr 2016
+
+ * Bug fix for header escaping (https://github.com/jasonrbriggs/stomp.py/issues/82)
+ * Merge patches from Ville S:
+     * heartbeats - set received timestamp on receipt and error too (https://github.com/jasonrbriggs/stomp.py/pull/79)
+     * test class name fixes (https://github.com/jasonrbriggs/stomp.py/pull/80)
+     * support \r\n\r\n preamble end on content-length search (https://github.com/jasonrbriggs/stomp.py/pull/81)
+     * on-demand logging message expansion (https://github.com/jasonrbriggs/stomp.py/pull/85)
+     * bump connect error logging level to warning (https://github.com/jasonrbriggs/stomp.py/pull/87)
+     * assign names to heartbeat and receiver threads (https://github.com/jasonrbriggs/stomp.py/pull/88)
+     * remove unused HeartbeatListener.connected (https://github.com/jasonrbriggs/stomp.py/pull/89)
+     * support for heartbeats on CLI (https://github.com/jasonrbriggs/stomp.py/pull/100)
+ * Merge patch from Mikael V:
+     * add header support in CLI (https://github.com/jasonrbriggs/stomp.py/pull/86)
+ * Bug fix for on_before_message error (https://github.com/jasonrbriggs/stomp.py/issues/99)
+
+
+Version 4.1.9 - Jan 2016
+
+ * Merge patches from Pavel S:
+     * support mixed string and bytes as input (https://github.com/jasonrbriggs/stomp.py/pull/66)
+     * toggle sending of `content-length` header (https://github.com/jasonrbriggs/stomp.py/pull/67)
+ * Minor logging change
+ * Various documentation updates
+ * Merge code improvement patches from Ville S:
+     * use time.monotonic for timekeeping where available (https://github.com/jasonrbriggs/stomp.py/pull/74)
+     * define gcd compat only where needed (https://github.com/jasonrbriggs/stomp.py/pull/75)
+     * handle locking with "with" (https://github.com/jasonrbriggs/stomp.py/pull/76)
+     * misc small improvements (https://github.com/jasonrbriggs/stomp.py/pull/77)
+ * Merge patch from nigelsim to improve heartbeat handling for ActiveMQ:
+     * heartbeat flexibility to support ActiveMQ (https://github.com/jasonrbriggs/stomp.py/pull/78)
+
+
+Version 4.1.8 - Nov 2015
+
+ * Fix missing import (https://github.com/jasonrbriggs/stomp.py/issues/61)
+ * Code tidy up
+
+
+Version 4.1.7 - Nov 2015
+
+ * Merge patches from Ville S:
+    * use constants more (https://github.com/jasonrbriggs/stomp.py/pull/56)
+    * do not send headers with None values (https://github.com/jasonrbriggs/stomp.py/pull/57)
+ * Update source to tidy up documentation
+ * Add sphinx generated documentation
+ * Fix keepalive bug (https://github.com/jasonrbriggs/stomp.py/issues/60)
+
+
+Version 4.1.6 - Aug 2015
+
+ * Generic exception catch on heartbeat send
+ * Fix timeout (https://github.com/jasonrbriggs/stomp.py/issues/55)
+
+
+Version 4.1.5 - Aug 2015
+
+ * Remove incorrect \r escaping from 1.1 protocol
+ * Merge patch from Ville S:
+     * don't ship *.pyc (https://github.com/jasonrbriggs/stomp.py/pull/52)
+
+
+Version 4.1.4 - Aug 2015
+
+ * Add --ssl option to command line tool
+ * Disable CTRL-C in command line tool (when in interactive mode)
+ * Add shutdown message to cli
+
+
+Version 4.1.3 - Aug 2015
+
+ * Merge patches from Ville S:
+    * auto-send content-length when message body is present (https://github.com/jasonrbriggs/stomp.py/pull/48)
+    * unescape header names in addition to values (https://github.com/jasonrbriggs/stomp.py/pull/49)
+    * remove unnecessary code (https://github.com/jasonrbriggs/stomp.py/pull/50)
+
+
+Version 4.1.2 - Jul 2015
+
+ * Merge patch from Ville S to fix coverage in setup (https://github.com/jasonrbriggs/stomp.py/pull/44)
+ * Add Ville's change for None-check in backward3.decode (plus unit tests)
+
+
+Version 4.1.1 - Jul 2015
+
+ * Merge patches from Ville S covering invalid module references for colors in the CLI, fixing an attribute error and correctly
+   invoking the python exe using sys.executable (https://github.com/jasonrbriggs/stomp.py/pull/41,
+   https://github.com/jasonrbriggs/stomp.py/pull/42, https://github.com/jasonrbriggs/stomp.py/pull/43)
+
+
+Version 4.1.0 - Jul 2015
+
+ * Merge patch from George G (https://github.com/jasonrbriggs/stomp.py/pull/31) to fix binary message handling. Note that current
+   text-only behaviour is still the default (auto_decode=True on the connection), but will be switched to false in a future
+   release, before ultimately being removed.
+ * Merge code cleanup patches from Ville S (https://github.com/jasonrbriggs/stomp.py/pull/35,
+   https://github.com/jasonrbriggs/stomp.py/pull/36)
+ * Merge another code cleanup patch from Ville E (https://github.com/jasonrbriggs/stomp.py/pull/37)
+
+
+Version 4.0.16 - Apr 2015
+
+ * Catch attribute error in SSL import (https://github.com/jasonrbriggs/stomp.py/issues/30)
+ * Set default ssl version to TLSv1
+
+
+Version 4.0.15 - Mar 2015
+
+ * Fix for type error in transport logging (https://github.com/jasonrbriggs/stomp.py/issues/29)
+
+
+Version 4.0.14 - Mar 2015
+
+ * refactor transport to make providing new transports easier
+ * fix bug in listener (https://github.com/jasonrbriggs/stomp.py/issues/26)
+ * Merge Andre's logging changes
+ * fix for issue #23 (https://github.com/jasonrbriggs/stomp.py/issues/23), stop stomp.py inserting into the path
+
+
+Version 4.0.12 - Jun 2014
+
+ * Merge Chaskiel's patch for defaulting receipt headers
+ * Fix defaulting for host_and_ports list
+ * Fix exception handling in receiver loop
+ * Tidy up logging
+
+
+Version 4.0.11 - Feb 2014
+
+ * Merge Rafael's patches for specifying ssl settings as a separate method rather than constructor args
+   - https://github.com/jasonrbriggs/stomp.py/pull/6
+   - https://github.com/jasonrbriggs/stomp.py/pull/10
+ * Fix for header escaping (as per https://github.com/jasonrbriggs/stomp.py/issues/9)
+ * Move ip/ports for tests into setup.ini
+
+
+Version 4.0.10 - Jan 2014
+
+ * Fix package info on setup (missing adapter package causes problems for command line client
+    - see https://github.com/jasonrbriggs/stomp.py/issues/7 for more info
+
+
+Version 4.0.9 - Jan 2014
+
+ * Fix minor issue with backward uuid func
+ * Fixes for error number handling
+ * Fix for message listener return values
+
+
+Version 4.0.8 - Jan 2014
+
+ * Fix return on get_listener method (https://github.com/jasonrbriggs/stomp.py/issues/4)
+
+
+Version 4.0.7 - Jan 2014
+
+ * Fix problem with heartbeat listener (https://github.com/jasonrbriggs/stomp.py/issues/4)
+ * Add alternate aliases for the connection classes
+ * Add initial version multicast adapter (providing an interface to use the stomp.py API and send messages via multicast)
+ 	- note: work in progress
+
+
+Version 4.0.6 - Dec 2013
+
+ * Fix missing headers in connect func
+ * Throw ConnectFailedException when a connection fails in the 1.2 protocol - if wait=True is set
+
+
+Version 4.0.5 - Nov 2013
+
+ * Add command-line subscription listener. So you can do:
+     > stomp -H localhost -P 61613 -L /queue/test
+ * Add verbose option to command-line client (verbose "on" by default, if "off", headers aren't written to stdout)
+ * Fix problem with connect wait (should not wait if the connection fails)
+ * Throw exception when the connect fails (only if wait=True)
+ * Add PrintingListener (useful for debugging)
+
+
+Version 4.0.4 - Nov 2013
+
+ * Fix ack/nack function inconsistencies in each protocol version (as per https://github.com/jasonrbriggs/stomp.py/issues/1)
+
+
+Version 4.0.3 - Nov 2013
+
+ * Add script for cmd line access (so you can run `stomp -H localhost -P 61613` rather than python $PATH_TO_STOMP/stomp ....)
+
+
+Version 4.0.2 - Oct 2013
+
+ * Fix minor error with 1.2 connections. Add basic unit tests for 1.0, and 1.2
+
+
+Version 4.0.1 - Oct 2013
+
+ * Remove the 'transform' method/functionality, as this never went into the official spec. Clients who still want this should
+   implement themselves, using a listener (see https://github.com/jasonrbriggs/stomp.py/blob/master/stomp/test/misc_test.py for
+   an example)
+ * Add support for STOMP 1.2 line endings
+ * Enforce "host" header on 1.2 connect requests (note: should be enforced on 1.1 connections, but it seems rabbitmq connections
+   fail if host is set)
+
+
+Version 4.0.0 - Oct 2013
+
+ * Separate protocol from transport mechanism, to improve the ability to support multiple protocol versions. Note: constructor
+   args are changing accordingly.
+ * Add initial support for STOMP 1.2
+ * Moved username and passcode params out of constructor and into the connect method. The basic connection process is therefore now:
+
+     > conn = stomp.Connection([('localhost', 61613)])
+     > conn.start()
+     > conn.connect('admin', 'password', wait=True)
+
+
+Version 3.1.6 - Sep 2013
+
+ * Integrate fix for threading primitives issue (http://code.google.com/p/stomppy/issues/detail?id=53)
+ * Add vhost constructor arg
+ * Change cli to __main__ (so you can run `python stomp` rather than `python stomp/cli.py`)
+ * Integrate interrupt patch (http://code.google.com/p/stomppy/issues/detail?id=48)
+ * Change test hosts and ports so that they're provided from the setup.py file
+
+
+Version 3.1.5 - Aug 2013
+
+ * Fix for gcd division error (http://code.google.com/p/stomppy/issues/detail?id=44)
+ * Fix bytes incompatibility issue in Python 3.3 (http://code.google.com/p/stomppy/issues/detail?id=51)
+
+
+Version 3.1.4 - Jul 2012
+
+ * Add receipt header to disconnect frame if not already present on a 1.1 connection
+
+
+Version 3.1.3 - May 2012
+
+ * Fix signature on override_threading method
+ * Fix for duplicate header handling
+ * Minor fix for version var
+
+
+Version 3.1.1 - Feb 2012
+
+ * Fix for encoding problems (issue #34) [Jayson Vantuyl]
+ * Possible fix for reconnection problems (issue #32)
+ * Fix for broken pipe (error not passed to client - issue #33)
+ * Various tidying up of the codebase
+
+
+Version 3.1.0 (beta 4) - Oct 2011
+
+ * Heartbeat functionality completed
+ * General tidy up of unit tests
+
+
+Version 3.1.0 (beta 3) - Oct 2011
+
+  * Stop loading logging configuration in module itself (so stomp.py works better as an add-on library)
+  * Fix for connection wait (so that it now actually waits)
+  * Add initial heartbeat functionality
+  * Add Linux TCP-Keepalive functionality, provided by Jayson Vantuyl
+
+
+Version 3.1.0 (beta 2) - Sep 2011
+
+  * Various bug fixes in 1.1 code
+  * Fixed bug in ssl support
+  * Added facility to override threading library
+  * Updated unit test code for Apache Apollo
+
+
+Version 3.1.0 (beta 1) - Sep 2011
+
+  * Initial support for STOMP Protocol 1.1
+  * New version of CLI
+  * Added disconnect receipt functionality
+
+
+Version 3.0.4 - Sep 2011
+
+  * Added wait-for-receipt functionality
+  * Fixed bug in CLI version command
+  * SSL protocol patch
+  * Added connection timeout
+  * Added facility to not send disconnect frame on disconnect (argument to disconnect function)
+
+
+Version 3.0.3 - Jan 2011
+
+  * Fixes for python 2.4
+  * Added config.dox to distribution
+
+
+Version 3.0.2 beta - Jun 2010
+
+  * Fix for localhost connection problem (issue #17)
+
+
+Version 3.0.1 beta - Apr 2010
+
+  * Fixes for Oracle AQ bridge for Python3
+  * Change to debian style changelog
diff --git a/LICENSE b/LICENSE
new file mode 100644
index 0000000..d645695
--- /dev/null
+++ b/LICENSE
@@ -0,0 +1,202 @@
+
+                                 Apache License
+                           Version 2.0, January 2004
+                        http://www.apache.org/licenses/
+
+   TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
+
+   1. Definitions.
+
+      "License" shall mean the terms and conditions for use, reproduction,
+      and distribution as defined by Sections 1 through 9 of this document.
+
+      "Licensor" shall mean the copyright owner or entity authorized by
+      the copyright owner that is granting the License.
+
+      "Legal Entity" shall mean the union of the acting entity and all
+      other entities that control, are controlled by, or are under common
+      control with that entity. For the purposes of this definition,
+      "control" means (i) the power, direct or indirect, to cause the
+      direction or management of such entity, whether by contract or
+      otherwise, or (ii) ownership of fifty percent (50%) or more of the
+      outstanding shares, or (iii) beneficial ownership of such entity.
+
+      "You" (or "Your") shall mean an individual or Legal Entity
+      exercising permissions granted by this License.
+
+      "Source" form shall mean the preferred form for making modifications,
+      including but not limited to software source code, documentation
+      source, and configuration files.
+
+      "Object" form shall mean any form resulting from mechanical
+      transformation or translation of a Source form, including but
+      not limited to compiled object code, generated documentation,
+      and conversions to other media types.
+
+      "Work" shall mean the work of authorship, whether in Source or
+      Object form, made available under the License, as indicated by a
+      copyright notice that is included in or attached to the work
+      (an example is provided in the Appendix below).
+
+      "Derivative Works" shall mean any work, whether in Source or Object
+      form, that is based on (or derived from) the Work and for which the
+      editorial revisions, annotations, elaborations, or other modifications
+      represent, as a whole, an original work of authorship. For the purposes
+      of this License, Derivative Works shall not include works that remain
+      separable from, or merely link (or bind by name) to the interfaces of,
+      the Work and Derivative Works thereof.
+
+      "Contribution" shall mean any work of authorship, including
+      the original version of the Work and any modifications or additions
+      to that Work or Derivative Works thereof, that is intentionally
+      submitted to Licensor for inclusion in the Work by the copyright owner
+      or by an individual or Legal Entity authorized to submit on behalf of
+      the copyright owner. For the purposes of this definition, "submitted"
+      means any form of electronic, verbal, or written communication sent
+      to the Licensor or its representatives, including but not limited to
+      communication on electronic mailing lists, source code control systems,
+      and issue tracking systems that are managed by, or on behalf of, the
+      Licensor for the purpose of discussing and improving the Work, but
+      excluding communication that is conspicuously marked or otherwise
+      designated in writing by the copyright owner as "Not a Contribution."
+
+      "Contributor" shall mean Licensor and any individual or Legal Entity
+      on behalf of whom a Contribution has been received by Licensor and
+      subsequently incorporated within the Work.
+
+   2. Grant of Copyright License. Subject to the terms and conditions of
+      this License, each Contributor hereby grants to You a perpetual,
+      worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+      copyright license to reproduce, prepare Derivative Works of,
+      publicly display, publicly perform, sublicense, and distribute the
+      Work and such Derivative Works in Source or Object form.
+
+   3. Grant of Patent License. Subject to the terms and conditions of
+      this License, each Contributor hereby grants to You a perpetual,
+      worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+      (except as stated in this section) patent license to make, have made,
+      use, offer to sell, sell, import, and otherwise transfer the Work,
+      where such license applies only to those patent claims licensable
+      by such Contributor that are necessarily infringed by their
+      Contribution(s) alone or by combination of their Contribution(s)
+      with the Work to which such Contribution(s) was submitted. If You
+      institute patent litigation against any entity (including a
+      cross-claim or counterclaim in a lawsuit) alleging that the Work
+      or a Contribution incorporated within the Work constitutes direct
+      or contributory patent infringement, then any patent licenses
+      granted to You under this License for that Work shall terminate
+      as of the date such litigation is filed.
+
+   4. Redistribution. You may reproduce and distribute copies of the
+      Work or Derivative Works thereof in any medium, with or without
+      modifications, and in Source or Object form, provided that You
+      meet the following conditions:
+
+      (a) You must give any other recipients of the Work or
+          Derivative Works a copy of this License; and
+
+      (b) You must cause any modified files to carry prominent notices
+          stating that You changed the files; and
+
+      (c) You must retain, in the Source form of any Derivative Works
+          that You distribute, all copyright, patent, trademark, and
+          attribution notices from the Source form of the Work,
+          excluding those notices that do not pertain to any part of
+          the Derivative Works; and
+
+      (d) If the Work includes a "NOTICE" text file as part of its
+          distribution, then any Derivative Works that You distribute must
+          include a readable copy of the attribution notices contained
+          within such NOTICE file, excluding those notices that do not
+          pertain to any part of the Derivative Works, in at least one
+          of the following places: within a NOTICE text file distributed
+          as part of the Derivative Works; within the Source form or
+          documentation, if provided along with the Derivative Works; or,
+          within a display generated by the Derivative Works, if and
+          wherever such third-party notices normally appear. The contents
+          of the NOTICE file are for informational purposes only and
+          do not modify the License. You may add Your own attribution
+          notices within Derivative Works that You distribute, alongside
+          or as an addendum to the NOTICE text from the Work, provided
+          that such additional attribution notices cannot be construed
+          as modifying the License.
+
+      You may add Your own copyright statement to Your modifications and
+      may provide additional or different license terms and conditions
+      for use, reproduction, or distribution of Your modifications, or
+      for any such Derivative Works as a whole, provided Your use,
+      reproduction, and distribution of the Work otherwise complies with
+      the conditions stated in this License.
+
+   5. Submission of Contributions. Unless You explicitly state otherwise,
+      any Contribution intentionally submitted for inclusion in the Work
+      by You to the Licensor shall be under the terms and conditions of
+      this License, without any additional terms or conditions.
+      Notwithstanding the above, nothing herein shall supersede or modify
+      the terms of any separate license agreement you may have executed
+      with Licensor regarding such Contributions.
+
+   6. Trademarks. This License does not grant permission to use the trade
+      names, trademarks, service marks, or product names of the Licensor,
+      except as required for reasonable and customary use in describing the
+      origin of the Work and reproducing the content of the NOTICE file.
+
+   7. Disclaimer of Warranty. Unless required by applicable law or
+      agreed to in writing, Licensor provides the Work (and each
+      Contributor provides its Contributions) on an "AS IS" BASIS,
+      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
+      implied, including, without limitation, any warranties or conditions
+      of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
+      PARTICULAR PURPOSE. You are solely responsible for determining the
+      appropriateness of using or redistributing the Work and assume any
+      risks associated with Your exercise of permissions under this License.
+
+   8. Limitation of Liability. In no event and under no legal theory,
+      whether in tort (including negligence), contract, or otherwise,
+      unless required by applicable law (such as deliberate and grossly
+      negligent acts) or agreed to in writing, shall any Contributor be
+      liable to You for damages, including any direct, indirect, special,
+      incidental, or consequential damages of any character arising as a
+      result of this License or out of the use or inability to use the
+      Work (including but not limited to damages for loss of goodwill,
+      work stoppage, computer failure or malfunction, or any and all
+      other commercial damages or losses), even if such Contributor
+      has been advised of the possibility of such damages.
+
+   9. Accepting Warranty or Additional Liability. While redistributing
+      the Work or Derivative Works thereof, You may choose to offer,
+      and charge a fee for, acceptance of support, warranty, indemnity,
+      or other liability obligations and/or rights consistent with this
+      License. However, in accepting such obligations, You may act only
+      on Your own behalf and on Your sole responsibility, not on behalf
+      of any other Contributor, and only if You agree to indemnify,
+      defend, and hold each Contributor harmless for any liability
+      incurred by, or claims asserted against, such Contributor by reason
+      of your accepting any such warranty or additional liability.
+
+   END OF TERMS AND CONDITIONS
+
+   APPENDIX: How to apply the Apache License to your work.
+
+      To apply the Apache License to your work, attach the following
+      boilerplate notice, with the fields enclosed by brackets "[]"
+      replaced with your own identifying information. (Don't include
+      the brackets!)  The text should be enclosed in the appropriate
+      comment syntax for the file format. We also recommend that a
+      file or class name and description of purpose be included on the
+      same "printed page" as the copyright notice for easier
+      identification within third-party archives.
+
+   Copyright [yyyy] [name of copyright owner]
+
+   Licensed under the Apache License, Version 2.0 (the "License");
+   you may not use this file except in compliance with the License.
+   You may obtain a copy of the License at
+
+       http://www.apache.org/licenses/LICENSE-2.0
+
+   Unless required by applicable law or agreed to in writing, software
+   distributed under the License is distributed on an "AS IS" BASIS,
+   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+   See the License for the specific language governing permissions and
+   limitations under the License.
diff --git a/MANIFEST.in b/MANIFEST.in
new file mode 100644
index 0000000..0beb529
--- /dev/null
+++ b/MANIFEST.in
@@ -0,0 +1,6 @@
+include LICENSE
+include CHANGELOG
+include *.conf
+include *.dox
+include stomp/test/*
+exclude stomp/test/*.pyc
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..78d65f4
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,71 @@
+PYTHON:=`which python`
+DESTDIR=/
+PROJECT=stomp.py
+PYTHON_VERSION_MAJOR:=$(shell $(PYTHON) -c "import sys;print(sys.version_info[0])")
+PLATFORM := $(shell uname)
+
+ifeq ($(PYTHON_VERSION_MAJOR), 3)
+travistests: travistests-py3
+else
+travistests: travistests-py2
+endif
+
+all:
+	@echo "make source - Create source package"
+	@echo "make install - Install on local system"
+	@echo "make buildrpm - Generate a rpm package"
+	@echo "make builddeb - Generate a deb package"
+	@echo "make clean - Get rid of scratch and byte files"
+
+.PHONY: docs
+
+docs:
+	cd docs && make html 
+
+source:
+	$(PYTHON) setup.py sdist $(COMPILE)
+
+install:
+	$(PYTHON) setup.py install --root $(DESTDIR) $(COMPILE)
+
+test: travistests
+	$(PYTHON) setup.py test --test=cli_ssl_test,multicast_test,ssl_test,local_test
+
+travistests:
+	$(PYTHON) setup.py test --test=basic_test,ss_test,cli_test,s10_test,s11_test,s12_test,rabbitmq_test,stompserver_test,misc_test,transport_test,utils_test
+	$(PYTHON) setup.py piptest
+
+travistests-py2:
+	$(PYTHON) setup.py test --test=p2_nonascii_test,p2_backward_test
+
+travistests-py3:
+	$(PYTHON) setup.py test --test=p3_nonascii_test,p3_backward_test
+
+buildrpm:
+	$(PYTHON) setup.py bdist_rpm --post-install=rpm/postinstall --pre-uninstall=rpm/preuninstall
+
+builddeb:
+	# build the source package in the parent directory
+	# then rename it to project_version.orig.tar.gz
+	$(PYTHON) setup.py sdist $(COMPILE) --dist-dir=../ --prune
+	rename -f 's/$(PROJECT)-(.*)\.tar\.gz/$(PROJECT)_$$1\.orig\.tar\.gz/' ../*
+	# build the package
+	dpkg-buildpackage -i -I -rfakeroot
+
+haproxy:
+	openssl req -x509 -newkey rsa:2048 -keyout tmp/key1.pem -out tmp/cert1.pem -days 365 -nodes -subj "/CN=my.example.org"
+	openssl req -x509 -newkey rsa:2048 -keyout tmp/key2.pem -out tmp/cert2.pem -days 365 -nodes -subj "/CN=my.example.com"
+	cat tmp/cert1.pem tmp/key1.pem > tmp/myorg.pem
+	cat tmp/cert2.pem tmp/key2.pem > tmp/mycom.pem
+	/usr/sbin/haproxy -f stomp/test/haproxy.cfg
+
+clean:
+ifeq ($(PLATFORM),Linux)
+	$(MAKE) -f $(CURDIR)/debian/rules clean
+endif
+	$(PYTHON) setup.py clean
+	rm -rf build/ MANIFEST dist/
+	find . -name '*.pyc' -delete
+
+release:
+	$(PYTHON) setup.py clean install sdist bdist_wheel upload
\ No newline at end of file
diff --git a/README b/README
new file mode 100644
index 0000000..1478138
--- /dev/null
+++ b/README
@@ -0,0 +1,12 @@
+"stomp.py" is a Python client library for accessing messaging servers (such as ActiveMQ, Apollo or RabbitMQ) using the `STOMP protocol <http://stomp.github.io>`_ (versions `1.0 <http://stomp.github.io/stomp-specification-1.0.html>`_, `1.1 <http://stomp.github.io/stomp-specification-1.1.html>`_ and `1.2 <http://stomp.github.io/stomp-specification-1.2.html>`_). It can also be run as a standalone, command-line client for testing.
+
+
+A basic example of using stomp.py can be found `here <https://github.com/jasonrbriggs/stomp.py/wiki/Simple-Example>`_.
+
+More info can be found on `GitHub <https://github.com/jasonrbriggs/stomp.py>`_.
+
+Select:
+
+- `Version 4.0+ <https://pypi.python.org/pypi/stomp.py>`_ for both Python2.x and Python3.x, with support for STOMP 1.2 (note this version separates the transport mechanism from the protocol)
+- `Version 3.0+ <https://pypi.python.org/pypi/stomp.py/3.1.7>`_ for both Python2.x and Python3.x (STOMP 1.0 and 1.1 only)
+- `Version 2.0.x <https://pypi.python.org/pypi/stomp.py/2.0.1>`_ for Python2.x
\ No newline at end of file
diff --git a/README.md b/README.md
new file mode 100644
index 0000000..b73658d
--- /dev/null
+++ b/README.md
@@ -0,0 +1,44 @@
+README
+======
+
+"stomp.py" is a Python client library for accessing messaging servers (such as ActiveMQ, Apollo or RabbitMQ) using the [STOMP protocol](http://stomp.github.io) (versions [1.0](http://stomp.github.io/stomp-specification-1.0.html), [1.1](http://stomp.github.io/stomp-specification-1.1.html) and [1.2](http://stomp.github.io/stomp-specification-1.2.html)). It can also be run as a standalone, command-line client for testing.
+
+
+Quick Start
+-----------
+
+A basic example of using stomp.py can be found [here](https://github.com/jasonrbriggs/stomp.py/wiki/Simple-Example). Testing via the command-line interface is described [here](https://github.com/jasonrbriggs/stomp.py/wiki/Command-Line-Access).
+
+Downloads can be found on [PyPi](https://pypi.python.org/pypi/stomp.py).  
+API documentation can be found [here](http://jasonrbriggs.github.io/stomp.py/index.html). Current test coverage can be found [here](http://jasonrbriggs.github.io/stomp.py/htmlcov/).
+
+[Version 4.0+](https://pypi.python.org/pypi/stomp.py) is for both Python2.x and Python3.x - with support for versions 1.0, 1.1 and 1.2 of the protocol.
+Legacy clients using the old 3-series code, can find the download for 3.1.7 [here](https://pypi.python.org/pypi/stomp.py/3.1.7) (github branch [here](https://github.com/jasonrbriggs/stomp.py/tree/stomppy-3series))
+
+stomp.py has been perfunctorily tested on: [ActiveMQ](http://activemq.apache.org/), [Apollo](http://activemq.apache.org/apollo/), [RabbitMQ](http://www.rabbitmq.com), [stompserver](http://stompserver.rubyforge.org), and has been reported to work with [JBossMessaging](http://www.jboss.org/jbossmessaging) in the distant past. 
+For more info on setting up a test server (using virtualbox), contact the developer.
+
+
+Contributors (pre-github)
+-------------------------
+
+Julian Scheid ([Rising Sun Pictures](http://open.rsp.com.au/))  
+Andreas Schobel  
+Fernando Ciciliati  
+Eugene Strulyov  
+Gavin M. Roy  
+Martin Pieuchot  
+Joe Gdaniec  
+Jayson Vantuyl  
+Tatiana Al-Chueyr Martins  
+Rafael Durán Casteñada  
+Chaskiel Grundman  
+Ville Skyttä  
+Pavel Savchenko  
+
+
+Project Status
+--------------
+
+[![PyPI version](https://badge.fury.io/py/stomp.py.svg)](https://badge.fury.io/py/stomp.py)  
+[![Build Status](https://travis-ci.org/jasonrbriggs/stomp.py.svg)](https://travis-ci.org/jasonrbriggs/stomp.py)
diff --git a/docs/Makefile b/docs/Makefile
new file mode 100644
index 0000000..a373066
--- /dev/null
+++ b/docs/Makefile
@@ -0,0 +1,193 @@
+# Makefile for Sphinx documentation
+#
+
+# You can set these variables from the command line.
+SPHINXOPTS    =
+SPHINXBUILD   = sphinx-build
+PAPER         =
+BUILDDIR      = build
+HTMLBUILDDIR  = ../../stomppy-docs
+
+# User-friendly check for sphinx-build
+ifeq ($(shell which $(SPHINXBUILD) >/dev/null 2>&1; echo $$?), 1)
+$(error The '$(SPHINXBUILD)' command was not found. Make sure you have Sphinx installed, then set the SPHINXBUILD environment variable to point to the full path of the '$(SPHINXBUILD)' executable. Alternatively you can add the directory with the executable to your PATH. If you don't have Sphinx installed, grab it from http://sphinx-doc.org/)
+endif
+
+# Internal variables.
+PAPEROPT_a4     = -D latex_paper_size=a4
+PAPEROPT_letter = -D latex_paper_size=letter
+ALLSPHINXOPTS   = -d $(BUILDDIR)/doctrees $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) source
+# the i18n builder cannot share the environment and doctrees with the others
+I18NSPHINXOPTS  = $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) source
+
+.PHONY: help clean html dirhtml singlehtml pickle json htmlhelp qthelp devhelp epub latex latexpdf text man changes linkcheck doctest coverage gettext
+
+help:
+	@echo "Please use \`make <target>' where <target> is one of"
+	@echo "  html       to make standalone HTML files"
+	@echo "  dirhtml    to make HTML files named index.html in directories"
+	@echo "  singlehtml to make a single large HTML file"
+	@echo "  pickle     to make pickle files"
+	@echo "  json       to make JSON files"
+	@echo "  htmlhelp   to make HTML files and a HTML help project"
+	@echo "  qthelp     to make HTML files and a qthelp project"
+	@echo "  applehelp  to make an Apple Help Book"
+	@echo "  devhelp    to make HTML files and a Devhelp project"
+	@echo "  epub       to make an epub"
+	@echo "  latex      to make LaTeX files, you can set PAPER=a4 or PAPER=letter"
+	@echo "  latexpdf   to make LaTeX files and run them through pdflatex"
+	@echo "  latexpdfja to make LaTeX files and run them through platex/dvipdfmx"
+	@echo "  text       to make text files"
+	@echo "  man        to make manual pages"
+	@echo "  texinfo    to make Texinfo files"
+	@echo "  info       to make Texinfo files and run them through makeinfo"
+	@echo "  gettext    to make PO message catalogs"
+	@echo "  changes    to make an overview of all changed/added/deprecated items"
+	@echo "  xml        to make Docutils-native XML files"
+	@echo "  pseudoxml  to make pseudoxml-XML files for display purposes"
+	@echo "  linkcheck  to check all external links for integrity"
+	@echo "  doctest    to run all doctests embedded in the documentation (if enabled)"
+	@echo "  coverage   to run coverage check of the documentation (if enabled)"
+
+clean:
+	rm -rf $(BUILDDIR)/*
+
+html:
+	$(SPHINXBUILD) -b html $(ALLSPHINXOPTS) $(HTMLBUILDDIR)
+	@echo
+	@echo "Build finished. The HTML pages are in $(HTMLBUILDDIR)."
+
+dirhtml:
+	$(SPHINXBUILD) -b dirhtml $(ALLSPHINXOPTS) $(BUILDDIR)/dirhtml
+	@echo
+	@echo "Build finished. The HTML pages are in $(BUILDDIR)/dirhtml."
+
+singlehtml:
+	$(SPHINXBUILD) -b singlehtml $(ALLSPHINXOPTS) $(BUILDDIR)/singlehtml
+	@echo
+	@echo "Build finished. The HTML page is in $(BUILDDIR)/singlehtml."
+
+pickle:
+	$(SPHINXBUILD) -b pickle $(ALLSPHINXOPTS) $(BUILDDIR)/pickle
+	@echo
+	@echo "Build finished; now you can process the pickle files."
+
+json:
+	$(SPHINXBUILD) -b json $(ALLSPHINXOPTS) $(BUILDDIR)/json
+	@echo
+	@echo "Build finished; now you can process the JSON files."
+
+htmlhelp:
+	$(SPHINXBUILD) -b htmlhelp $(ALLSPHINXOPTS) $(BUILDDIR)/htmlhelp
+	@echo
+	@echo "Build finished; now you can run HTML Help Workshop with the" \
+	      ".hhp project file in $(BUILDDIR)/htmlhelp."
+
+qthelp:
+	$(SPHINXBUILD) -b qthelp $(ALLSPHINXOPTS) $(BUILDDIR)/qthelp
+	@echo
+	@echo "Build finished; now you can run "qcollectiongenerator" with the" \
... 7205 lines suppressed ...

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



More information about the Python-modules-commits mailing list