Otto Kekäläinen
3808d091f8
Fix spelling in strings and comments
2016-07-03 15:26:04 +03:00
Adam Cozzette
b83af525db
Fixed string formatting in text_format.py to be Python2.6-compatible
...
In Python 2.6 the positional argument specifiers are apparently required
to be explicitly specified:
http://stackoverflow.com/questions/10054122/valueerror-zero-length-field-name-in-format-python
2016-06-30 10:13:53 -07:00
Adam Cozzette
d64a2d9941
Integrated internal changes from Google
...
This includes all internal changes from around May 20 to now.
2016-06-29 15:38:03 -07:00
Josh Haberman
350453f2d5
Make surrogate regex even more lenient.
2016-06-06 17:14:58 -07:00
Josh Haberman
923d2c7ccf
JSON surrogates Python: adjust regex for OSX error message.
...
OS X's version of Python has a slightly different error
message for this error case.
2016-06-06 13:57:59 -07:00
Josh Haberman
6a618949aa
Added test for surrogates (valid and invalid).
2016-06-03 10:24:23 -07:00
Josh Haberman
4833b4c003
Surrogate checking is unpredictable, so always manually check.
2016-06-03 09:39:38 -07:00
Josh Haberman
bd98eae1c9
Fixed Python by updating failure lists and fixed a few broken tests.
...
Python 2.x doesn't detect unpaired surrogates so we have to
do that manually.
2016-06-03 09:39:38 -07:00
Jisi Liu
cbb9183e89
Merge pull request #1559 from google/beta-3
...
Merge beta-3 release branch again.
2016-05-18 11:44:56 -07:00
Jie Luo
b01b1a8ebe
JSON format for Any message must print @type first, use OrderedDict instead of {}
2016-05-17 15:14:53 -07:00
Jisi Liu
b3bb46c51b
Added download_url to be able to upload to pypi.
2016-05-17 10:50:43 -07:00
Jisi Liu
dbed8a0154
Update version numbers for beta3
2016-05-10 14:49:42 -07:00
Jisi Liu
f8a5c5f746
Fix using std::shared_ptr
2016-05-05 16:34:42 -07:00
Jisi Liu
75e5898513
Fix the std::string error introduced in integration.
2016-05-05 16:04:30 -07:00
Jisi Liu
cf14183bcd
Down integrate from Google internal.
2016-04-28 14:34:59 -07:00
Jisi Liu
cba75ad404
Merge branch 'master' of github.com:google/protobuf
2016-04-01 16:46:49 -07:00
Manjunath Kudlur
cf828deb9b
Linking the cpp implementation extension statically with libprotobuf
2016-04-01 15:58:48 -07:00
Jisi Liu
1bf446c71e
Disable sign-compare warning.
2016-03-31 15:48:25 -07:00
Jisi Liu
7b1cbbd50e
Fix signed-compare warning.
2016-03-31 15:38:10 -07:00
Jisi Liu
012ac9a0a6
revert unexpected change for py26
2016-03-31 15:26:22 -07:00
Manjunath Kudlur
1283625b0f
Added an API to allow oversize protos when using C++ extension in Python
2016-03-31 14:14:58 -07:00
Jisi Liu
fc7eeda69c
Fix json_format.py in py26
2016-03-31 13:36:32 -07:00
Jisi Liu
0de06f54bc
Merge branch 'master' of github.com:google/protobuf
2016-03-30 11:43:44 -07:00
Jisi Liu
3b3c8abb96
Integrate google internal changes.
2016-03-30 11:39:59 -07:00
Joshua Haberman
3dd3238189
Merge pull request #1306 from silviulica/master
...
Update version to 3.0.0b2.post2
2016-03-07 16:31:48 -08:00
Silviu Calinoiu
4573edba76
Update version to 3.0.0b2.post2
2016-03-07 14:33:57 -08:00
Craig Citro
0e7c0c2fb8
Add back the namespace_packages arg in setup.py.
...
Improves #1296 .
The problem: in the previous patch, we tweaked the __init__.py files to use
namespaces, but no longer declared ourselves as a namespace package. The
second half was unwise.
Note that this only comes up when installing protobuf alongside another
package that also installs into the google namespace; as of right now, the
only PyPI package that does is googleapis-common-protos, though the GAE SDK
also uses google.appengine. Installing either or both of those alongside this
package now works.
The case that still remains is the upgrade path, which is also what worried me
in #713 . It seems that if protobuf 2.6.1 is installed, there's no way to
safely upgrade that to work with a newer protobuf. However, `pip uninstall` &&
`pip install` does the trick.
2016-03-05 00:10:11 -08:00
Silviu Calinoiu
786f80fe66
Add a modified patch from craigcitro@ to handle namespace sharing.
2016-02-18 16:12:11 -08:00
Manjunath Kudlur
99a3e30bd7
Added PROTOBUF_PYTHON_ALLOW_OVERSIZE_PROTOS macro and setting it when
...
--allow_oversize_protos=true is passed to bazel build.
When this macro is set, SetTotalBytesLimit is called to remove
the 64MB limit on binary protos when during ParseFromString.
2016-02-16 15:17:10 -08:00
CH Albach
5477f8cdba
Manually down-integrate python JSON struct support from internal code base.
2016-01-29 18:10:50 -08:00
Josh Haberman
06fd6fa850
Fixed Python 3.x C++ build, and updated conformance failure lists.
2016-01-15 17:26:44 -08:00
Josh Haberman
e891c29f9b
Allow conformance test runner to tolerate crashes, and re-enable conformance tests.
2016-01-11 16:15:46 -08:00
Josh Haberman
e1abdf2c76
Fixed compile for Python 3. There are still some crashes though.
2015-12-30 16:09:53 -08:00
Feng Xiao
283c40c897
Require six>=1.9 for Python.
...
We use six sub-modules that aren't available in old versions. Not specifying
this requirement in the setup will lead to much less readable runtime errors.
It's particuarlly problematic for Mac OSX users because the system comes with
an old six version 1.4.1 by default.
[skip ci]
2015-12-29 14:36:46 -08:00
Feng Xiao
b7610f129d
Add missing files to EXTRA_DIST.
...
Also delete some unused files.
2015-12-28 14:18:49 -08:00
Feng Xiao
27b2423d6a
Disable python conformnace tests as well.
...
The testee program crashes on some inputs.
Change-Id: Iab27b80e29b7a56c5bd7cb4724531ecf9bb2823a
2015-12-21 13:45:55 -08:00
Feng Xiao
a0b8fd52b9
Fix Python 2.6 test failures.
...
Change-Id: Ia9e2795b1ff1abb30410ffb3ef96ba6f46dd99d0
2015-12-21 13:43:13 -08:00
Feng Xiao
aa7e17a6f6
Update version numbers.
...
Version number for beta languages is updated to v3.0.0-beta-2.
Version number for alpha languages is updated to v3.0.0-alpha-5.
2015-12-21 11:31:51 -08:00
Feng Xiao
e841bac4fc
Down-integrate from internal code base.
2015-12-11 17:10:28 -08:00
Manjunath Kudlur
96537c461a
Bringing in internal::shared_ptr into google:protobuf namespace.
...
Fixes #1029
2015-12-09 07:40:30 -08:00
Manjunath Kudlur
3f9b4f2944
Updated for c++98 compatibility
2015-12-07 14:15:29 -08:00
Manjunath Kudlur
3ff1dca0bd
Enable fast cpp protos in the python interface.
2015-12-07 13:08:21 -08:00
Josh Haberman
4b31ffa488
Added Python failure lists, and fixes to make sure failure propagates.
2015-12-03 12:54:54 -08:00
Josh Haberman
325392dd61
Conformance test implementation for Python.
2015-12-02 12:53:42 -08:00
Josh Haberman
c3ca920509
Pass $CC environment variable through tox.
2015-10-28 17:07:02 -07:00
Josh Haberman
d8814ed59e
Special-case Clang-only warning flags to Clang.
2015-10-28 17:07:02 -07:00
Josh Haberman
30cbd4c561
Disable some more warnings to be warnings-free.
2015-10-28 17:05:47 -07:00
Josh Haberman
70ffefa551
Fixed compile errors after rebase.
2015-10-28 17:05:47 -07:00
Josh Haberman
00700b7219
Removed all warnings from the Python/C++ build.
...
Also made the Travis build ensure that no warnings
are present.
These builds were previously spewing many warnings,
which was hiding warnings for important things like
accidentally using C++11-only features.
Change-Id: I56caeee9db48bc78756a3e8d7c14874630627037
2015-10-28 17:05:47 -07:00
Jie Luo
2850a98275
fix json_format for python2.6:
...
1, objcect_pair_hook is not supported in python2.6, so duplicated key check is removed in 2.6
2, total_seconds is not suppoted in python2.6, changed to compute seconds directly
2015-10-19 16:25:54 -07:00
Jisi Liu
f6fa5c7882
add complete WKT for python.
2015-10-06 14:26:00 -07:00
Jisi Liu
7464f40a7e
Generate well known types for python.
2015-10-06 14:20:26 -07:00
Jisi Liu
78d040a18b
remove extra collection import
2015-10-06 11:02:24 -07:00
Jisi Liu
72bd9c959a
disable tests for python-cpp under py26 as well.
2015-10-06 10:48:57 -07:00
Jisi Liu
f509c7b2f5
disable py2.6 tests for json_format_test
2015-10-05 16:14:50 -07:00
Jisi Liu
dbea00ae88
Revert back changes to import unittest2 for py26
2015-10-05 16:08:22 -07:00
Jisi Liu
a783eaf37f
make the python json test less strict on expected errors.
2015-10-05 15:06:06 -07:00
Jisi Liu
8d8177c757
Merge remote-tracking branch 'origin/master' into fix-author
2015-10-05 13:54:05 -07:00
Jisi Liu
46e8ff63cb
Down-integrate from google internal.
2015-10-05 11:59:43 -07:00
Dan O'Reilly
d9598ca55d
Fix Python 3.4 cpp implementation
...
Fixes the ScalarMapContainer/MessageMapContainer implementations on
Python 3.4, by dynamically allocating their PyTypeObjects using
PyType_FromSpecWithBases, instead of statically allocating them. This is
necessary because Python 3.4+ disallows statically allocating a class
with a dynamically allocated parent.
Signed-off-by: Dan O'Reilly <oreilldf@gmail.com>
2015-08-31 16:42:31 -04:00
Josh Haberman
4472b4ad15
Fixed assignment syntax error.
...
Change-Id: Ifef8a300258214aae8f6b8516fbc61b7335b5724
2015-08-28 19:21:49 -07:00
Josh Haberman
fc80fad9d5
Fix for https://github.com/google/protobuf/issues/758
...
Change-Id: I590b34b96c84a3ba6e094a0bd86f153147ade3d3
2015-08-28 16:34:48 -07:00
Feng Xiao
a3a2605d5c
Excludes a failing python cpp test case.
2015-08-26 21:56:26 -07:00
Feng Xiao
e94e062b58
Merge branch 'master' of github.com:google/protobuf into beta-1
2015-08-26 15:47:35 -07:00
Joshua Haberman
c7a1f8ec3b
Merge pull request #728 from dano/py3_str_compat
...
Get all tests passing on Python3 (except Python3.4 cpp implementation)
2015-08-26 15:44:06 -07:00
Feng Xiao
ffe9215140
Update version number.
...
Protoc, C++ runtime and Java runtime are updated to v3.0.0-beta-1, other
languages are updated to v3.0.0-alpha-4.
2015-08-26 15:11:43 -07:00
Feng Xiao
b192ba87f7
Merge remote-tracking branch 'origin/master' into beta-1
2015-08-25 20:24:43 -07:00
Feng Xiao
b17ec3ca11
Down-integrate from internal code base.
2015-08-23 17:50:38 -07:00
Feng Xiao
eee38b0c01
Down-integrate from google3.
2015-08-22 18:25:48 -07:00
Dan O'Reilly
38eef02aab
Fix metaclass issue on Python 3. Get text handling tests passing on Python 3.
...
Signed-off-by: Dan O'Reilly <oreilldf@gmail.com>
2015-08-22 13:07:12 -04:00
Dan O'Reilly
fc80874adf
Start work on getting text handled properly on PY3
2015-08-22 13:07:12 -04:00
Tamir Duberstein
87993d7507
assertEquals is deprecated
2015-08-22 13:06:24 -04:00
Tamir Duberstein
821fcb2ded
Use assertIsInstance
2015-08-22 12:56:34 -04:00
Tamir Duberstein
09831c8768
Clean up exception syntax
2015-08-22 12:55:19 -04:00
Tamir Duberstein
322d8939fc
Remove Python 2.5 cruft
2015-08-22 12:54:31 -04:00
Dan O'Reilly
46969b99ca
Set DYLD_LIBRARY_PATH for OSX
...
Signed-off-by: Dan O'Reilly <oreilldf@gmail.com>
2015-08-21 19:28:18 -04:00
Jisi Liu
b0f661181d
Down-integrate from internal branch.
...
Change-Id: Ieb7a2c2fbf35bc2a8fa65b915a5ecb68c83863e4
2015-08-21 11:18:45 -07:00
Dan O'Reilly
3791c8051a
Fix travis build
...
Signed-off-by: Dan O'Reilly <oreilldf@gmail.com>
2015-08-20 20:49:45 -04:00
Dan O'Reilly
5de2a81b01
Improve tox.ini, install py26 for travis.
...
Signed-off-by: Dan O'Reilly <oreilldf@gmail.com>
2015-08-20 18:19:56 -04:00
Dan O'Reilly
afa488c4d1
Remove debug code
...
Signed-off-by: Dan O'Reilly <oreilldf@gmail.com>
2015-08-20 15:51:06 -04:00
Dan O'Reilly
416f001adc
Use tox in travis build. Tweak tox.ini
...
Signed-off-by: Dan O'Reilly <oreilldf@gmail.com>
2015-08-20 15:29:10 -04:00
Dan O'Reilly
3bdfb4b695
Add some clarifying comments. Remove ez_setup.py.
...
Signed-off-by: Dan O'Reilly <oreilldf@gmail.com>
2015-08-20 13:52:19 -04:00
Dan O'Reilly
9d689692d3
Make testing cpp implementation optional
...
Signed-off-by: Dan O'Reilly <oreilldf@gmail.com>
2015-08-16 13:56:25 -04:00
Dan O'Reilly
3083d8cee7
Fix --cpp_implementation test failure. Test both pure Python and cpp implementation in tox.
...
Signed-off-by: Dan O'Reilly <oreilldf@gmail.com>
2015-08-15 10:07:38 -04:00
Dan O'Reilly
7601551f7c
Just always uses BytseIO in text_format for now
...
Signed-off-by: Dan O'Reilly <oreilldf@gmail.com>
2015-08-14 23:22:47 -04:00
Dan O'Reilly
7013a75b90
Disable py3* in tox
...
Signed-off-by: Dan O'Reilly <oreilldf@gmail.com>
2015-08-14 23:09:29 -04:00
Dan O'Reilly
2621c8aefb
Get Python 2.6 working.
...
Signed-off-by: Dan O'Reilly <oreilldf@gmail.com>
2015-08-14 22:54:53 -04:00
Dan O'Reilly
d06adbd4a4
Fix usage of assertItemsEqual on Py3
...
Signed-off-by: Dan O'Reilly <oreilldf@gmail.com>
2015-08-14 16:16:00 -04:00
Dan O'Reilly
3d5aa6aef9
Fix some more Python 3 compat issues
...
Signed-off-by: Dan O'Reilly <oreilldf@gmail.com>
2015-08-14 16:12:34 -04:00
Dan O'Reilly
fe7d9379df
Fixing some long/int bugs
...
Signed-off-by: Dan O'Reilly <oreilldf@gmail.com>
2015-08-14 15:26:33 -04:00
Dan O'Reilly
981d6bf2f7
Build protobuf files in as part of tox runs.
...
Signed-off-by: Dan O'Reilly <oreilldf@gmail.com>
2015-08-13 01:24:05 -04:00
Dan O'Reilly
833c046fb7
Fixing some tests
...
Signed-off-by: Dan O'Reilly <oreilldf@gmail.com>
2015-08-13 01:17:26 -04:00
Dan O'Reilly
e47cdd5a55
Merge remote-tracking branch 'upstream/master' into py2_py3_straddle
...
Conflicts:
python/google/protobuf/descriptor_pool.py
python/google/protobuf/internal/api_implementation_default_test.py
python/google/protobuf/internal/cpp_message.py
python/google/protobuf/internal/descriptor_database_test.py
python/google/protobuf/internal/descriptor_pool_test.py
python/google/protobuf/internal/descriptor_python_test.py
python/google/protobuf/internal/descriptor_test.py
python/google/protobuf/internal/generator_test.py
python/google/protobuf/internal/message_factory_python_test.py
python/google/protobuf/internal/message_factory_test.py
python/google/protobuf/internal/message_test.py
python/google/protobuf/internal/proto_builder_test.py
python/google/protobuf/internal/python_message.py
python/google/protobuf/internal/reflection_test.py
python/google/protobuf/internal/service_reflection_test.py
python/google/protobuf/internal/symbol_database_test.py
python/google/protobuf/internal/text_encoding_test.py
python/google/protobuf/internal/text_format_test.py
python/google/protobuf/internal/unknown_fields_test.py
python/google/protobuf/internal/wire_format_test.py
python/google/protobuf/pyext/descriptor_cpp2_test.py
python/google/protobuf/pyext/message_factory_cpp2_test.py
python/google/protobuf/pyext/reflection_cpp2_generated_test.py
python/setup.py
ruby/lib/google/protobuf/message_exts.rb
2015-08-12 23:57:46 -04:00
Bo Yang
9f563bd0d8
Internal local modifications.
2015-07-09 12:39:52 -07:00
Bo Yang
e107e2d68e
Update version number to 3.0.0-alpha-4
2015-05-29 11:00:57 -07:00
Feng Xiao
8e1426800e
Replace the check of "../.git"
...
Checking the existence of ".git" is not the right way to check whether we
are in develop environment because we distribute source tar-balls where
such a ".git" directory does not exist. Replaced it with checking .proto
files.
2015-05-26 00:11:09 -07:00
teboring
9839c0c2c9
Update version number to 3.0.0-alpha-3
2015-05-23 09:20:23 -07:00
Bo Yang
5db217305f
down-integrate internal changes
2015-05-21 19:32:02 -07:00
Tamir Duberstein
e4f4d9fe83
Only generate protos in development
...
Fixes #333 .
2015-05-15 17:53:00 -04:00
Tamir Duberstein
5018c433ed
Use glob to simplify
2015-05-15 17:41:04 -04:00