Skip to content

Commit 88dc206

Browse files
committed
Merge branch 'main' into release/0.2
2 parents d015356 + 9a70921 commit 88dc206

File tree

14 files changed

+86
-43
lines changed

14 files changed

+86
-43
lines changed

.github/workflows/label.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -77,9 +77,9 @@ jobs:
7777
issue-number: ${{ github.event.pull_request.number }}
7878
body: |
7979
Please add one of the following labels to add this contribution to the Release Notes :point_down:
80-
- [bug](https://github.com/pyansys/pyproduct-library/pulls?q=label%3Abug+)
81-
- [documentation](https://github.com/pyansys/pyproduct-library/pulls?q=label%3Adocumentation+)
82-
- [enhancement](https://github.com/pyansys/pyproduct-library/pulls?q=label%3Aenhancement+)
83-
- [good first issue](https://github.com/pyansys/pyproduct-library/pulls?q=label%3Agood+first+issue)
84-
- [maintenance](https://github.com/pyansys/pyproduct-library/pulls?q=label%3Amaintenance+)
85-
- [release](https://github.com/pyansys/pyproduct-library/pulls?q=label%3Arelease+)
80+
- [bug](https://github.com/ansys/pyproduct-library/pulls?q=label%3Abug+)
81+
- [documentation](https://github.com/ansys/pyproduct-library/pulls?q=label%3Adocumentation+)
82+
- [enhancement](https://github.com/ansys/pyproduct-library/pulls?q=label%3Aenhancement+)
83+
- [good first issue](https://github.com/ansys/pyproduct-library/pulls?q=label%3Agood+first+issue)
84+
- [maintenance](https://github.com/ansys/pyproduct-library/pulls?q=label%3Amaintenance+)
85+
- [release](https://github.com/ansys/pyproduct-library/pulls?q=label%3Arelease+)

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ repos:
2626
files: '\.py$'
2727

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

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

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

README.rst

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ Ansys Python Manager (QT)
77
:target: https://docs.pyansys.com/
88
:alt: PyAnsys
99

10-
.. |GH-CI| image:: https://github.com/pyansys/python-installer-qt-gui/actions/workflows/ci_cd.yml/badge.svg
11-
:target: https://github.com/pyansys/python-installer-qt-gui/actions/workflows/ci_cd.yml
10+
.. |GH-CI| image:: https://github.com/ansys/python-installer-qt-gui/actions/workflows/ci_cd.yml/badge.svg
11+
:target: https://github.com/ansys/python-installer-qt-gui/actions/workflows/ci_cd.yml
1212
:alt: GH-CI
1313

1414
.. |MIT| image:: https://img.shields.io/badge/License-MIT-yellow.svg
@@ -19,8 +19,8 @@ Ansys Python Manager (QT)
1919
:target: https://github.com/psf/black
2020
:alt: Black
2121

22-
.. |pre-commit-ci| image:: https://results.pre-commit.ci/badge/github/pyansys/python-installer-qt-gui/main.svg
23-
:target: https://results.pre-commit.ci/latest/github/pyansys/python-installer-qt-gui/main
22+
.. |pre-commit-ci| image:: https://results.pre-commit.ci/badge/github/ansys/python-installer-qt-gui/main.svg
23+
:target: https://results.pre-commit.ci/latest/github/ansys/python-installer-qt-gui/main
2424
:alt: pre-commit.ci status
2525

2626
.. readme_start
@@ -37,7 +37,7 @@ you can use to install Python and (optional) PyAnsys packages.
3737
Installation
3838
~~~~~~~~~~~~
3939
Visit the `Releases
40-
<https://github.com/pyansys/python-installer-qt-gui/releases>`__ page and pull
40+
<https://github.com/ansys/python-installer-qt-gui/releases>`__ page and pull
4141
down the latest installer. This is a simple application you can use to install
4242
Python and manage your Python environment.
4343

@@ -48,7 +48,7 @@ You can be up and running with four lines of code:
4848

4949
.. code:: bash
5050
51-
git clone https://github.com/pyansys/python-installer-qt-gui
51+
git clone https://github.com/ansys/python-installer-qt-gui
5252
cd python-installer-qt-gui
5353
pip install pip -U
5454
pip install -e .
@@ -71,7 +71,7 @@ guide`_. You will need to follow these steps:
7171

7272
.. code:: bash
7373
74-
git clone https://github.com/pyansys/python-installer-qt-gui
74+
git clone https://github.com/ansys/python-installer-qt-gui
7575
7676
#. Create a fresh-clean Python environment and activate it. Refer to the
7777
official `venv`_ documentation if you require further information:
@@ -175,12 +175,12 @@ Distributing
175175
------------
176176
This project is vectored to be an open-source project. For the time being, feel
177177
free to distribute it internally, but direct users to visit the `Releases
178-
<https://github.com/pyansys/python-installer-qt-gui/releases>`__ page
178+
<https://github.com/ansys/python-installer-qt-gui/releases>`__ page
179179

180180
Security
181181
--------
182182
The versions that are still supported for security updates can be found at
183-
the `Security guidelines <https://github.com/pyansys/python-installer-qt-gui/blob/main/SECURITY.md>`_
183+
the `Security guidelines <https://github.com/ansys/python-installer-qt-gui/blob/main/SECURITY.md>`_
184184
site. Information on how to report vulenrabilities is also found.
185185

186186

SECURITY.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,5 @@ currently being supported with security updates.
1414
## Reporting a Vulnerability
1515

1616
If you detect a vulnerability, please refer to the
17-
[Issues](https://github.com/pyansys/python-installer-qt-gui/issues)
17+
[Issues](https://github.com/ansys/python-installer-qt-gui/issues)
1818
section of this repository and open an issue.

doc/source/conf.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323

2424
# specify the location of your github repo
2525
html_context = {
26-
"github_user": "pyansys",
26+
"github_user": "ansys",
2727
"github_repo": "python-installer-qt-gui",
2828
"github_version": "main",
2929
"doc_path": "doc/source",
@@ -34,13 +34,12 @@
3434
"version_match": switcher_version,
3535
},
3636
"check_switcher": False,
37-
"github_url": "https://github.com/pyansys/python-installer-qt-gui",
37+
"github_url": "https://github.com/ansys/python-installer-qt-gui",
3838
"show_prev_next": False,
3939
"show_breadcrumbs": True,
4040
"additional_breadcrumbs": [
4141
("PyAnsys", "https://docs.pyansys.com/"),
4242
],
43-
"github_url": "https://github.com/pyansys/python-installer-qt-gui",
4443
}
4544

4645
# Sphinx extensions

doc/source/installer.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Installing the ``Ansys Python Manager``
66

77
First step is installing the ``Ansys Python Manager``. In order to do so, follow the next steps.
88

9-
#. Download the necessary installer from the `latest available release <https://github.com/pyansys/python-installer-qt-gui/releases/latest>`_.
9+
#. Download the necessary installer from the `latest available release <https://github.com/ansys/python-installer-qt-gui/releases/latest>`_.
1010
The file should be named ``Ansys-Python-Manager-Setup-v*.exe``.
1111

1212
#. Execute the installer.

doc/styles/Vocab/ANSYS/accept.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ Ansys Python Manager
44
ansys
55
metapackage
66
miniforge
7+
PyAnsys
78
Python
89
python
910
Spyder

pyproject.toml

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -40,35 +40,39 @@ dynamic = ["version"]
4040
[project.optional-dependencies]
4141
tests = [
4242
"packaging==23.1",
43-
"PyGithub==1.59.0",
43+
"PyGithub==1.59.1",
4444
"appdirs==1.4.4",
4545
"requests==2.31.0",
46-
"PySide6==6.5.1.1",
46+
"PySide6==6.5.2",
4747
"ansys-tools-path==0.3.1",
4848
"pytest==7.4.0",
4949
"pytest-cov==4.1.0",
5050
"pytest-qt==4.2.0",
5151
]
5252
doc = [
53-
"Sphinx==7.0.1",
54-
"ansys-sphinx-theme==0.9.9",
53+
"Sphinx==7.2.4",
54+
"ansys-sphinx-theme==0.10.4",
5555
"sphinx-copybutton==0.5.2",
5656
]
5757
freeze = [
58-
"pyinstaller==5.13.0",
58+
"pyinstaller==5.13.1",
5959
"packaging==23.1",
60-
"PyGithub==1.59.0",
60+
"PyGithub==1.59.1",
6161
"appdirs==1.4.4",
6262
"requests==2.31.0",
63-
"PySide6==6.5.1.1",
63+
"PySide6==6.5.2",
6464
"ansys-tools-path==0.3.1",
6565
]
6666

6767
[tool.flit.module]
6868
name = "ansys.tools.installer"
6969

7070
[project.urls]
71-
Source = "https://github.com/pyansys/python-installer-qt-gui"
71+
Source = "https://github.com/ansys/python-installer-qt-gui"
72+
Issues = "https://github.com/ansys/python-installer-qt-gui/issues"
73+
Discussions = "https://github.com/ansys/python-installer-qt-gui/discussions"
74+
Documentation = "https://installer.docs.pyansys.com/"
75+
Releases = "https://github.com/ansys/python-installer-qt-gui/releases"
7276

7377
[project.scripts]
7478
ansys_python_installer = "ansys.tools.installer:open_gui"

src/ansys/tools/installer/auto_updater.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ def query_gh_latest_release(token=None):
2828
2929
"""
3030
gh = Github(login_or_token=token)
31-
repo = gh.get_repo(f"pyansys/python-installer-qt-gui")
31+
repo = gh.get_repo(f"ansys/python-installer-qt-gui")
3232

3333
# Get the latest release and its tag name
3434
latest_release = repo.get_latest_release()

src/ansys/tools/installer/common.py

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -83,12 +83,16 @@ def get_pkg_versions(pkg_name):
8383
"""
8484
session = requests.Session()
8585
session.verify = False
86-
8786
url = f"https://pypi.python.org/pypi/{pkg_name}/json"
88-
releases = json.loads(requests.get(url).content)["releases"]
89-
all_versions = sorted(releases, key=parse_version, reverse=True)
90-
if pkg_name == "pyansys":
91-
all_versions = [x for x in all_versions if int(x.split(".")[0]) > 0]
87+
88+
try:
89+
releases = json.loads(requests.get(url).content)["releases"]
90+
all_versions = sorted(releases, key=parse_version, reverse=True)
91+
if pkg_name == "pyansys":
92+
all_versions = [x for x in all_versions if int(x.split(".")[0]) > 0]
93+
except requests.exceptions.SSLError:
94+
LOG.warning(f"Cannot connect to {url}... No version listed.")
95+
all_versions = [""]
9296

9397
session.verify = True
9498

0 commit comments

Comments
 (0)