generated from ansys/template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
179 lines (155 loc) · 4.35 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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"
[tool.poetry]
name = "ansys-grantami-bomanalytics"
description = "Perform compliance and sustainability analysis on materials data stored in Granta MI."
version = "2.2.0dev0"
license = "MIT"
authors = ["ANSYS, Inc. <[email protected]>"]
maintainers = ["ANSYS, Inc. <[email protected]>"]
repository = "https://github.com/ansys/grantami-bomanalytics"
documentation = "https://bomanalytics.grantami.docs.pyansys.com"
readme = "README.rst"
keywords = [
"Ansys",
"Granta MI",
"Bill of Materials",
]
classifiers = [
"License :: OSI Approved :: MIT License",
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Science/Research",
"Topic :: Scientific/Engineering :: Information Analysis",
"Operating System :: Microsoft :: Windows",
"Operating System :: POSIX",
"Operating System :: MacOS",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
]
packages = [
{ include = "ansys", from = "src" }
]
[tool.poetry.dependencies]
python = "^3.10.0"
# Packages for core library
ansys-openapi-common = "^2.0.0"
ansys-grantami-bomanalytics-openapi = { version = "3.1.0", allow-prereleases = true }
xmlschema = ">=3.0.1,<4.0"
# Packages for the examples extra
jupyterlab = { version = ">=3,<5", optional = true }
lxml = { version = ">=4,<6", optional = true }
pandas = { version = "^2.0", optional = true }
tabulate = { version = "^0.9", optional = true }
plotly = { version = "^5.17.0", optional = true }
ipywidgets = { version = "^8.1.1", optional = true }
[tool.poetry.group.dev.dependencies]
# Common packages for test and examples
jupyterlab = ">=3,<5"
lxml = ">=4,<6"
pandas = "^2.0"
tabulate = "^0.9"
pytest = ">=7,<9"
pytest-cov = ">=4,<7"
requests-mock = "^1"
ipython = "^8"
plotly = "^5.17.0"
ipywidgets = "^8.1.1"
mypy = "^1.9.0"
[tool.poetry.group.doc]
optional = true
[tool.poetry.group.doc.dependencies]
# Doc packages
ansys-sphinx-theme = ">=0.12,<1.3"
numpydoc = "^1.6.0"
sphinx = ">=7.1,<9.0"
sphinx-notfound-page = "^1.0.0"
sphinx-copybutton = "^0.5.2"
sphinx-design = ">=0.5,<0.7"
enum_tools = ">=0.11,<0.13"
sphinx-toolbox = "^3.5.0"
jupytext = "^1.15.2"
nbsphinx = "^0.9.3"
[tool.poetry.extras]
examples = [
"lxml",
"tabulate",
"pandas",
"jupyterlab",
"plotly",
"ipywidgets",
]
[tool.mypy]
warn_return_any = true
warn_unused_configs = true
warn_redundant_casts = true
warn_unused_ignores = true
disallow_untyped_defs = true
no_implicit_optional = true
check_untyped_defs = true
show_error_codes = true
files = "src"
explicit_package_bases = true
mypy_path = "$MYPY_CONFIG_FILE_DIR/src"
namespace_packages = true
[tool.pytest.ini_options]
testpaths = "./tests"
markers = [
"""integration: test requires a real database (deselect with '-m \"not integration\"')"""
]
[tool.black]
line-length = 120
[tool.pydocstyle]
convention = "numpy"
[tool.isort]
profile = "black"
force_sort_within_sections = true
line_length = 100
default_section = "THIRDPARTY"
skip_gitignore = true
skip = [".ipython", "cicd", "examples", "examples-dummy"]
src_paths = ["src", "tests"]
[tool.towncrier]
package = "ansys.grantami.bomanalytics"
directory = "doc/changelog.d"
filename = "CHANGELOG.md"
start_string = "<!-- towncrier release notes start -->\n"
underlines = ["", "", ""]
template = "doc/changelog.d/changelog_template.jinja"
title_format = "## [{version}](https://github.com/ansys/grantami-bomanalytics/releases/tag/v{version}) - {project_date}"
issue_format = "[#{issue}](https://github.com/ansys/grantami-bomanalytics/pull/{issue})"
[[tool.towncrier.type]]
directory = "added"
name = "Added"
showcontent = true
[[tool.towncrier.type]]
directory = "changed"
name = "Changed"
showcontent = true
[[tool.towncrier.type]]
directory = "fixed"
name = "Fixed"
showcontent = true
[[tool.towncrier.type]]
directory = "dependencies"
name = "Dependencies"
showcontent = true
[[tool.towncrier.type]]
directory = "miscellaneous"
name = "Miscellaneous"
showcontent = true
[[tool.towncrier.type]]
directory = "documentation"
name = "Documentation"
showcontent = true
[[tool.towncrier.type]]
directory = "maintenance"
name = "Maintenance"
showcontent = true
[[tool.towncrier.type]]
directory = "test"
name = "Test"
showcontent = true