diff --git a/.github/workflows/python-publish-macos.yml b/.github/workflows/python-publish-macos.yml new file mode 100644 index 0000000..72ae735 --- /dev/null +++ b/.github/workflows/python-publish-macos.yml @@ -0,0 +1,35 @@ +name: Upload Python Package for macOS + +on: + release: + types: [created] + +jobs: + deploy: + + runs-on: ${{ matrix.os }} + + strategy: + matrix: + os: [macos-latest] + architecture: [x64] + python-version: [3.6, 3.7, 3.8] + + steps: + - uses: actions/checkout@v2 + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v2 + with: + architecture: ${{ matrix.architecture }} + python-version: ${{ matrix.python-version }} + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install setuptools wheel twine + - name: Build and publish + env: + TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }} + TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }} + run: | + python setup.py bdist_wheel + twine upload dist/* diff --git a/.github/workflows/python-publish-windows.yml b/.github/workflows/python-publish-windows.yml new file mode 100644 index 0000000..88f2a44 --- /dev/null +++ b/.github/workflows/python-publish-windows.yml @@ -0,0 +1,35 @@ +name: Upload Python Package for Windows + +on: + release: + types: [created] + +jobs: + deploy: + + runs-on: ${{ matrix.os }} + + strategy: + matrix: + os: [windows-latest] + architecture: [x64, x86] + python-version: [3.6, 3.7, 3.8] + + steps: + - uses: actions/checkout@v2 + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v2 + with: + architecture: ${{ matrix.architecture }} + python-version: ${{ matrix.python-version }} + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install setuptools wheel twine + - name: Build and publish + env: + TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }} + TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }} + run: | + python setup.py bdist_wheel + twine upload dist/* diff --git a/.github/workflows/python-publish.yml b/.github/workflows/python-publish.yml new file mode 100644 index 0000000..4e1ef42 --- /dev/null +++ b/.github/workflows/python-publish.yml @@ -0,0 +1,31 @@ +# This workflows will upload a Python Package using Twine when a release is created +# For more information see: https://help.github.com/en/actions/language-and-framework-guides/using-python-with-github-actions#publishing-to-package-registries + +name: Upload Python Package + +on: + release: + types: [created] + +jobs: + deploy: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + - name: Set up Python + uses: actions/setup-python@v2 + with: + python-version: '3.x' + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install setuptools wheel twine + - name: Build and publish + env: + TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }} + TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }} + run: | + python setup.py sdist bdist_wheel + twine upload dist/* diff --git a/.travis.yml b/.travis.yml index e0d5deb..a40e3bc 100644 --- a/.travis.yml +++ b/.travis.yml @@ -12,13 +12,3 @@ before_script: script: - ./scripts/format.sh - python -m unittest discover tests -deploy: - provider: pypi - user: worksapplications - password: - secure: "desRZ1KuHoE7asLE2dXsVUB0iqhIsFIkawQjwcUcc14WybRhE1M4K2yRCoVmoizF6EPb50dh1qRChCm1lHKJZKA29s1SxN7xuzN+b1V2yhAcKvix/267O/1pQvb+vB6wTQIojksiG9QPJNRs75wvM0Rz+5/G6wX+WNQovkKODrE7F1gsyW2kvaw194Fc4jLX5GkKbiSpSlqthWja/YcdSkz/xnHP1fH7NEYdOXWTJ2vBmXgKJegsA9+S/GAhezSfurRkcLvijzwZtLfnlso3ToSRVFmn0NaZHK79+eUb4ub/8ojMFQih6/JCyV7StI3nOUgVV13XKvQ65po6XSs2NBydK3VIDVrvvAOw/89EKjB9nKhwxQLPRyCIke+XGPZdvQEEJlMTZjJGWOpYdkX0uBZhGMCTyxzddNeDo9aH2adOw/IywmTB8axd1J+SHfZFnxJNhe+0UEBV1GF87+W49Ks1jmT1QrElqXs65t2T4AMaQCrwkCYtZfiFUGXaoDr6hpaJFNaa8/1i6u9yhWJTTbsvSK1xhxNqb9BCxC3BjCg6tOGeMnhDGxU8xt10i9IrkZHhjiQzQiuzE6K3MAvbE3Y2wPslYuvxwGtsHHtfQ4LIOTu3tl9A+ay1adamolBGh8nTmyaaPIoONRRdFuEW2/W6q8CvWtAYn8lxyQNFdnw=" - distributions: sdist - skip_cleanup: true - skip_existing: true - on: - tags: true