Commit Graph

5153 Commits

Author SHA1 Message Date
cclauss
703f414ca6 Drop Python 3.3 from testing & add Python 3.5, 3.6 (#3512)
* Drop Python 3.3 from testing & add Python 3.5, 3.6

Python 3.3 goes [EOL](https://docs.python.org/devguide/index.html#branchstatus) next month.

* Sync test.sh with the Python versions in tox.ini
2017-08-18 10:14:00 -07:00
cclauss
a04eb8c191 Define cmp() for Python 3 (#3517)
* Define cmp() for Python 3

http://python-future.org/compatible_idioms.html?highlight=cmp#cmp

* Define cmp() for Python 3

http://python-future.org/compatible_idioms.html?highlight=cmp#cmp
2017-08-18 10:13:10 -07:00
Jie Luo
1aa2c34387 Merge pull request #3516 from cclauss/patch-3
Python 3 compatibility fixes: print(), long(), etc.
2017-08-18 10:11:30 -07:00
cclauss
dded80f924 define long() for Python 3 2017-08-18 01:41:27 +02:00
cclauss
6f4c9b07e4 print() function for Python 3 2017-08-18 01:25:00 +02:00
cclauss
a1acf25327 print() function and lose the semicolons (;) 2017-08-18 01:18:50 +02:00
cclauss
067543cd6d from __future__ import print_function
The future import is required to support the print(x, end=" ") parameter in Python 2.
2017-08-18 01:14:48 +02:00
cclauss
7daedbd8ca print() function & define raw_input() for Python 3 2017-08-18 01:09:14 +02:00
cclauss
45483fd1c0 file() was removed in Python 3, use open() instead
http://python-future.org/compatible_idioms.html#file
2017-08-18 01:04:17 +02:00
Jie Luo
5ab8ae7566 Merge pull request #3511 from cclauss/patch-3
Old style exception --> new style exception
2017-08-17 13:51:22 -07:00
Jisi Liu
fa46d11e2e Merge pull request #3514 from pherl/rubyfix
Bump gem version for the next upload
2017-08-17 13:51:05 -07:00
Jisi Liu
29c24abbf1 Merge pull request #3502 from pherl/pypi
Update testpypi URLs
2017-08-17 13:50:50 -07:00
Jisi Liu
19266369f0 Bump gem version for the next upload 2017-08-17 13:10:47 -07:00
cclauss
958412e2e6 Old style exception --> new style exception 2017-08-17 19:25:39 +02:00
Jie Luo
d1484cdec6 Update CHANGES.txt 2017-08-16 14:40:59 -07:00
Jie Luo
55d938c910 Update CHANGES.txt 2017-08-16 14:39:16 -07:00
Jisi Liu
98c6d04df4 Prefer system distributed binaries/libraries.
It seems like the image has a /usr/local/bin/autoconf installed, which
doesn't recognize/work with the yum installed libtools. Putting
distributed binaries/libraries first solves the problem
2017-08-16 13:34:14 -07:00
Bo Yang
e243082fe9 Update php version number to 3.4.0 2017-08-16 13:03:44 -07:00
Bo Yang
82dd4b3793 Update php c extension version number. 2017-08-16 13:00:50 -07:00
Jisi Liu
5d5df84913 clean up 2017-08-16 10:35:00 -07:00
Jisi Liu
19a7e2099b Update testpypi addresses.
The old one is deprecated and no longer working.
2017-08-16 10:30:38 -07:00
Jisi Liu
80a37e0782 Merge pull request #3495 from pherl/c++11
Add std::forward and std::move autoconf check
2017-08-15 16:39:12 -07:00
Jisi Liu
5e39ecc569 Merge pull request #3494 from drivehappy/clang_warning_macro
Fixing -Wexpansion-to-defined Clang warning
2017-08-15 14:58:38 -07:00
Jisi Liu
3d2f72bf01 Merge pull request #3496 from pherl/mingw64
Static link pthread for mingw64 protoc and enable cross compile
2017-08-15 14:25:44 -07:00
Jisi Liu
6654c8dd50 Update readme 2017-08-15 13:46:20 -07:00
Jisi Liu
f6196219f7 Merge pull request #3493 from pherl/cmath
Fix cmath/math.h include with non C++11 libstdc++
2017-08-15 13:21:44 -07:00
Jisi Liu
d909834ec6 static link for 32 bit build as well. 2017-08-15 13:15:37 -07:00
Jisi Liu
f7b3dd4329 Update comments that cross compile is feasible now
Need to install mingw-w64 on linux to cross compile
2017-08-15 13:13:10 -07:00
Jisi Liu
fa086c8a85 First try static linking pthread 2017-08-15 12:27:46 -07:00
Jisi Liu
4a4c67b6a2 Add std::forward and std::move autoconf check
Protobuf now uses these two features, which are not available on some
platforms.
2017-08-15 11:44:16 -07:00
drivehappy
a23e198cca Fixing warning under Clang 6.x (-Wexpansion-to-defined) where the macro expansion producing 'defined' was warning on undefined behavior. 2017-08-15 11:41:46 -07:00
Jisi Liu
3908b4e40d Fix cmath/math.h include with non C++11 libstdc++ 2017-08-15 11:14:00 -07:00
Jisi Liu
1cc4ecde1c Merge pull request #3488 from pherl/changelog
Update changelog for 3.4.x
2017-08-14 15:39:44 -07:00
Jisi Liu
3ae8c4c7da Update changelog for 3.4.x 2017-08-14 14:32:48 -07:00
Jisi Liu
eaeca0d42b Merge pull request #3485 from pherl/mingw
Fix build on MinGW32
2017-08-11 16:44:07 -07:00
Jisi Liu
1bd2d1fc75 Merge pull request #3484 from pherl/qualifier
Make compilers without ref-qualifier support happy.
2017-08-11 15:36:12 -07:00
Jisi Liu
651429b709 Fix comments 2017-08-11 14:01:41 -07:00
Jisi Liu
31b3bd9811 Make compilers without ref-qualifier support happy. 2017-08-11 13:53:41 -07:00
Jisi Liu
b4c0cfe3a4 Add malloc cast 2017-08-11 13:46:14 -07:00
Jisi Liu
fd31899f01 implement remove strdup usage and implement our own
strdup is not part C or C++ standard but POXIS function. Several
compilers failed to compile strdup or generate warnings.
2017-08-11 13:32:52 -07:00
Jisi Liu
34ebca0ca8 Adding missing imports for strdup 2017-08-11 13:01:28 -07:00
Jisi Liu
40d1855fe9 Fix mkdir 2017-08-11 12:52:45 -07:00
Jisi Liu
564f02c91e Make win32_io only for MSVC
This excludes cygwin and mingw from using the self implemented
functions.
2017-08-11 12:08:00 -07:00
Jisi Liu
7afa796bb9 Fix the declaration order in ming32 2017-08-11 11:45:41 -07:00
Jisi Liu
db125b8d3a Fixing io_win32 for MinGW32 2017-08-11 11:38:40 -07:00
Jon Skeet
e0d24cc84a Detect invalid tags with a field number of 0 in C#
Previously we only rejected the tag if the tag itself was 0, i.e.
field=0, type=varint. The type doesn't matter: field 0 is always
invalid.

This removes the last of the C# conformance failures.
2017-08-11 19:33:53 +01:00
Jisi Liu
d2f3adb3b3 Merge pull request #3481 from pherl/nowarning
Make no warning test stricter.
2017-08-10 14:23:48 -07:00
Feng Xiao
ccb6b62249 Merge pull request #3480 from bklarson/master
Clean up typedefs for Atomic32/Atomic64
2017-08-10 13:03:44 -07:00
Brad Larson
1b423474fd Clean up typedefs for Atomic32/Atomic64
The typedefs for Atomic32 and Atomic64 were sometimes causing
Atomic32 to be an int32 rather than an intptr_t on 32-bit platforms.
On some of these platforms (ARM/CortexM building with GCC 6 in one
case) int32 is a long int, while intptr_t is an int, which causes a
compiler error even though long int and int are both 4 bytes.

Having Atomic32 always be intptr_t on 32-bit platforms and Atomic64
always be intptr_t on 64-bit platforms should resolve any of these
types of errors.
2017-08-10 14:47:13 -05:00
Jisi Liu
e8fc0661db Make no warning test stricter.
- Now it includes -Wextra except for unused-parameter.
- Removed gtest dependency
2017-08-10 10:47:06 -07:00