Skip to content

Commit 1c612a3

Browse files
committed
feat: allow for public release to PyPI
1 parent f4b6f51 commit 1c612a3

File tree

2 files changed

+6
-21
lines changed

2 files changed

+6
-21
lines changed

.github/workflows/ci_cd.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -205,12 +205,12 @@ jobs:
205205
needs: [build-library]
206206
runs-on: ubuntu-latest
207207
steps:
208-
- name: "Release to the private PyPI repository"
209-
uses: ansys/actions/release-pypi-private@v4
208+
- name: "Release to the public PyPI repository"
209+
uses: ansys/actions/release-pypi-public@v4
210210
with:
211211
library-name: ${{ env.PACKAGE_NAME }}
212212
twine-username: "__token__"
213-
twine-token: ${{ secrets.PYANSYS_PYPI_PRIVATE_PAT }}
213+
twine-token: ${{ secrets.PYPI_TOKEN }}
214214

215215
- name: "Release to GitHub"
216216
uses: ansys/actions/release-github@v4

doc/source/getting-started/index.rst

Lines changed: 3 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -58,20 +58,6 @@ Then, install PyDYNA with this command:
5858
5959
python -m pip install ansys-dyna-core
6060
61-
.. caution::
62-
63-
PyDYNA is currently hosted in a private PyPI repository. You must provide the index
64-
URL to the private PyPI repository: ``https://pkgs.dev.azure.com/pyansys/_packaging/pyansys/pypi/simple/``.
65-
66-
If access to this package registry is needed, email `[email protected] <mailto:[email protected]>`_
67-
to request access. The PyAnsys team can provide you with a read-only token.
68-
69-
Once you have the token, run this command, replacing ``${PRIVATE_PYPI_ACCESS_TOKEN}`` with the
70-
read-only token:
71-
72-
.. code:: bash
73-
74-
pip install ansys-dyna-core --index-url=https://${PRIVATE_PYPI_ACCESS_TOKEN}@pkgs.dev.azure.com/pyansys/_packaging/pyansys/pypi/simple/
7561
7662
Install in developer mode
7763
~~~~~~~~~~~~~~~~~~~~~~~~~
@@ -94,10 +80,9 @@ Start by cloning and installing the repository with these commands:
9480
Install in offline mode
9581
~~~~~~~~~~~~~~~~~~~~~~~
9682

97-
If you lack an internet connection on your installation machine (or you do not have access
98-
to the private Ansys PyPI packages repository), you should install PyDYNA by downloading
99-
the wheelhouse archive for your corresponding machine architecture from the
100-
`Releases Page <https://github.com/pyansys/pydyna/releases>`_.
83+
If you lack an internet connection on your installation machine, you should install
84+
PyDYNA by downloading the wheelhouse archive for your corresponding machine
85+
architecture from the `Releases Page <https://github.com/pyansys/pydyna/releases>`_.
10186

10287
Each wheelhouse archive contains all the Python wheels necessary to install
10388
PyDYNA from scratch on Windows and Linux for Python 3.8 through 3.11. You can install

0 commit comments

Comments
 (0)