Skip to content

Commit 25d024f

Browse files
committed
Merge branch 'main' into release/0.3
2 parents da88fd3 + df59629 commit 25d024f

File tree

6 files changed

+33
-23
lines changed

6 files changed

+33
-23
lines changed

.github/workflows/ci_cd.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
name: "Documentation style"
2525
runs-on: ubuntu-latest
2626
steps:
27-
- uses: ansys/actions/doc-style@v6
27+
- uses: ansys/actions/doc-style@v7
2828
with:
2929
token: ${{ secrets.GITHUB_TOKEN }}
3030

@@ -46,7 +46,7 @@ jobs:
4646
- name: Setup headless display
4747
uses: pyvista/setup-headless-display-action@v2
4848

49-
- uses: ansys/actions/tests-pytest@v6
49+
- uses: ansys/actions/tests-pytest@v7
5050
with:
5151
python-version: ${{ matrix.python-version }}
5252

@@ -56,7 +56,7 @@ jobs:
5656
needs: [doc-style]
5757
steps:
5858
- name: Build project documentation
59-
uses: ansys/actions/doc-build@v6
59+
uses: ansys/actions/doc-build@v7
6060
with:
6161
python-version: ${{ env.MAIN_PYTHON_VERSION }}
6262
dependencies: "libegl1"
@@ -67,7 +67,7 @@ jobs:
6767
needs: [doc-build]
6868
if: github.ref == 'refs/heads/main'
6969
steps:
70-
- uses: ansys/actions/doc-deploy-dev@v6
70+
- uses: ansys/actions/doc-deploy-dev@v7
7171
with:
7272
cname: ${{ env.DOCUMENTATION_CNAME }}
7373
token: ${{ secrets.GITHUB_TOKEN }}
@@ -487,7 +487,7 @@ jobs:
487487
needs: [release, doc-build]
488488
steps:
489489
- name: Deploy the stable documentation
490-
uses: ansys/actions/doc-deploy-stable@v6
490+
uses: ansys/actions/doc-deploy-stable@v7
491491
with:
492492
cname: ${{ env.DOCUMENTATION_CNAME }}
493493
token: ${{ secrets.GITHUB_TOKEN }}

.pre-commit-config.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ repos:
1313
- --line-length=88
1414

1515
- repo: https://github.com/psf/black
16-
rev: 24.4.2
16+
rev: 24.8.0
1717
hooks:
1818
- id: black
1919
args:
@@ -26,7 +26,7 @@ repos:
2626
files: '\.py$'
2727

2828
- repo: https://github.com/PyCQA/flake8
29-
rev: 7.1.0
29+
rev: 7.1.1
3030
hooks:
3131
- id: flake8
3232

@@ -54,12 +54,12 @@ repos:
5454

5555
# this validates our github workflow files
5656
- repo: https://github.com/python-jsonschema/check-jsonschema
57-
rev: 0.29.1
57+
rev: 0.29.2
5858
hooks:
5959
- id: check-github-workflows
6060

6161
- repo: https://github.com/ansys/pre-commit-hooks
62-
rev: v0.3.1
62+
rev: v0.4.3
6363
hooks:
6464
- id: add-license-headers
6565
args:

doc/source/conf.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
import shutil
66

77
from ansys_sphinx_theme import get_version_match
8-
from ansys_sphinx_theme import pyansys_logo_black as logo
98

109
from ansys.tools.installer import __version__
1110

@@ -17,8 +16,7 @@
1716
cname = os.getenv("DOCUMENTATION_CNAME", default="nocname.com")
1817
switcher_version = get_version_match(__version__)
1918

20-
# Select desired logo, theme, and declare the html title
21-
html_logo = logo
19+
# Select desired theme, and declare the html title
2220
html_theme = "ansys_sphinx_theme"
2321
html_short_title = html_title = "Ansys Python Manager"
2422

