Commit Graph

222 Commits

Author SHA1 Message Date
Lidi Zheng 2231c2ba77
Introduce Python import sorting to our sanity test suite (#26768)
* Add isort_code.sh to sanity tests

* Run tools/distrib/isort_code.sh

* Fine tune the import order for relative imports

* Make pylint and project generation happy

* Fix a few corner cases

* Use --check instead of --diff

* The import order impacts test result somehow

* Make isort print diff and check output at the same time

* Let tools/run_tests/python_utils be firstparty library

* Run isort against latest HEAD
2021-07-26 12:31:21 -07:00
Lidi Zheng 5820e152cd
Remove Python 2.7 binary wheel generations (#26691)
* Remove Python 2.7 binary wheels

* Make sure pip won't pick-up newer versions

* Attempt to fix the distribtest

* Fallback to virtualenv==16.7.9 for 34 and 35

* Remove 34 from binary wheel distribtests
2021-07-23 08:20:39 -07:00
Richard Belleville 7ada5552cf
Fix Python xDS User Agent (#26507)
* Use Extension define_macros

* Attempt fix to Windows quoting
2021-06-18 16:43:42 -07:00
Jan Tattermusch 451127740d
Revert "Replace in-house rand with absl::Random for backoff (#26463)" (#26476)
This reverts commit b5191d0930.
2021-06-14 21:56:35 -07:00
Richard Belleville f90716a821
Add Python xDS user agent (#26191)
* Add cpp macro to append wrapped language info to xDS user agent

* Add Python xDS user agent

* fix redefinition error and add macro for wrapped lang version

* clang-format

* Revert xds_api.cc changes

* Use two separate macros

* Yapf

* Regenerate projects

* Include _metadata.py in source distributions

* Attempt to fix quote escaping on Windows

Co-authored-by: Mark D. Roth <roth@google.com>
2021-06-14 16:35:00 -07:00
Esun Kim b5191d0930
Replace in-house rand with absl::Random for backoff (#26463)
* Replace in-house rand with absl::Random for backoff

* Run sanity

* Added bscrypt dependency
2021-06-11 16:29:45 -07:00
Lidi Zheng d0849fdaed
Fix zlib unistd.h import problem (#26374) 2021-05-27 10:58:16 -07:00
donnadionne d3e97d953b
Adding xxhash as a subtree (#25645) 2021-03-11 09:09:40 -08:00
emkornfield ec31fa8455
Standardize all environment variable boolean configuration in python's setup.py (#25444)
* standardize bool flags for grpcio and grpcio.tools

Co-authored-by: Jan Tattermusch <jtattermusch@google.com>
2021-03-10 11:11:07 +01:00
donnadionne 34c8a1f87a
Revert "Adding xxhash as a subtree" (#25630)
This reverts commit 3880393fea.
2021-03-05 09:11:48 +01:00
donnadionne 40bc4624c2
Adding xxhash as a subtree (#25601)
* Squashed 'third_party/xxhash/' content from commit aea11081f3

git-subtree-dir: third_party/xxhash
git-subtree-split: aea11081f349893ec26f86ada22c66e828885083

* Adding xxhash as a subtree
2021-03-04 16:00:51 -08:00
Jan Tattermusch 1dce57f35f
Assorted python wheel build improvements (#25602)
* cleanup unnecessary deps from grpc_artifact_python_manylinux2014_aarch64

* cleanup in grpc_artifact_python dockerfiles

* enable boringssl assembly optimizations when crosscompiling aarch64 linux wheels

* pin manylinux2010 images to keep python27 build

* avoid pip install --upgrade cython when not necessary
2021-03-04 09:54:11 +01:00
Jan Tattermusch fcd43e9030
Crosscompile python aarch64 wheels with dockcross (#25418)
* build aarch64 python wheels via crosscompilation

* yapf format code

* fix shellcheck complaints

* fix python37 aarch64 wheel build

* build python wheels on linux aarch64 with static libstdc++

* yapf format code
2021-03-02 07:32:28 +01:00
Jan Tattermusch 0f791c73ae use boringssl asm optimizations in aarch64 wheel source build 2021-02-15 09:16:03 +01:00
Jorjun 76e82acc9c sanity check on MACOSX_DEPLOYMENT_TARGET
Avoid attempting to ever parse a potential None value on the above environment var, then carry on with Mac OS X specific version checking logic...
2021-01-12 20:17:22 +00:00
Jorjun eba18503cc workaround for Mac OS X Big Sur, Python 3.9 install fail
sysconfig.get_config_var('MACOSX_DEPLOYMENT_TARGET')

returns <str> '11.1' in Python 2.7 and <int> 11 in Python 3.9 causing exception: builtins.TypeError: expected string or bytes-like object
2020-12-15 13:23:07 +00:00
Richard Belleville 514dacb107
Merge pull request #24450 from mtorromeo/patch-2
Allow grpcio to be built against system re2
2020-10-20 20:04:32 -07:00
Massimiliano Torromeo 88b5952945 Allow grpcio to be built against system re2 2020-10-20 21:53:38 +02:00
Richard Belleville fbffae6903
Merge pull request #24449 from mtorromeo/patch-1
Do not build with boringssl ASM when using system openssl
2020-10-20 11:50:42 -07:00
Esun Kim 10d58179fe Bump MACOSX_DEPLOYMENT_TARGET to 10.10 for Python 2020-10-19 14:48:43 -07:00
Massimiliano Torromeo 770d1d0a05
Do not build with boringssl ASM when using system openssl 2020-10-16 20:09:49 +02:00
Lidi Zheng 4fa90f42ce Support pre-compiled Python 3.9 wheels 2020-10-07 12:43:45 -07:00
Ben Wolsieffer ad36ff39d3 setup.py: use CXX to get compiler for libatomic check
This allows it to work with a prefixed compiler when cross-compiling.
2020-10-01 14:37:32 -04:00
Esun Kim 3b8044ae4e Use c++ instead of cc 2020-08-27 19:57:07 -07:00
Esun Kim 7dcba1a700 Make check_linker_need_libatomic more robust 2020-08-27 19:55:21 -07:00
Jan Tattermusch 6d6339db34 fix non-bazel build systems 2020-08-20 18:17:21 +02:00
Micah Kornfield 458272602a remove trailing space 2020-08-03 15:47:34 -07:00
Micah Kornfield 474ed0453c fix format setup.py 2020-08-03 15:47:34 -07:00
Micah Kornfield de2e9e5241 remove unused variable 2020-08-03 15:47:34 -07:00
Micah Kornfield 8e501c86f5 Move over to using sources.json from boring.ssl.
- Undo a bunch of hacks in src/boringssl/gen_build_yaml.py
- Store the structued data in YAML/dependencies.py so
  we don't need to recreate the filters.
- Update setup.py accordingly
2020-08-03 15:47:33 -07:00
emkornfield cdf2f2f8a3 Update setup.py
Remove windows.  Use proper filter for mac.
2020-08-03 15:47:33 -07:00
Micah Kornfield 8cd8736c2b address comments 2020-08-03 15:47:33 -07:00
Micah Kornfield 35c0a4cfff Adds option of using ASM for BoringSSL in Python.
- Adds a new environment variable for turning on the build of ASM
  for boring SSL.
- Only enables for x86_64 for now.  I think this is likely the most
  common target and the only machine I have readily accessible.
2020-08-03 15:47:25 -07:00
Lidi Zheng d0fbf25216 Resolve the user warning generated by our setup.py 2020-08-03 10:58:18 -07:00
Donna Dionne 8dd0cb4712 Add support for xDS regex matchers. 2020-07-07 13:17:25 -07:00
Richard Belleville 08e117ae80 Improve build slightly 2020-06-17 16:12:59 -07:00
Lidi Zheng b5ec43e182 Fix a typo in setup.py 2020-06-16 11:00:01 -07:00
Lidi Zheng d98ecdb85c Set version upper bound for protobuf; installs grpcio-tools instead 2020-06-16 11:00:00 -07:00
Lidi Zheng 67f68d7e14 Add an "extras" dependency to grpcio package 2020-06-16 11:00:00 -07:00
Lidi Zheng 682c28eb42 Drop 3.4 from setup.py 2020-04-20 16:30:47 -07:00
Esun Kim de9feb69ab Add dbghelp.lib to windows artifacts 2020-02-16 18:27:22 -08:00
Jan Tattermusch f098606c4a Revert "Revert "Reintroduce #21527 (boringssl submodule unification)""
This reverts commit cca892022b.
2020-01-29 09:18:51 -05:00
hcaseyal cca892022b
Revert "Reintroduce #21527 (boringssl submodule unification)" 2020-01-27 13:46:10 -08:00
Jan Tattermusch e7e5d0198f Revert "Revert "Unify boringssl submodules and use non-developer boringssl cmake build""
This reverts commit fe2242e603.
2020-01-27 05:04:05 -05:00
Jan Tattermusch fe2242e603
Revert "Unify boringssl submodules and use non-developer boringssl cmake build" 2020-01-20 14:27:31 +01:00
Jan Tattermusch 742c61294b use boringssl-with-bazel instead of third_party/boringssl 2020-01-16 03:53:03 -05:00
Esun Kim 5207eba9ff Add abseil 2020-01-03 19:29:55 -08:00
Lidi Zheng 8ab1672c88 Release 3.8 wheels 2019-10-15 15:59:06 -07:00
Esun Kim 4bc9820241 Update comment 2019-10-04 20:41:36 -07:00
Esun Kim 55ae0f6f8d Added libatomic to gRPC python 2019-10-04 16:39:10 -07:00