Skip to content

Commit 9a70921

Browse files
authored
fix: proper repo location on autoupdate (#152)
1 parent d79afec commit 9a70921

File tree

13 files changed

+74
-33
lines changed

13 files changed

+74
-33
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+)

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: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,11 @@ freeze = [
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/VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.3.dev0
1+
0.3.dev0

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)