diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b6f16b5..54164a0 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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 diff --git a/README.md b/README.md index f8ca3da..efe660d 100644 --- a/README.md +++ b/README.md @@ -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 @@ -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 @@ -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')) @@ -45,7 +45,7 @@ with open('output.xml', 'wb+') as f: *Output* ```xml - + diff --git a/pyproject.toml b/pyproject.toml index d7f084b..d799277 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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 ", "Nicholas Long "] +authors = ["Joel Bender ", "Nicholas Long ", "Jie Xiong "] [tool.poetry.dependencies] python = "^3.7.9"