Release v2.0.0b1

This commit is contained in:
boukeversteegh
2020-07-04 13:54:07 +02:00
parent cdddb2f42a
commit eaa4f7f5d9
4 changed files with 66 additions and 7 deletions

16
docs/upgrading.md Normal file
View File

@@ -0,0 +1,16 @@
# Upgrade Guide
## [1.2.5] to [2.0.0b1]
### Updated package structures
Generated code now strictly follows the *package structure* of the `.proto` files.
Consequently `.proto` files without a package will be combined in a single `__init__.py` file.
To avoid overwriting existing `__init__.py` files, its best to compile into a dedicated subdirectory.
Upgrading:
- Remove your previously compiled `.py` files.
- Create a new *empty* directory, e.g. `generated` or `lib/generated/proto` etcetera.
- Regenerate your python files into this directory
- Update import statements, e.g. `import ExampleMessage from generated`