msgpack 1.0.6__tar.gz → 1.0.7__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (43) hide show
  1. {msgpack-1.0.6/msgpack.egg-info → msgpack-1.0.7}/PKG-INFO +1 -1
  2. {msgpack-1.0.6 → msgpack-1.0.7}/msgpack/__init__.py +2 -2
  3. {msgpack-1.0.6 → msgpack-1.0.7}/msgpack/pack.h +0 -4
  4. {msgpack-1.0.6 → msgpack-1.0.7/msgpack.egg-info}/PKG-INFO +1 -1
  5. {msgpack-1.0.6 → msgpack-1.0.7}/setup.py +6 -20
  6. {msgpack-1.0.6 → msgpack-1.0.7}/COPYING +0 -0
  7. {msgpack-1.0.6 → msgpack-1.0.7}/MANIFEST.in +0 -0
  8. {msgpack-1.0.6 → msgpack-1.0.7}/README.md +0 -0
  9. {msgpack-1.0.6 → msgpack-1.0.7}/msgpack/_cmsgpack.cpp +0 -0
  10. {msgpack-1.0.6 → msgpack-1.0.7}/msgpack/_cmsgpack.pyx +0 -0
  11. {msgpack-1.0.6 → msgpack-1.0.7}/msgpack/_packer.pyx +0 -0
  12. {msgpack-1.0.6 → msgpack-1.0.7}/msgpack/_unpacker.pyx +0 -0
  13. {msgpack-1.0.6 → msgpack-1.0.7}/msgpack/buff_converter.h +0 -0
  14. {msgpack-1.0.6 → msgpack-1.0.7}/msgpack/exceptions.py +0 -0
  15. {msgpack-1.0.6 → msgpack-1.0.7}/msgpack/ext.py +0 -0
  16. {msgpack-1.0.6 → msgpack-1.0.7}/msgpack/fallback.py +0 -0
  17. {msgpack-1.0.6 → msgpack-1.0.7}/msgpack/pack_template.h +0 -0
  18. {msgpack-1.0.6 → msgpack-1.0.7}/msgpack/sysdep.h +0 -0
  19. {msgpack-1.0.6 → msgpack-1.0.7}/msgpack/unpack.h +0 -0
  20. {msgpack-1.0.6 → msgpack-1.0.7}/msgpack/unpack_define.h +0 -0
  21. {msgpack-1.0.6 → msgpack-1.0.7}/msgpack/unpack_template.h +0 -0
  22. {msgpack-1.0.6 → msgpack-1.0.7}/msgpack.egg-info/SOURCES.txt +0 -0
  23. {msgpack-1.0.6 → msgpack-1.0.7}/msgpack.egg-info/dependency_links.txt +0 -0
  24. {msgpack-1.0.6 → msgpack-1.0.7}/msgpack.egg-info/top_level.txt +0 -0
  25. {msgpack-1.0.6 → msgpack-1.0.7}/pyproject.toml +0 -0
  26. {msgpack-1.0.6 → msgpack-1.0.7}/setup.cfg +0 -0
  27. {msgpack-1.0.6 → msgpack-1.0.7}/test/test_buffer.py +0 -0
  28. {msgpack-1.0.6 → msgpack-1.0.7}/test/test_case.py +0 -0
  29. {msgpack-1.0.6 → msgpack-1.0.7}/test/test_except.py +0 -0
  30. {msgpack-1.0.6 → msgpack-1.0.7}/test/test_extension.py +0 -0
  31. {msgpack-1.0.6 → msgpack-1.0.7}/test/test_format.py +0 -0
  32. {msgpack-1.0.6 → msgpack-1.0.7}/test/test_limits.py +0 -0
  33. {msgpack-1.0.6 → msgpack-1.0.7}/test/test_memoryview.py +0 -0
  34. {msgpack-1.0.6 → msgpack-1.0.7}/test/test_newspec.py +0 -0
  35. {msgpack-1.0.6 → msgpack-1.0.7}/test/test_obj.py +0 -0
  36. {msgpack-1.0.6 → msgpack-1.0.7}/test/test_pack.py +0 -0
  37. {msgpack-1.0.6 → msgpack-1.0.7}/test/test_read_size.py +0 -0
  38. {msgpack-1.0.6 → msgpack-1.0.7}/test/test_seq.py +0 -0
  39. {msgpack-1.0.6 → msgpack-1.0.7}/test/test_sequnpack.py +0 -0
  40. {msgpack-1.0.6 → msgpack-1.0.7}/test/test_stricttype.py +0 -0
  41. {msgpack-1.0.6 → msgpack-1.0.7}/test/test_subtype.py +0 -0
  42. {msgpack-1.0.6 → msgpack-1.0.7}/test/test_timestamp.py +0 -0
  43. {msgpack-1.0.6 → msgpack-1.0.7}/test/test_unpack.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: msgpack
