[Python-modules-commits] [txfixtures] 02/03: New upstream version 0.2.2

Free Ekanayaka freee at moszumanska.debian.org
Thu Jan 5 23:45:54 UTC 2017


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

freee pushed a commit to branch upstream
in repository txfixtures.

commit 4321bb7247e04532d6c6d6c3d1f0d148195eaa9b
Author: Free Ekanayaka <freee at debian.org>
Date:   Thu Jan 5 00:01:33 2017 +0000

    New upstream version 0.2.2
---
 AUTHORS                          | 1 +
 ChangeLog                        | 6 ++++++
 PKG-INFO                         | 4 +++-
 README.rst                       | 2 ++
 setup.cfg                        | 2 +-
 txfixtures.egg-info/PKG-INFO     | 4 +++-
 txfixtures.egg-info/pbr.json     | 2 +-
 txfixtures/mongodb.py            | 6 +++---
 txfixtures/tests/test_mongodb.py | 8 ++++----
 9 files changed, 24 insertions(+), 11 deletions(-)

diff --git a/AUTHORS b/AUTHORS
index 15278fd..2cdb3d3 100644
--- a/AUTHORS
+++ b/AUTHORS
@@ -1,4 +1,5 @@
 Free Ekanayaka <free.ekanayaka at gmail.com>
 Free Ekanayaka <free at ekanayaka.io>
 Gavin Panella <gavin at gromper.net>
+Manish Tomar <manishtomar.public at gmail.com>
 Martin Pool <mbp at canonical.com>
diff --git a/ChangeLog b/ChangeLog
index b206b38..ba0524b 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,6 +1,12 @@
 CHANGES
 =======
 
+0.2.2
+-----
+
+* In Python 3, pass mongodb arguments as bytes not unicode
+* Add link to documentation in README (#3)
+
 0.2.1
 -----
 
diff --git a/PKG-INFO b/PKG-INFO
index 1ca10cb..47f0678 100644
--- a/PKG-INFO
+++ b/PKG-INFO
@@ -1,6 +1,6 @@
 Metadata-Version: 1.1
 Name: txfixtures
-Version: 0.2.1
+Version: 0.2.2
 Summary: Treat Twisted applications as Python test fixtures
 Home-page: https://launchpad.net/txfixtures
 Author: Martin Pool
@@ -12,6 +12,8 @@ Description: Twisted integration with Python Testfixtures
         txfixtures hooks into the testtools 'test fixture' interface, so that you can
         write tests that rely on having an external Twisted daemon.
         
+        Documentation: http://txfixtures.readthedocs.io/
+        
         See:
         
         - https://launchpad.net/txfixtures
diff --git a/README.rst b/README.rst
index 39212f4..e393cac 100644
--- a/README.rst
+++ b/README.rst
@@ -4,6 +4,8 @@ Twisted integration with Python Testfixtures
 txfixtures hooks into the testtools 'test fixture' interface, so that you can
 write tests that rely on having an external Twisted daemon.
 
+Documentation: http://txfixtures.readthedocs.io/
+
 See:
 
 - https://launchpad.net/txfixtures
diff --git a/setup.cfg b/setup.cfg
index 91fa9bd..f2c608b 100644
--- a/setup.cfg
+++ b/setup.cfg
@@ -32,7 +32,7 @@ mongodb =
 universal = 1
 
 [egg_info]
+tag_date = 0
 tag_svn_revision = 0
 tag_build = 
-tag_date = 0
 
diff --git a/txfixtures.egg-info/PKG-INFO b/txfixtures.egg-info/PKG-INFO
index 1ca10cb..47f0678 100644
--- a/txfixtures.egg-info/PKG-INFO
+++ b/txfixtures.egg-info/PKG-INFO
@@ -1,6 +1,6 @@
 Metadata-Version: 1.1
 Name: txfixtures
-Version: 0.2.1
+Version: 0.2.2
 Summary: Treat Twisted applications as Python test fixtures
 Home-page: https://launchpad.net/txfixtures
 Author: Martin Pool
@@ -12,6 +12,8 @@ Description: Twisted integration with Python Testfixtures
         txfixtures hooks into the testtools 'test fixture' interface, so that you can
         write tests that rely on having an external Twisted daemon.
         
+        Documentation: http://txfixtures.readthedocs.io/
+        
         See:
         
         - https://launchpad.net/txfixtures
diff --git a/txfixtures.egg-info/pbr.json b/txfixtures.egg-info/pbr.json
index b679771..59f02dd 100644
--- a/txfixtures.egg-info/pbr.json
+++ b/txfixtures.egg-info/pbr.json
@@ -1 +1 @@
-{"is_release": true, "git_version": "4ef71ab"}
\ No newline at end of file
+{"is_release": true, "git_version": "3a80fa7"}
\ No newline at end of file
diff --git a/txfixtures/mongodb.py b/txfixtures/mongodb.py
index 95bacd8..1e29d96 100644
--- a/txfixtures/mongodb.py
+++ b/txfixtures/mongodb.py
@@ -12,7 +12,7 @@ FORMAT = (
 class MongoDB(Service):
     """Start and stop a `mongodb` process in the background. """
 
-    def __init__(self, mongod="mongod", args=(), **kwargs):
+    def __init__(self, mongod=b"mongod", args=(), **kwargs):
         command = [mongod] + list(args)
         super(MongoDB, self).__init__(command, **kwargs)
 
@@ -42,6 +42,6 @@ class MongoDB(Service):
     @property
     def _args(self):
         return self.command[:] + [
-            "--port=%d" % self.port,
-            "--dbpath=%s" % self._dbPath.path,
+            b"--port=%d" % self.port,
+            b"--dbpath=%s" % self._dbPath.path.encode("utf-8"),
         ]
diff --git a/txfixtures/tests/test_mongodb.py b/txfixtures/tests/test_mongodb.py
index 07da26b..101f672 100644
--- a/txfixtures/tests/test_mongodb.py
+++ b/txfixtures/tests/test_mongodb.py
@@ -48,11 +48,11 @@ class MongoDBTest(TestCase):
 
         self.fixture.setUp()
         executable, arg1, arg2 = self.reactor.process.args
-        self.assertEqual("mongod", executable)
-        self.assertEqual("--port=666", arg1)
+        self.assertEqual(b"mongod", executable)
+        self.assertEqual(b"--port=666", arg1)
         self.assertEqual(["mongodb://localhost:666"], client)
-        self.assertThat(arg2, StartsWith("--dbpath="))
-        self.assertThat(arg2.split("=")[1], DirExists())
+        self.assertThat(arg2, StartsWith(b"--dbpath="))
+        self.assertThat(arg2.split(b"=")[1], DirExists())
         self.assertIn(
             "waiting for connections on port 666",
             self.logger.output.split("\n"))

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



More information about the Python-modules-commits mailing list