-
Notifications
You must be signed in to change notification settings - Fork 11
/
pyproject.toml
85 lines (78 loc) · 3.17 KB
/
pyproject.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
[tool.poetry]
name = "geojson-modelica-translator"
version = "0.8.0"
description = "Package for converting GeoJSON to Modelica models for urban scale analyses."
authors = ["URBANopt DES Team <[email protected]>"]
license = "BSD-4-Clause"
readme = "README.md"
homepage = "https://docs.urbanopt.net"
repository = "https://github.com/urbanopt/geojson-modelica-translator"
documentation = "https://docs.urbanopt.net/geojson-modelica-translator/"
keywords = ["URBANopt", "Modelica", "GeoJSON", "Physics-based Modeling"]
classifiers = [
"Development Status :: 4 - Beta",
"Environment :: Console",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"Topic :: Scientific/Engineering",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
]
packages = [
{ include = "management" },
{ include = "geojson_modelica_translator"}
]
[tool.poetry.dependencies]
# https://python-poetry.org/docs/dependency-specification/
# Urbanopt SDK requires Python 3.10 as of UOv0.9.0
python = ">=3.10, <3.13"
BuildingsPy = "4.0.0"
click = "^8.1"
geojson = "^3.1"
jinja2 = "^3.1.2"
jsonpath-ng = "~1.6"
jsonschema = "~4.20"
modelica-builder = "^0.5.2rc3"
# modelica-builder = { path = "../modelica-builder", develop = true }
# modelica-builder = { git = "https://github.com/urbanopt/modelica-builder.git", branch = "mblv10"}
pandas = "~2"
requests = "^2.28"
teaser = "0.7.5"
#teaser = { git = "https://github.com/urbanopt/TEASER.git", branch = "development"}
myst-parser = "^4.0.0"
[tool.poetry.dev-dependencies]
coveralls = "~3.3"
# lock the rpds-py to 0.16.2 until we can update due to issue with Python 3.12.x
rpds-py = "0.16.2"
mypy = "~1.8"
pre-commit = "~3.6"
pytest = "~7.4"
pytest-cov = "~4.1"
# don't update sphinx right now
sphinx = "~7.2"
sphinx_rtd_theme = "~2.0"
sphinx-jsonschema = "~1.19"
syrupy = "~4.6"
toml = "~0.10"
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"
[tool.poetry.scripts]
uo_des = 'management.uo_des:cli'
format_modelica_files = 'management.format_modelica_files:fmt_modelica_files'
update_schemas = 'management.update_schemas:update_schemas'
check_sys_params = 'management.check_sys_params:check_sys_params'
[tool.pytest.ini_options]
# There is a bug/issue with pytest and click where the test tries to write to the
# log after the log file has been closed. This causes the test to fail. The --capture=no
# is a workaround for this issue for now see https://github.com/pytest-dev/pytest/issues/5502#issuecomment-1020761655.
addopts = "--capture=no"
log_cli = true
log_cli_level = "DEBUG"
markers = [
"simulation: marks tests that run a simulation with docker/optimica (deselect with '-m \"not simulation\"'). All simulations now require MSL v4.",
"compilation: marks tests that are for compiling a simulation with docker/optimica (deselect with '-m \"not compilation\"'). All simulations now require MSL v4.",
"dymola: mark tests that are for running only in Dymola, which requires a local install and license (deselect with '-m \"not dymola\"').",
"docker: mark tests that are for testing Docker (deselect with '-m \"not docker\"').",
]