Skip to main content

No project description provided

Project description

auto-release-to-pypi

This repo is a reference code to automatically push the package to pypi on creating a github release

Add a file in .github\workflows\publish-to-pypi.yml and copy paste below content.

name: Upload Python Package

on:
  release:
    types: [created]

jobs:
  deploy:
    runs-on: ubuntu-20.04

    steps:
    - uses: actions/checkout@v2
    - uses: actions/setup-python@v2
    - 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/*

Step 2: Update PYPI Creds Next add pypi credentials in github secrets.

  • PYPI_USERNAME
  • PYPI_PASSWORD

Step 3: Create a release tag On creationg of release tag, github action will automatically start building wheel file and push them to pypi

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

numops-0.0.4.tar.gz (15.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

numops-0.0.4-py3-none-any.whl (15.4 kB view details)

Uploaded Python 3

File details

Details for the file numops-0.0.4.tar.gz.

File metadata

  • Download URL: numops-0.0.4.tar.gz
  • Upload date:
  • Size: 15.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.8.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.0

File hashes

Hashes for numops-0.0.4.tar.gz
Algorithm Hash digest
SHA256 c8f456dae16df0e7c0b622ca59f5983435a18741955ba68fc456fd399cfdff94
MD5 d9f3b09bdd712c3a763a1ee5d0706aaf
BLAKE2b-256 50966eb2d1c68d5e4aecfdf187f811042bc6f8e26d3bf404d05ebb3a1a3301f0

See more details on using hashes here.

File details

Details for the file numops-0.0.4-py3-none-any.whl.

File metadata

  • Download URL: numops-0.0.4-py3-none-any.whl
  • Upload date:
  • Size: 15.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.8.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.0

File hashes

Hashes for numops-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 2e21892470446fd1e3d22a99cf5a6032b9a5c60f020d603f394eb701ceacead0
MD5 85d928e29f7da25e30f302070127adcb
BLAKE2b-256 b77435db9cc9dbf83254b1bdb04807828ef54ac21effb6d088440937c2829b05

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page