diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..8ed7198 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,38 @@ +name: Release + +on: workflow_dispatch + +jobs: + release: + runs-on: ubuntu-latest + + steps: + - name: Checkout repository + uses: actions/checkout@v2 + + - name: Set up Python + uses: actions/setup-python@v2 + with: + python-version: 3.8 + + - name: Install Poetry + run: curl -sSL https://install.python-poetry.org | python3 - + + - name: Build and publish + run: | + poetry config pypi-token.pypi "${{secrets.PYPI_TOKEN}}" + poetry build + poetry publish --no-interaction + + - name: Generate release tag + run: echo "RELEASE_TAG=v$(poetry version | awk '{print $2}')" >> $GITHUB_ENV + + - name: Create GitHub Release + uses: actions/create-release@v1 + env: + GITHUB_TOKEN: ${{ secrets.PERSONAL_ACCESS_TOKEN }} + with: + tag_name: ${{ env.RELEASE_TAG }} + release_name: Release ${{ env.RELEASE_TAG }} + draft: false + prerelease: false \ No newline at end of file diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index c27a7d8..09ee2e9 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -1,6 +1,7 @@ name: Test on: + workflow_dispatch: pull_request: branches: - main diff --git a/pyproject.toml b/pyproject.toml index f4445fc..f729cda 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,30 @@ version = "1.0.0" description = "Python client for Upstash QStash" license = "MIT" authors = ["Upstash ", "Meshan Khosla "] +maintainers = ["Upstash "] readme = "README.md" +repository = "https://github.com/upstash/qstash-python" +keywords = ["QStash", "Upstash QStash", "Serverless Queue"] +classifiers = [ + "Development Status :: 5 - Production/Stable", + "Intended Audience :: Developers", + "License :: OSI Approved :: MIT License", + "Operating System :: OS Independent", + "Programming Language :: Python", + "Programming Language :: Python :: 3", + "Programming Language :: Python :: 3 :: Only", + "Programming Language :: Python :: 3.8", + "Programming Language :: Python :: 3.9", + "Programming Language :: Python :: 3.10", + "Programming Language :: Python :: 3.11", + "Programming Language :: Python :: 3.12", + "Programming Language :: Python :: Implementation :: CPython", + "Topic :: Database", + "Topic :: Database :: Front-Ends", + "Topic :: Software Development :: Libraries", +] + +packages = [{ include = "upstash_qstash" }] [tool.poetry.dependencies] python = "^3.8"