Arun Babu Neelicattu and GitHub
70310c9e8c
pre-commit: add isort hook and apply ( #354 )
2022-03-17 00:01:17 +00:00
Arun Babu Neelicattu and GitHub
18a518efa7
Expose timeout, deadline and metadata parameters from grpclib ( #352 )
2022-03-13 22:34:11 +00:00
Arun Babu Neelicattu and GitHub
62da35b3ea
parser: ensure prefix is separated when traversing ( #353 )
2022-03-12 09:08:03 +00:00
Arun Babu Neelicattu and GitHub
69f4192341
Fix incorrect deprecation warnings on defaults ( #348 )
...
This change ensures that deprecation warnings are only raised when
either a deprecated field is explicitly set or a deprecated message is
initialised.
Resolves : #347
2022-03-11 23:36:14 +00:00
Arun Babu Neelicattu and GitHub
9c1bf25304
tests.generate: stop using asyncio.get_event_loop ( #349 )
...
The use of `asyncio.get_event_loop()` has been deprecated in python 3.10+. We replace this usage with `asyncio.run()` for python 3.7+.
2022-03-03 18:11:57 +00:00
Arun Babu Neelicattu and GitHub
a836fb23bc
Configure pre-commit for project ( #346 )
2022-03-03 18:10:01 +00:00
Arun Babu Neelicattu and GitHub
bd69862a02
test input: use explicit package declaration ( #345 )
2022-03-03 13:34:53 +00:00
Arun Babu Neelicattu and GitHub
a157f05480
Release v2.0.0b2 ( #175 )
2020-11-24 23:04:33 +01:00
Arun Babu Neelicattu and GitHub
a8a082e4e7
Update dependencies and add ci checks for python 3.9 ( #173 )
...
* Update locked dependencies to fix grpcio compile issue with python 3.9
* ci: add python 3.9
2020-11-24 19:28:28 +01:00
Arun Babu Neelicattu and GitHub
bf9412e083
Use poetry-core as PEP 517 build backend ( #108 )
...
This change replaces the use of poetry as the build backend in favour
of the leaner poetry-core. This speeds up PEP-517 builds for source
installs, tox environment setup etc.
2020-10-01 14:45:45 +02:00
Arun Babu Neelicattu and GitHub
0028cc384a
Relax black version constraints ( #146 )
...
This change ensures that the wheel built only requests for the minimum
version of black it requires to function as intended. Without this
change any project that uses betterproto[compiler] would break while
resolving dependencies.
2020-08-31 22:10:57 +02:00
Arun Babu Neelicattu and GitHub
43c134d27c
ci: refactor jobs and improve platform coverage ( #128 )
2020-07-30 14:47:38 +02:00
Arun Babu Neelicattu and GitHub
0cd9510b54
Support deprecated message and fields ( #126 )
2020-07-30 14:47:01 +02:00
Arun Babu Neelicattu and GitHub
beafc812ff
Fix static type checking for grpclib client ( #124 )
...
* Fix static type checking in grpclib client
* Fix python3.6 compatibility issue with dataclasses
2020-07-30 11:30:58 +02:00
Arun Babu Neelicattu and GitHub
3d8c0cb713
grpclib_client: handle trailer-only responses ( #127 )
...
Resolves : #123
2020-07-25 19:57:46 +02:00
Arun Babu Neelicattu and Bouke Versteegh
0ba0692dec
Handle mutable default arguments cleanly
...
When generating code, ensure that default list/dict arguments are
initialised in local scope if unspecified or `None`.
2020-07-11 22:33:44 +02:00
Arun Babu Neelicattu and Bouke Versteegh
42e197f985
Ensure we clean up egg-info directories
2020-07-11 19:51:01 +02:00
Arun Babu Neelicattu and Bouke Versteegh
459d12b24d
Move betterproto → src/betterproto
...
This change avoids some nasty import issues and also ensures that the
right code is tested and arbitrary code is not included when packaging.
2020-07-11 19:51:01 +02:00
Arun Babu Neelicattu and Bouke Versteegh
cebf9176a3
Move betterproto/tests → tests
2020-07-11 19:51:01 +02:00
Arun Babu Neelicattu and Bouke Versteegh
03211604bc
Replace dependency on protoc with grpcio-tools
...
This change removes the dependency on platform provided protobuf tools
in favour of `grpcio-tools` dependency. This makes both development and
compiler use independent from platform dependencies.
2020-07-10 13:16:40 +02:00
Arun Babu Neelicattu
0338fcba29
Ignore commonly used .venv directory
2020-07-07 19:23:38 +02:00
Arun Babu Neelicattu
0f3ad25770
Minor non-functional changes
...
- fix few typos
- remove unused imports
- fix minor code-quality issues
- replace `grpclib._protocols` with `grpclib._typing`
- fix boolean and None assertions in test cases
2020-07-07 19:23:38 +02:00
Arun Babu Neelicattu
a8d8159d27
Add missing async/await keywords when casing
2020-07-07 13:15:46 +02:00