Browse Source

Import upstream version 0.19.8, md5 c5727f4fef632b5fe557bfbc579257c4

Jelmer Vernooij 6 years ago
parent
commit
8cdd736454
7 changed files with 18 additions and 8 deletions
  1. 5 0
      NEWS
  2. 2 2
      PKG-INFO
  3. 1 1
      README.md
  4. 2 2
      dulwich.egg-info/PKG-INFO
  5. 1 1
      dulwich/__init__.py
  6. 3 0
      dulwich/tests/test_refs.py
  7. 4 2
      setup.py

+ 5 - 0
NEWS

@@ -1,3 +1,8 @@
+0.19.8	2018-11-06
+
+ * Fix encoding when reading README file in setup.py.
+   (egor <egor@sourced.tech>, #668)
+
 0.19.7	2018-11-05
 
  CHANGES

+ 2 - 2
PKG-INFO

@@ -1,6 +1,6 @@
 Metadata-Version: 2.1
 Name: dulwich
-Version: 0.19.7
+Version: 0.19.8
 Summary: Python Git Library
 Home-page: https://www.dulwich.io/
 Author: Jelmer Vernooij
@@ -102,7 +102,7 @@ Description: [![Build Status](https://travis-ci.org/dulwich/dulwich.png?branch=m
         Supported versions of Python
         ----------------------------
         
-        At the moment, Dulwich supports (and is tested on) CPython 2.7, 3.3, 3.4, 3.5, 3.6 and Pypy.
+        At the moment, Dulwich supports (and is tested on) CPython 2.7, 3.4, 3.5, 3.6 and Pypy.
         
 Keywords: git vcs
 Platform: UNKNOWN

+ 1 - 1
README.md

@@ -91,4 +91,4 @@ file and [list of open issues](https://github.com/dulwich/dulwich/issues).
 Supported versions of Python
 ----------------------------
 
-At the moment, Dulwich supports (and is tested on) CPython 2.7, 3.3, 3.4, 3.5, 3.6 and Pypy.
+At the moment, Dulwich supports (and is tested on) CPython 2.7, 3.4, 3.5, 3.6 and Pypy.

+ 2 - 2
dulwich.egg-info/PKG-INFO

@@ -1,6 +1,6 @@
 Metadata-Version: 2.1
 Name: dulwich
-Version: 0.19.7
+Version: 0.19.8
 Summary: Python Git Library
 Home-page: https://www.dulwich.io/
 Author: Jelmer Vernooij
@@ -102,7 +102,7 @@ Description: [![Build Status](https://travis-ci.org/dulwich/dulwich.png?branch=m
         Supported versions of Python
         ----------------------------
         
-        At the moment, Dulwich supports (and is tested on) CPython 2.7, 3.3, 3.4, 3.5, 3.6 and Pypy.
+        At the moment, Dulwich supports (and is tested on) CPython 2.7, 3.4, 3.5, 3.6 and Pypy.
         
 Keywords: git vcs
 Platform: UNKNOWN

+ 1 - 1
dulwich/__init__.py

@@ -22,4 +22,4 @@
 
 """Python implementation of the Git file formats and protocols."""
 
-__version__ = (0, 19, 7)
+__version__ = (0, 19, 8)

+ 3 - 0
dulwich/tests/test_refs.py

@@ -506,6 +506,9 @@ class DiskRefsContainerTests(RefsContainerTests, TestCase):
         self.assertEqual(expected_refs, self._repo.get_refs())
 
     def test_cyrillic(self):
+        if sys.platform == 'win32':
+            raise SkipTest(
+                    "filesystem encoding doesn't support arbitrary bytes")
         # reported in https://github.com/dulwich/dulwich/issues/608
         name = b'\xcd\xee\xe2\xe0\xff\xe2\xe5\xf2\xea\xe01'
         encoded_ref = b'refs/heads/' + name

+ 4 - 2
setup.py

@@ -11,10 +11,11 @@ except ImportError:
 else:
     has_setuptools = True
 from distutils.core import Distribution
+import io
 import os
 import sys
 
-dulwich_version_string = '0.19.7'
+dulwich_version_string = '0.19.8'
 
 include_dirs = []
 # Windows MSVC support
@@ -83,7 +84,8 @@ if has_setuptools:
     setup_kwargs['test_suite'] = 'dulwich.tests.test_suite'
     setup_kwargs['tests_require'] = tests_require
 
-with open('README.md', 'r') as f:
+with io.open(os.path.join(os.path.dirname(__file__), "README.md"),
+             encoding="utf-8") as f:
     description = f.read()
 
 setup(name='dulwich',