Skip to content

Commit

Permalink
Update versions
Browse files Browse the repository at this point in the history
  • Loading branch information
JieXiong9119 committed Sep 20, 2023
1 parent f1cd0b6 commit f6fe4d0
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 7 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,12 @@ jobs:
cd bsyncpy
poetry run python bsyncpy_generator.py BuildingSync-2.4.xsd
- name: Run Generator (BuildingSync 2.5)
run: |
curl -L -o bsyncpy/BuildingSync-2.5.xsd https://github.com/BuildingSync/schema/releases/download/v2.5.0/BuildingSync.xsd
cd bsyncpy
poetry run python bsyncpy_generator.py BuildingSync-2.5.xsd
- name: Run Generator (BuildingSync Develop V2)
run: |
curl -L -o bsyncpy/BuildingSync-develop-v2.xsd https://raw.githubusercontent.com/BuildingSync/schema/develop-v2/BuildingSync.xsd
Expand Down
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

![Build Status](https://github.com/BuildingSync/bsyncpy/actions/workflows/ci.yml/badge.svg?branch=develop)

Current BuildingSync version: `2.4.0`.
Current BuildingSync version: `2.5.0`.

## Installing

Expand All @@ -12,9 +12,9 @@ Current BuildingSync version: `2.4.0`.
- `poetry install`
- `poetry run pre-commit install`
- Download, copy, or curl a BuildingSync schema into `bsyncpy/bsyncpy`
- `curl -L -o bsyncpy/BuildingSync-2.4.xsd https://github.com/BuildingSync/schema/releases/download/v2.4.0/BuildingSync.xsd`
- `curl -L -o bsyncpy/BuildingSync-2.5.xsd https://github.com/BuildingSync/schema/releases/download/v2.5.0/BuildingSync.xsd`
- cd into `bsyncpy/bsyncpy`
- Run generator: `poetry run python bsyncpy_generator.py BuildingSync-2.4.xsd`
- Run generator: `poetry run python bsyncpy_generator.py BuildingSync-2.5.xsd`
- Go back to the root `bsyncpy` and run tests: `poetry run pytest`
- Make sure formatting is good: `poetry run pre-commit run --all-files`
- On commit, pre-commit should run again
Expand All @@ -28,7 +28,7 @@ from bsyncpy import bsync

# Create a root and set the version attribute
root = bsync.BuildingSync()
root.set('version', '2.4.0')
root.set('version', '2.5.0')

# Valid element attributes can also be passed in as kwargs
f = bsync.Facilities(bsync.Facilities.Facility(ID='Facility-1'))
Expand All @@ -45,7 +45,7 @@ with open('output.xml', 'wb+') as f:
*Output*
```xml
<?xml version="1.0" encoding="UTF-8"?>
<BuildingSync version="2.4.0">
<BuildingSync version="2.5.0">
<Facilities>
<Facility ID="Facility-1"/>
</Facilities>
Expand Down
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
[tool.poetry]
name = "bsyncpy"
version = "0.3.0-alpha.0"
version = "0.3.0"
description = "Tools to autogenerate a Python SDK for BuildingSync given an XSD"
authors = ["Joel Bender <[email protected]>", "Nicholas Long <[email protected]>"]
authors = ["Joel Bender <[email protected]>", "Nicholas Long <[email protected]>", "Jie Xiong <[email protected]>"]

[tool.poetry.dependencies]
python = "^3.7.9"
Expand Down

0 comments on commit f6fe4d0

Please sign in to comment.