Skip to content
This repository was archived by the owner on Nov 17, 2025. It is now read-only.

Commit 3487b54

Browse files
committed
Merge branch 'main' into release/0.4
2 parents b90693c + 52439e1 commit 3487b54

File tree

4 files changed

+25
-41
lines changed

4 files changed

+25
-41
lines changed

.github/workflows/ci_cd.yml

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,9 @@ jobs:
3737
os: macos-latest
3838
steps:
3939
- name: "Build wheelhouse and perform smoke test"
40-
uses: ansys/actions/build-wheelhouse@v4
40+
uses: ansys/actions/build-wheelhouse@v5
4141
with:
4242
library-name: ${{ env.PACKAGE_NAME }}
43-
library-namespace: ${{ env.PACKAGE_NAMESPACE }}
4443
operating-system: ${{ matrix.os }}
4544
python-version: ${{ matrix.python-version }}
4645

@@ -61,7 +60,7 @@ jobs:
6160
steps:
6261
- uses: actions/checkout@v4
6362
- name: Setup Python
64-
uses: actions/setup-python@v4
63+
uses: actions/setup-python@v5
6564
with:
6665
python-version: ${{ env.MAIN_PYTHON_VERSION }}
6766

@@ -82,7 +81,7 @@ jobs:
8281
runs-on: ubuntu-latest
8382
steps:
8483
- name: Ansys documentation style checks
85-
uses: ansys/actions/doc-style@v4
84+
uses: ansys/actions/doc-style@v5
8685
with:
8786
token: ${{ secrets.GITHUB_TOKEN }}
8887

@@ -92,7 +91,7 @@ jobs:
9291
needs: [docs-style]
9392
steps:
9493
- name: "Run Ansys documentation building action"
95-
uses: ansys/actions/doc-build@v4
94+
uses: ansys/actions/doc-build@v5
9695
with:
9796
python-version: ${{ env.MAIN_PYTHON_VERSION }}
9897
dependencies: "build-essential zip pandoc texlive-latex-extra latexmk texlive-pstricks"
@@ -103,7 +102,7 @@ jobs:
103102
runs-on: ubuntu-latest
104103
steps:
105104
- name: Build library source and wheel artifacts
106-
uses: ansys/actions/build-library@v4
105+
uses: ansys/actions/build-library@v5
107106
with:
108107
library-name: ${{ env.PACKAGE_NAME }}
109108
python-version: ${{ env.MAIN_PYTHON_VERSION }}
@@ -115,14 +114,14 @@ jobs:
115114
runs-on: ubuntu-latest
116115
steps:
117116
- name: Release to the public PyPI repository
118-
uses: ansys/actions/release-pypi-public@v4
117+
uses: ansys/actions/release-pypi-public@v5
119118
with:
120119
library-name: ${{ env.PACKAGE_NAME }}
121120
twine-username: "__token__"
122121
twine-token: ${{ secrets.PYPI_TOKEN }}
123122

124123
- name: Release to GitHub
125-
uses: ansys/actions/release-github@v4
124+
uses: ansys/actions/release-github@v5
126125
with:
127126
library-name: ${{ env.PACKAGE_NAME }}
128127

@@ -133,7 +132,7 @@ jobs:
133132
needs: [package]
134133
steps:
135134
- name: Deploy the latest documentation
136-
uses: ansys/actions/doc-deploy-dev@v4
135+
uses: ansys/actions/doc-deploy-dev@v5
137136
with:
138137
cname: ${{ env.DOCUMENTATION_CNAME }}
139138
token: ${{ secrets.GITHUB_TOKEN }}
@@ -145,8 +144,7 @@ jobs:
145144
needs: [release]
146145
steps:
147146
- name: Deploy the stable documentation
148-
uses: ansys/actions/doc-deploy-stable@v4
147+
uses: ansys/actions/doc-deploy-stable@v5
149148
with:
150149
cname: ${{ env.DOCUMENTATION_CNAME }}
151150
token: ${{ secrets.GITHUB_TOKEN }}
152-
python-version: ${{ env.MAIN_PYTHON_VERSION }}

.pre-commit-config.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
repos:
22
- repo: https://github.com/psf/black
3-
rev: 23.11.0 # IF VERSION CHANGES --> MODIFY "blacken-docs" MANUALLY AS WELL!!
3+
rev: 23.12.1 # IF VERSION CHANGES --> MODIFY "blacken-docs" MANUALLY AS WELL!!
44
hooks:
55
- id: black
66

