[python-plyvel] upstream bug fix release 0.3

Dan Callaghan dcallagh at fedoraproject.org
Wed Jun 5 23:21:36 UTC 2013


commit 269112a4266de46637cbe4844f5b8377076f552f
Author: Dan Callaghan <dcallagh at redhat.com>
Date:   Thu Jun 6 09:20:44 2013 +1000

    upstream bug fix release 0.3
    
    Also switched to upstream patch for test failure.

 .gitignore                               |    1 +
 3f9b0d8c-test-tmp-db-fs-encoding.patch   |   46 ++++++++++++++++++++++++++++++
 plyvel-0.2-test-tmp-db-fs-encoding.patch |   15 ----------
 python-plyvel.spec                       |   10 ++++--
 sources                                  |    2 +-
 5 files changed, 55 insertions(+), 19 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index 4988b9b..0f44810 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1 +1,2 @@
 /plyvel-0.2.tar.gz
+/plyvel-0.3.tar.gz
diff --git a/3f9b0d8c-test-tmp-db-fs-encoding.patch b/3f9b0d8c-test-tmp-db-fs-encoding.patch
new file mode 100644
index 0000000..cad9852
--- /dev/null
+++ b/3f9b0d8c-test-tmp-db-fs-encoding.patch
@@ -0,0 +1,46 @@
+diff --git a/test/test_plyvel.py b/test/test_plyvel.py
+index 58481f4..f6470d6 100644
+--- a/test/test_plyvel.py
++++ b/test/test_plyvel.py
+@@ -6,6 +6,7 @@
+ import os
+ import shutil
+ import stat
++import sys
+ import tempfile
+ 
+ try:
+@@ -20,6 +21,7 @@
+     # Python 3
+     xrange = range
+ 
++from nose.plugins.skip import SkipTest
+ from nose.tools import (
+     assert_equal,
+     assert_greater_equal,
+@@ -97,9 +99,6 @@ def test_open():
+         with assert_raises(plyvel.IOError):
+             DB(name)
+ 
+-    with tmp_db('úñîçøđê_name') as db:
+-        pass
+-
+     with tmp_db('no_create', create=False) as name:
+         with assert_raises(plyvel.Error):
+             DB(name, create_if_missing=False)
+@@ -134,6 +133,15 @@ def test_open():
+            compression='snappy', bloom_filter_bits=10)
+ 
+ 
++def test_open_unicode_name():
++    if sys.getfilesystemencoding().lower() != 'utf-8':
++        # XXX: letter casing differs between Python 2 and 3
++        raise SkipTest("Not running with UTF-8 file system encoding")
++
++    with tmp_db('úñîçøđê_name'):
++        pass
++
++
+ def test_open_close():
+     with tmp_db('open_close', create=False) as name:
+         # Create a database with options that result in additional
diff --git a/python-plyvel.spec b/python-plyvel.spec
index ff67386..efeff0e 100644
--- a/python-plyvel.spec
+++ b/python-plyvel.spec
@@ -8,14 +8,14 @@
 %endif
 
 Name:           python-%{upstream_name}
-Version:        0.2
+Version:        0.3
 Release:        1%{?dist}
 Summary:        Python interface to the LevelDB embedded database library
 License:        BSD
 URL:            https://github.com/wbolster/plyvel
 Source0:        http://pypi.python.org/packages/source/p/%{upstream_name}/%{upstream_name}-%{version}.tar.gz
-# https://github.com/wbolster/plyvel/issues/10
-Patch0:         plyvel-0.2-test-tmp-db-fs-encoding.patch
+# https://github.com/wbolster/plyvel/commit/3f9b0d8c1a9ff0a880c2b6d3e038dc0c47818d89
+Patch0:         3f9b0d8c-test-tmp-db-fs-encoding.patch
 BuildRequires:  python2-devel
 BuildRequires:  python-setuptools
 BuildRequires:  python-nose
@@ -96,5 +96,9 @@ popd
 %endif
 
 %changelog
+* Tue Jun 04 2013 Dan Callaghan <dcallagh at redhat.com> - 0.3-1
+- upstream bug fix release 0.3
+- switch to upstream patch for test failure
+
 * Sat May 25 2013 Dan Callaghan <dcallagh at redhat.com> - 0.2-1
 - initial version
diff --git a/sources b/sources
index b41baef..8bed824 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-2399c41de014b3e32437954bec084165  plyvel-0.2.tar.gz
+000793eb4d011bdb036ecfdd4c488341  plyvel-0.3.tar.gz


More information about the scm-commits mailing list