@@ -30,6 +28,7 @@
3028
"doc_path": "doc/source",
3129
}
3230
html_theme_options = {
31+
"logo": "pyansys",
3332
"switcher": {
3433
"json_url": f"https://{cname}/versions.json",
3534
"version_match": switcher_version,

pyproject.toml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -36,27 +36,27 @@ dynamic = ["version"]
3636
[project.optional-dependencies]
3737
tests = [
3838
"packaging==24.1",
39-
"PyGithub==2.3.0",
39+
"PyGithub==2.4.0",
4040
"appdirs==1.4.4",
4141
"requests==2.32.3",
4242
"PySide6==6.7.2",
4343
"ansys-tools-path==0.6.0",
4444
"pytest==8.3.2",
4545
"pytest-cov==5.0.0",
4646
"pytest-qt==4.4.0",
47-
"setuptools==72.1.0",
47+
"setuptools==74.0.0",
4848
]
4949
doc = [
5050
"Sphinx==8.0.2",
51-
"ansys-sphinx-theme==0.16.6",
51+
"ansys-sphinx-theme==1.0.7",
5252
"sphinx-copybutton==0.5.2",
5353
"sphinx_design==0.6.1",
54-
"sphinx_toolbox==3.7.0",
54+
"sphinx_toolbox==3.8.0",
5555
]
5656
freeze = [
57-
"pyinstaller==6.9.0",
57+
"pyinstaller==6.10.0",
5858
"packaging==24.1",
59-
"PyGithub==2.3.0",
59+
"PyGithub==2.4.0",
6060
"appdirs==1.4.4",
6161
"requests==2.32.3",
6262
"PySide6==6.7.2",

src/ansys/tools/installer/constants.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@
225225
"Python 3.9": "3.9.13",
226226
"Python 3.10": "3.10.11",
227227
"Python 3.11": "3.11.9",
228-
"Python 3.12": "3.12.4",
228+
"Python 3.12": "3.12.5",
229229
}
230230

231231
CONDA_PYTHON_VERSION = "24.1.2-0"

src/ansys/tools/installer/installed_table.py

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -541,6 +541,16 @@ def launch_cmd(
541541
always_use_pip : bool, default: False
542542
Whether to always use pip for the command or not.
543543
"""
544+
path = os.environ["PATH"].split(";")
545+
altered_path = path.copy()
546+
for p in path:
547+
if (
548+
"Ansys Python Manager\_internal" in p
549+
or "ansys_python_manager\_internal" in p
550+
):
551+
altered_path.remove(p)
552+
myenv = ";".join(altered_path)
553+
544554
# Handle unexpected bool parameter for linux
545555
if is_linux_os() and isinstance(extra, bool):
546556
extra = ""
@@ -567,7 +577,8 @@ def launch_cmd(
567577

568578
if is_vanilla_python and not is_venv:
569579
scripts_path = os.path.join(py_path, "Scripts")
570-
new_path = f"{py_path};{scripts_path};%PATH%"
580+
581+
new_path = f"{py_path};{scripts_path};{myenv}"
571582

572583
if extra:
573584
cmd = f"&& {extra}"
@@ -591,7 +602,7 @@ def launch_cmd(
591602
run_linux_command(py_path, extra, True)
592603
else:
593604
subprocess.call(
594-
f'start {min_win} cmd /K "{py_path}\\Scripts\\activate.bat && cd %userprofile% {cmd}"',
605+
f'start {min_win} cmd /K "set PATH={myenv} && {py_path}\\Scripts\\activate.bat && cd %userprofile% {cmd}"',
595606
shell=True,
596607
)
597608
elif not is_vanilla_python and is_venv:
@@ -608,7 +619,7 @@ def launch_cmd(
608619
run_linux_command_conda(py_path, extra, True)
609620
else:
610621
subprocess.call(
611-
f'start {min_win} cmd /K "{miniforge_path}\\Scripts\\activate.bat && conda activate {py_path} && cd %userprofile% {cmd}"',
622+
f'start {min_win} cmd /K "set PATH={myenv} && {miniforge_path}\\Scripts\\activate.bat && conda activate {py_path} && cd %userprofile% {cmd}"',
612623
shell=True,
613624
)
614625
else:
@@ -625,6 +636,6 @@ def launch_cmd(
625636
run_linux_command_conda(py_path, extra, False)
626637
else:
627638
subprocess.call(
628-
f'start {min_win} cmd /K "{miniforge_path}\\Scripts\\activate.bat && conda activate {py_path} && cd %userprofile% {cmd}"',
639+
f'start {min_win} cmd /K "set PATH={myenv} && {miniforge_path}\\Scripts\\activate.bat && conda activate {py_path} && cd %userprofile% {cmd}"',
629640
shell=True,
630641
)

0 commit comments

Comments
 (0)