Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 9 additions & 2 deletions .github/workflows/ci_cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ jobs:


build:
name: Build library
name: Build and publish library
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
Expand All @@ -102,5 +102,12 @@ jobs:
run: |
python -m pip install --upgrade pip setuptools
python -m pip install -r requirements/requirements_build.txt
python -m build
python -m build venv wheel
python -m twine check dist/*
- name: Upload to private PyPi
run: |
python -m twine upload --verbose --skip-existing dist/*.whl
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYANSYS_PYPI_PRIVATE_PAT }}
TWINE_REPOSITORY_URL: https://pkgs.dev.azure.com/pyansys/_packaging/pyansys/pypi/upload
4 changes: 3 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@

from setuptools import find_namespace_packages, setup

# We follow option 3 suggested by PyPA https://packaging.python.org/guides/single-sourcing-package-version/
# We follow option 3 suggested by PyPA
# https://packaging.python.org/guides/single-sourcing-package-version/
# to get the package version.
root = os.path.abspath(os.path.dirname(__file__))
about = {}
Expand All @@ -27,6 +28,7 @@
license_file="LICENSE",
description="A python client for Ansys REP - Remote Execution Platform",
long_description=open("README.rst").read(),
long_description_content_type="text/x-rst",
install_requires=[
"requests>=2.21.0",
"marshmallow>=3.0.0",
Expand Down