Skip to content

Commit

Permalink
Merge pull request #2 from yoandresaav/remove/fast-api
Browse files Browse the repository at this point in the history
Remove/fast api
  • Loading branch information
yoandresaav authored Jul 29, 2024
2 parents 8b362c1 + bac0d89 commit ac328b8
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 23 deletions.
50 changes: 28 additions & 22 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -1,30 +1,36 @@
name: Upload Python Package to PyPI when a Release is Created
name: Publish to PyPI

on:
release:
types: [created]
types: [published]

permissions:
contents: read

jobs:
pypi-publish:
name: Publish release to PyPI
deploy:

runs-on: ubuntu-latest
environment:
name: pypi
url: https://pypi.org/p/whatsapp-python-cloud-api

environment: release
permissions:
id-token: write
id-token: write # IMPORTANT: this permission is mandatory for trusted publishing

steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.x"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install setuptools wheel
- name: Build package
run: |
python setup.py sdist bdist_wheel # Could also be python -m build
- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.11'
cache: 'pip'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install hatch
- name: Build package
run: hatch build
- name: Test package
run: hatch run test
- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "hatchling.build"

[project]
name="whatsapp-python-cloud-api"
authors = [{name="Yoandre Saavedra", email="mail@filipporomani.it"}]
authors = [{name="Yoandre Saavedra", email="mail@example.com"}]
description="Open source Python wrapper for the WhatsApp Cloud API"
readme = "README.md"
requires-python = ">=3.10"
Expand Down

0 comments on commit ac328b8

Please sign in to comment.