Skip to content

Commit

Permalink
feat: package publishing workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
adico1 committed Jun 1, 2024
1 parent a3d715a commit c268645
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 2 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Publish Python Package

on:
push:
tags:
- 'v*.*.*'

jobs:
build-and-publish:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v3
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@27b31702a0e7fc50959f5ad993c78deac1bdfc29
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}
2 changes: 2 additions & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
include README.md
include LICENSE
12 changes: 10 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,15 @@
],
},
author="adico",
author_email="adico1[at]gamil.com",
description="A library to manage OpenAI ChatGPT batch jobs asynchronously.",
author_email="[email protected]",
description="An SDK for OpenAI ChatGPT batch API for a single process.",
long_description=open('README.md').read(),
long_description_content_type="text/markdown",
url="https://github.com/adico1/openai_batch_sdk",
classifiers=[
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
],
python_requires='>=3.6',
)

0 comments on commit c268645

Please sign in to comment.