diff --git a/.github/workflows/ci_cd.yml b/.github/workflows/ci_cd.yml index cb45d56c..917c9526 100644 --- a/.github/workflows/ci_cd.yml +++ b/.github/workflows/ci_cd.yml @@ -191,15 +191,24 @@ jobs: - name: Display package file list run: ls -R - #- name: Upload to Private PyPi - # run: | - # pip install twine - # python -m twine upload --skip-existing ./**/*.whl - # python -m twine upload --skip-existing ./**/*.tar.gz - # env: - # TWINE_USERNAME: PAT - # TWINE_PASSWORD: ${{ secrets.PYANSYS_PYPI_PRIVATE_PAT }} - # TWINE_REPOSITORY_URL: https://pkgs.dev.azure.com/pyansys/_packaging/pyansys/pypi/upload + - name: Upload to Private PyPi + run: | + pip install twine + python -m twine upload --skip-existing ./**/*.whl + python -m twine upload --skip-existing ./**/*.tar.gz + env: + TWINE_USERNAME: PAT + TWINE_PASSWORD: ${{ secrets.PYANSYS_PYPI_PRIVATE_PAT }} + TWINE_REPOSITORY_URL: https://pkgs.dev.azure.com/pyansys/_packaging/pyansys/pypi/upload + + - name: Upload to Public PyPi + run: | + pip install twine + twine upload --skip-existing ./**/*.whl + python -m twine upload --skip-existing ./**/*.tar.gz + env: + TWINE_USERNAME: __token__ + TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }} - name: Release uses: softprops/action-gh-release@v1 diff --git a/Makefile b/Makefile index 07fefb0f..9241516e 100644 --- a/Makefile +++ b/Makefile @@ -3,9 +3,7 @@ style: @pre-commit run --all-files --show-diff-on-failure install: - @pip uninstall ansys-api-fluent -y @pip install -r requirements/requirements_build.txt - @pip install install_data/ansys_api_fluent-0.1.0-py3-none-any.whl @python -m build @pip install dist/*.whl --force-reinstall diff --git a/README.rst b/README.rst index 25c296d0..1816f15e 100644 --- a/README.rst +++ b/README.rst @@ -57,7 +57,6 @@ with: git clone https://github.com/pyansys/pyfluent-visualization.git cd pyfluent-visualization pip install pip -U - pip install install_data/ansys_api_fluent-0.1.0-py3-none-any.whl # till public release pip install -e . Dependencies diff --git a/doc/source/contributing.rst b/doc/source/contributing.rst index b2bb792e..34cd2c8d 100644 --- a/doc/source/contributing.rst +++ b/doc/source/contributing.rst @@ -22,7 +22,6 @@ development mode: git clone https://github.com/pyansys/pyfluent-visualization.git cd pyfluent-visualization pip install pip -U - pip install install_data/ansys_api_fluent-0.1.0-py3-none-any.whl # till public release pip install -e . Building Documentation diff --git a/install_data/ansys_api_fluent-0.1.0-py3-none-any.whl b/install_data/ansys_api_fluent-0.1.0-py3-none-any.whl deleted file mode 100644 index 319b6546..00000000 Binary files a/install_data/ansys_api_fluent-0.1.0-py3-none-any.whl and /dev/null differ diff --git a/pyproject.toml b/pyproject.toml index d581c9a5..8318598c 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -5,7 +5,7 @@ build-backend = "poetry.core.masonry.api" [tool.poetry] # Check https://python-poetry.org/docs/pyproject/ for all available sections name = "ansys-fluent-visualization" -version = "0.3.dev0" +version = "0.4.0" description = "A python wrapper for ansys Fluent visualization" license = "MIT" authors = ["ANSYS, Inc. "] @@ -25,7 +25,7 @@ packages = [ [tool.poetry.dependencies] python = ">=3.7,<4.0" importlib-metadata = {version = "^4.0", python = "<3.8"} -ansys-fluent-core = { git = "https://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@github.com/pyansys/pyfluent.git", branch = "main" } +ansys-fluent-core = "~=0.10" vtk = [ { url = "https://github.com/pyvista/pyvista-wheels/raw/main/vtk-9.1.0.dev0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl" , markers = "python_version > '3.9' and sys_platform == 'linux'"}, { url = "https://github.com/pyvista/pyvista-wheels/raw/main/vtk-9.1.0.dev0-cp310-cp310-win_amd64.whl" , markers = "python_version > '3.9' and sys_platform != 'linux'"}, diff --git a/tests/test_metadata.py b/tests/test_metadata.py index 5c2f24a9..1810b719 100644 --- a/tests/test_metadata.py +++ b/tests/test_metadata.py @@ -2,4 +2,4 @@ def test_pkg_version(): - assert __version__ == "0.3.dev0" + assert __version__ == "0.4.0"