Skip to content

Commit

Permalink
updated github workflow action to use python3
Browse files Browse the repository at this point in the history
  • Loading branch information
Sanjeev Kumar committed Dec 8, 2023
1 parent 6423b79 commit 7c7156d
Show file tree
Hide file tree
Showing 10 changed files with 53 additions and 439 deletions.
68 changes: 42 additions & 26 deletions .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
@@ -1,39 +1,55 @@
# This workflow will upload a Python Package using Twine when a release is created
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python#publishing-to-package-registries

# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.

name: Upload Python Package git maildiff

on:
release:
types: [published]
on: push

permissions:
contents: read

jobs:
deploy:

build-n-publish:
name: Build and publish Python 🐍 distributions 📦 to PyPI
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v3
- uses: actions/checkout@master
- name: Set up Python 3.7
uses: actions/setup-python@v1
with:
python-version: '3.x'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install build
- name: Build package
run: python -m build
- name: Publish package
uses: pypa/gh-action-pypi-publish@master
python-version: 3.7

- name: remove old pip
run: sudo apt remove python-pip

- name: wget get-pip.py
run: wget https://bootstrap.pypa.io/get-pip.py

- name: install pip
run: python3 get-pip.py

- name: setuptools version
run: >-
python3 -c
"import setuptools; from setuptools import build_meta; print('Build meta: {}'.format(build_meta)); print(setuptools.__version__)"
- name: Install pypa/build
run: >-
python3 -m
pip install
build
--user
- name: Build a binary wheel and a source tarball
run: >-
python3 -m
build
--sdist
--wheel
--outdir dist/
.
- name: Publish distribution 📦 to PyPI
if: startsWith(github.ref, 'refs/tags')
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}

284 changes: 0 additions & 284 deletions ez_setup.py

This file was deleted.

Loading

0 comments on commit 7c7156d

Please sign in to comment.