aboutsummaryrefslogtreecommitdiff
path: root/python
Commit message (Collapse)AuthorAgeFilesLines
* Remove 2to3 code from setup.py. (#5114)Benjamin Peterson2018-09-101-7/+1
| | | Python protobuf has long been a single-source codebase. 2to3 shouldn't need to run in setup.py.
* Fixed Python extension compile.Josh Haberman2018-09-072-7/+7
|
* Removed obsolete hash_map header that was breaking the compile.Josh Haberman2018-09-071-1/+0
|
* Down-integrate from google3.Josh Haberman2018-09-0420-65/+232
|
* Replace repo links.Feng Xiao2018-08-224-4/+4
|
* Disable surrogate check for ucs2 (#5039)Jie Luo2018-08-142-3/+10
| | | | * _SURROGATE_PATTERN check for ucs4 Skip some test for ucs2 by sys.maxunicode
* Down-integrate proto2 namespace fix.Feng Xiao2018-08-132-8/+8
|
* Fix failing tests.Feng Xiao2018-08-0910-22/+671
| | | | | | | | | | | | | | | | | | | | | | | | | | | 1. Fix C++ tests. * Add missing files to Makefile.am and fix distcheck in tests.sh * Remove BUILT_SOURCES from conformance/Makefile.am. * Add some missing override keyword. * Add a type cast to int64 because our StrCat() in stubs can't handle size_t. 2. Fix Java tests. * Add missing test dependency on guava in pom.xml. * Include newly referenced test data in test resources. * Manually fix map_lite_test.proto which is overwritten because it's mapped from map_test.proto in google3. * Add back "optimize_for = LITE_RUNTIME" which is still needed to keep the opensource test passing as it's still running lite tests. * Add a type cast in newBuilder() because without it the code doesn't compile with openjdk javac 1.8 (the compiler can't figure if it's the right type due to complex generic typing). 3. Fix Python tests. * Remove/replace references to <hash_map>. * Suppress more warnings in setup.py. * Replace incorrect header inclusion for google/protobuf/proto_api.h. * Add strings::EndsWith to google/protobuf/stubs/strutil.h because it's referenced in the updated python C extension code. * Replace proto2 with google::protobuf. The proto2 name is leaked to opensource because we removed the subsitition rule for proto2 namespace but only fixed C++ source code and forgot to update python C extension code.
* Merge master branch.Feng Xiao2018-08-083-8/+3
|\
| * Merge branch '3.6.x' into merge-3-6-xAdam Cozzette2018-08-011-1/+1
| |\
| | * Updated version numbers to 3.6.1Adam Cozzette2018-07-271-1/+1
| | |
| | * fix python cpp kokoro buildYilun Chong2018-07-151-1/+2
| | |
| * | pyext needs c++11 in linux and mac. (#4930)Arun Olappamanna Vasudevan2018-07-231-6/+1
| | |
| * | Remove/replace travis references (#4953)Feng Xiao2018-07-221-1/+1
| | | | | | | | | | | | * Remove/replace travis references.
* | | Down-integrate from google3.Feng Xiao2018-08-0850-849/+2328
|/ /
* | fix python cpp kokoro buildYilun Chong2018-07-121-1/+2
| |
* | Add Python 3.7 compatibility (#4862)Ben Webb2018-07-125-6/+6
| | | | | | | | | | | | Compilation of Python wrappers fails with Python 3.7 because the Python folks changed their C API such that PyUnicode_AsUTF8AndSize() now returns a const char* rather than a char*. Add a patch to work around. Relates #4086.
* | Update message_module.cc (#4835)Thomas Colthurst2018-07-031-0/+9
| | | | | | | | | | | | | | | | * Update message_module.cc Add missing piece from pull request #4698: actually initialize the new API object. * Update message_module.cc
* | Fix capsule name. (#4836)Thomas Colthurst2018-06-291-1/+1
| | | | | | Internal convert file was broken. Change the capsule to the correct name
* | Merge pull request #4827 from acozzette/merge-3-6-xAdam Cozzette2018-06-252-5/+3
|\ \ | | | | | | Merge 3.6.x branch into master
| * | Merge branch '3.6.x' into merge-3-6-xAdam Cozzette2018-06-252-5/+3
| |\|
| | * Always add -std=c++11 for mac (#4684)Paul Yang2018-05-251-4/+2
| | |
| | * Update version number to 3.6.0Jisi Liu2018-05-141-1/+1
| | |
* | | Update minimal Python version to 2.7 (#4207)Yuchen Xie2018-06-254-13/+5
|/ /
* | global __version__ In setup.py (#4753)cclauss2018-06-251-0/+1
| | | | | | This change helps both humans and linters to understand the unusual method of instantiating this global variable.
* | import inspect (#3507)cclauss2018-06-111-0/+3
| | | | | | Inspect is used five times on line 65-74 without being imported.
* | Introduce Proto C API; based on cl/198113115 by amauryfaThomas Colthurst2018-05-304-1/+137
|/
* Fix python ext build on kokoro (#4527)Yilun Chong2018-05-031-0/+2
|
* Add __init__.py files to compiler and util subpackages (#4117)Thomas Hisch2018-04-093-9/+1
| | | | | | The compiler and util subpackages are created by the build_py class in setup.py. This has caused an issue in the protobuf package in conda-forge (https://github.com/conda-forge/protobuf-feedstock/issues/40), which is fixed by this commit.
* For windows, all python version should use /MT (#4468)Paul Yang2018-04-061-3/+1
|
* Merge branch (#4466)Paul Yang2018-04-022-5/+23
| | | | | | | | * Fix setup.py for windows build. * Bump version number to 3.5.2 * Cat the test-suite.log on errors for presubits
* Removed unused variables in repeated_scalar_container.ccAdam Cozzette2018-03-201-12/+0
|
* Removed unused code pertaining to shared_ptrAdam Cozzette2018-03-201-7/+0
|
* Added pyext/thread_unsafe_shared_ptr.hAdam Cozzette2018-03-201-0/+104
|
* Removed unrecognized option from no_package.protoAdam Cozzette2018-03-201-3/+1
|
* Include no_package.proto in Python testAdam Cozzette2018-03-141-0/+1
|
* Merge branch 'master' into down-integrateAdam Cozzette2018-03-131-4/+9
|\
| * Only check filenames when end with .py in _CalledFromGeneratedFile() (#4262)Jie Luo2018-02-091-4/+9
| | | | | | | | * Cython's stack does not have .py file name. Only check filenames when end with .py for _CalledFromGeneratedFile()
* | Integrated internal changes from GoogleAdam Cozzette2018-03-1325-403/+746
|/
* Merge remote-tracking branch 'origin/3.5.x' into masterJisi Liu2018-01-031-6/+3
|\
| * Fix uploading binary wheel.Jisi Liu2017-12-221-6/+3
| | | | | | | | | | The script now takes two prompt for user name and password. One single input redirection no longer works.
* | Merge remote-tracking branch 'origin/3.5.x' into masterJisi Liu2018-01-033-3/+3
|\|
| * Disable pip cache when testing uploaded packagesJisi Liu2017-12-221-1/+2
| | | | | | | | | | | | | | Otherwise, pip complains "cannot find a version satisfies the requirement." I suspect it was due to caching issues. I usued to manually add a `sleep 30` between the upload and the installation test which is quite unstable.
| * Update version number to 3.5.1Jisi Liu2017-12-191-1/+1
| |
| * Fix file permission for python package.Feng Xiao2017-12-151-0/+1
| | | | | | | | `umask 0022` makes sure the created package will be accessible by all users.
| * Remove py2.6 support.Jisi Liu2017-12-141-1/+0
| |
* | Merge pull request #4030 from cyyber/masterFeng Xiao2017-12-202-13/+7
|\ \ | | | | | | Calling Keychecker before checking key in MessageMap
| * | Calling Keychecker before checking key in MessageMapcyyber2017-12-152-13/+7
| | |
* | | Merge pull request #4053 from xfxyjwf/fixumaskFeng Xiao2017-12-151-0/+1
|\ \ \ | | | | | | | | Fix file permission for python package.
| * | | Fix file permission for python package.Feng Xiao2017-12-141-0/+1
| |/ / | | | | | | | | | `umask 0022` makes sure the created package will be accessible by all users.