You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Run generator: `poetry run python bsyncpy_generator.py BuildingSync-2.4.xsd`
14
+
- Go back to the root `bsyncpy` and run tests: `poetry run pytest`
16
15
- Make sure formatting is good: `poetry run pre-commit run --all-files`
17
16
- On commit, pre-commit should run again
18
17
@@ -21,11 +20,11 @@ Currently generated by BuildingSync version:
21
20
*Input*
22
21
```python
23
22
from lxml import etree
24
-
frombsyncimport bsync
23
+
frombsyncpyimport bsync
25
24
26
25
# Create a root and set the version attribute
27
26
root = bsync.BuildingSync()
28
-
root.set('version', '2.3.0')
27
+
root.set('version', '2.4.0')
29
28
30
29
# Valid element attributes can also be passed in as kwargs
31
30
f = bsync.Facilities(bsync.Facilities.Facility(ID='Facility-1'))
@@ -42,7 +41,7 @@ with open('output.xml', 'wb+') as f:
42
41
*Output*
43
42
```xml
44
43
<?xml version="1.0" encoding="UTF-8"?>
45
-
<BuildingSyncversion="2.3.0">
44
+
<BuildingSyncversion="2.4.0">
46
45
<Facilities>
47
46
<FacilityID="Facility-1"/>
48
47
</Facilities>
@@ -52,3 +51,12 @@ with open('output.xml', 'wb+') as f:
52
51
## Comprehensive example
53
52
54
53
Check out our example Jupyter Notebook [here](https://nbviewer.jupyter.org/github/BuildingSync/schema/blob/develop-v2/docs/notebooks/bsync_examples/Small-Office-Level-1.ipynb).
54
+
55
+
56
+
# Updating Version
57
+
58
+
* See the notes above on downloading and generating the new bsync.py file.
59
+
* Bump version in `pyproject.toml` file
60
+
* Add CHANGELOG entry
61
+
* Update (or add) generator test in `.github/ci.yml`
62
+
* Update this README with the latest version of testing.
0 commit comments