77
- repo: https://github.com/adamchainz/blacken-docs
88
rev: 1.16.0
99
hooks:
1010
- id: blacken-docs
11-
additional_dependencies: [black==23.11.0]
11+
additional_dependencies: [black==23.12.1]
1212

1313
- repo: https://github.com/PyCQA/flake8
1414
rev: 6.1.0
@@ -22,7 +22,7 @@ repos:
2222
additional_dependencies: ["tomli"]
2323

2424
- repo: https://github.com/pycqa/isort
25-
rev: 5.12.0
25+
rev: 5.13.2
2626
hooks:
2727
- id: isort
2828

@@ -36,7 +36,7 @@ repos:
3636

3737
# this validates our github workflow files
3838
- repo: https://github.com/python-jsonschema/check-jsonschema
39-
rev: 0.27.1
39+
rev: 0.27.3
4040
hooks:
4141
- id: check-github-workflows
4242

pyproject.toml

Lines changed: 9 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,9 @@ version = "0.4.0"
99
description = "Library to locate Ansys products in a local machine."
1010
readme = "README.rst"
1111
requires-python = ">=3.8,<4"
12-
license = {file = "LICENSE"}
13-
authors = [
14-
{name = "ANSYS, Inc.", email = "[email protected]"},
15-
]
16-
maintainers = [
17-
{name = "ANSYS, Inc.", email = "[email protected]"},
18-
]
12+
license = { file = "LICENSE" }
13+
authors = [{ name = "ANSYS, Inc.", email = "[email protected]" }]
14+
maintainers = [{ name = "ANSYS, Inc.", email = "[email protected]" }]
1915

2016
classifiers = [
2117
"Development Status :: 4 - Beta",
@@ -28,28 +24,21 @@ classifiers = [
2824
]
2925
dependencies = [
3026
"platformdirs>=3.6.0",
31-
"click>=8.1.3", # for CLI interface
27+
"click>=8.1.3", # for CLI interface
3228
]
3329

3430

3531
[project.optional-dependencies]
36-
tests = [
37-
"pytest==7.4.3",
38-
"pytest-cov==4.1.0",
39-
"pyfakefs==5.3.0",
40-
]
32+
tests = ["pytest==7.4.4", "pytest-cov==4.1.0", "pyfakefs==5.3.2"]
4133

4234
doc = [
4335
"Sphinx==7.2.6",
4436
"numpydoc==1.6.0",
45-
"ansys-sphinx-theme==0.12.5",
37+
"ansys-sphinx-theme==0.13.0",
4638
"sphinx-copybutton==0.5.2",
4739
]
4840

49-
build = [
50-
"build==1.0.3",
51-
"twine==4.0.2",
52-
]
41+
build = ["build==1.0.3", "twine==4.0.2"]
5342

5443
[tool.flit.module]
5544
name = "ansys.tools.path"
@@ -74,7 +63,7 @@ line_length = 100
7463
default_section = "THIRDPARTY"
7564
src_paths = ["doc", "src", "tests"]
7665

77-
[tools.flake8]
66+
[tool.flake8]
7867
max-line-length = 100
7968

8069
[tool.coverage.run]
@@ -84,7 +73,4 @@ source = ["ansys.tools"]
8473
show_missing = true
8574

8675
[tool.pytest.ini_options]
87-
markers = [
88-
"win32: Mark a test windows only",
89-
"linux: Mark a test linux only"
90-
]
76+
markers = ["win32: Mark a test windows only", "linux: Mark a test linux only"]

src/ansys/tools/path/path.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -287,14 +287,14 @@ def find_mechanical(
287287
--------
288288
On Windows:
289289
290-
>>> from ansys.mechanical.core.mechanical import find_mechanical
290+
>>> from ansys.tools.path import find_mechanical
291291
>>> find_mechanical()
292-
'C:/Program Files/ANSYS Inc/v231/aisol/bin/winx64/AnsysWBU.exe', 23.1
292+
('C:/Program Files/ANSYS Inc/v231/aisol/bin/winx64/AnsysWBU.exe', 23.1)
293293
294294
On Linux:
295295
296296
>>> find_mechanical()
297-
(/usr/ansys_inc/v231/aisol/.workbench, 23.1)
297+
('/usr/ansys_inc/v231/aisol/.workbench', 23.1)
298298
"""
299299
ans_path, version = _get_unified_install_base_for_version(version, supported_versions)
300300
if not ans_path or not version:

0 commit comments

Comments
 (0)