3
- Version: 1.0.6
3
+ Version: 1.0.7
4
4
  Summary: MessagePack serializer
5
5
  Author-email: Inada Naoki <songofacandy@gmail.com>
6
6
  License: Apache 2.0
@@ -4,8 +4,8 @@ from .ext import ExtType, Timestamp
4
4
  import os
5
5
 
6
6
 
7
- version = (1, 0, 6)
8
- __version__ = "1.0.6"
7
+ version = (1, 0, 7)
8
+ __version__ = "1.0.7"
9
9
 
10
10
 
11
11
  if os.environ.get("MSGPACK_PUREPYTHON"):
@@ -26,10 +26,6 @@
26
26
  extern "C" {
27
27
  #endif
28
28
 
29
- #ifdef _MSC_VER
30
- #define inline __inline
31
- #endif
32
-
33
29
  typedef struct msgpack_packer {
34
30
  char *buf;
35
31
  size_t length;
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: msgpack
3
- Version: 1.0.6
3
+ Version: 1.0.7
4
4
  Summary: MessagePack serializer
5
5
  Author-email: Inada Naoki <songofacandy@gmail.com>
6
6
  License: Apache 2.0
@@ -22,6 +22,8 @@ except ImportError:
22
22
 
23
23
 
24
24
  def cythonize(src):
25
+ if not have_cython:
26
+ raise Exception("Cython is required for building from checkout")
25
27
  sys.stderr.write(f"cythonize: {src!r}\n")
26
28
  cython_compiler.compile([src], cplus=True)
27
29
 
@@ -29,31 +31,15 @@ def cythonize(src):
29
31
  def ensure_source(src):
30
32
  pyx = os.path.splitext(src)[0] + ".pyx"
31
33
 
32
- if not os.path.exists(src):
33
- if not have_cython:
34
- raise NoCython
34
+ if not os.path.exists(src) or have_cython and os.stat(src).st_mtime < os.stat(pyx).st_mtime:
35
35
  cythonize(pyx)
36
- elif os.path.exists(pyx) and os.stat(src).st_mtime < os.stat(pyx).st_mtime and have_cython:
37
- cythonize(pyx)
38
- return src
39
36
 
40
37
 
41
38
  class BuildExt(build_ext):
42
39
  def build_extension(self, ext):
43
- try:
44
- ext.sources = list(map(ensure_source, ext.sources))
45
- except NoCython:
46
- print("WARNING")
47
- print("Cython is required for building extension from checkout.")
48
- print("Install Cython >= 0.16 or install msgpack from PyPI.")
49
- print("Falling back to pure Python implementation.")
50
- return
51
- try:
52
- return build_ext.build_extension(self, ext)
53
- except Exception as e:
54
- print("WARNING: Failed to compile extension modules.")
55
- print("msgpack uses fallback pure python implementation.")
56
- print(e)
40
+ for src in ext.sources:
41
+ ensure_source(src)
42
+ return build_ext.build_extension(self, ext)
57
43
 
58
44
 
59
45
  # Cython is required for sdist
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes