Skip to content

Commit

Permalink
Release to public PyPI - not private PyPI (#373)
Browse files Browse the repository at this point in the history
* Release to public PyPI - not private PyPI

* Bump to version 0.3.0.dev1

* Ad-hoc get_version_match function
  • Loading branch information
RobPasMue authored Feb 8, 2023
1 parent a8b05bd commit 85e1c76
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 5 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/ci_cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -159,12 +159,12 @@ jobs:
needs: [package, macos-build]
runs-on: ubuntu-latest
steps:
- name: Release to the private PyPI repository
uses: pyansys/actions/release-pypi-private@v3
- name: Release to the public PyPI repository
uses: pyansys/actions/release-pypi-public@v3
with:
library-name: ${{ env.PACKAGE_NAME }}
twine-username: "__token__"
twine-token: ${{ secrets.PYANSYS_PYPI_PRIVATE_PAT }}
twine-token: ${{ secrets.PYPI_TOKEN }}

- name: Release to GitHub
uses: pyansys/actions/release-github@v3
Expand Down
11 changes: 10 additions & 1 deletion doc/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,20 @@
from datetime import datetime

import pyvista
from ansys_sphinx_theme import ansys_favicon, get_version_match, pyansys_logo_black
from ansys_sphinx_theme import ansys_favicon, pyansys_logo_black
from sphinx_gallery.sorting import FileNameSortKey

from ansys.meshing.prime import __version__


def get_version_match(semver: str) -> str:
"""Ad-hoc method from ansys-sphinx-theme"""
if "dev" in semver:
return "dev"
major, minor, _ = semver.split(".")
return ".".join([major, minor])


# Project information
project = 'ansys-meshing-prime'
copyright = f"(c) {datetime.now().year} ANSYS, Inc. All rights reserved"
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "flit_core.buildapi"

[project]
name = "ansys-meshing-prime"
version = "0.3.0.dev0"
version = "0.3.0.dev1"
description = "PyPrimeMesh provides a python client to Ansys Prime Server. Ansys Prime Server delivers core Ansys meshing technology."
readme = "README.md"
requires-python = ">=3.7,<4"
Expand Down

0 comments on commit 85e1c76

Please sign in to comment.