Skip to content

Commit

Permalink
Prepare for version 0.6.0 (#104)
Browse files Browse the repository at this point in the history
* update dependencies with `poetry update`

* argh, missed a spot to update antlr!

* update dependencies once more

* use explicit newline when saving from model.py (#105)

* newest hottest dependencies

* update changelog
  • Loading branch information
vtnate authored Nov 14, 2024
1 parent b598c90 commit b90c40a
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 26 deletions.
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
# Changelog

## Version 0.6.0
### What's Changed
* Use Mblv11 by @vtnate in https://github.com/urbanopt/modelica-builder/pull/92
* Support Python 3.13 by @vtnate in https://github.com/urbanopt/modelica-builder/pull/99
* Bump Antlr patch version by @vtnate in https://github.com/urbanopt/modelica-builder/pull/101
* Use explicit newline when saving from model.py by @vtnate in https://github.com/urbanopt/modelica-builder/pull/105


**Full Changelog**: https://github.com/urbanopt/modelica-builder/compare/v0.5.2...v0.6.0

## Version 0.5.2
### What's Changed
* build(deps): bump jinja2 from 3.1.2 to 3.1.3 by @dependabot in https://github.com/urbanopt/modelica-builder/pull/84
Expand Down
5 changes: 1 addition & 4 deletions modelica_builder/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -433,10 +433,7 @@ def save_as(self, filename):
:param filename: string, name of file
"""
result = self.execute()
# Setting newline=None here means any \n we added will be translated
# to the native OS's line separator:
# https://docs.python.org/3.6/library/functions.html#open
with open(filename, 'wt', newline=None) as f:
with open(filename, 'wt', newline='\n') as f:
f.write(result)

# update the source link
Expand Down
40 changes: 20 additions & 20 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,10 @@ classifiers = [

[tool.poetry.dependencies]
# Urbanopt SDK requires Python 3.10 as of UOv0.9.0
# https://python-poetry.org/docs/dependency-specification/
python = ">=3.9, <3.14"
antlr4-python3-runtime = "4.13.1"
jinja2 = "3.1.4"
antlr4-python3-runtime = "4.13.2"
jinja2 = "~3.1.4"
pathspec = "^0.11.2"
certifi = "^2024.8.30"

Expand Down

0 comments on commit b90c40a

Please sign in to comment.