Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prepare for version 0.6.0 #104

Merged
merged 7 commits into from
Nov 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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