Skip to content

Commit

Permalink
implement release flow and classifiers for project info (#10)
Browse files Browse the repository at this point in the history
* implement release flow and classifiers for project info

* enable workflow dispatch for tests
  • Loading branch information
burak-upstash authored Jan 24, 2024
1 parent d3c9e48 commit 1cd0201
Show file tree
Hide file tree
Showing 3 changed files with 62 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -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
1 change: 1 addition & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
name: Test

on:
workflow_dispatch:
pull_request:
branches:
- main
Expand Down
23 changes: 23 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,30 @@ version = "1.0.0"
description = "Python client for Upstash QStash"
license = "MIT"
authors = ["Upstash <support@upstash.com>", "Meshan Khosla <meshan@upstash.com>"]
maintainers = ["Upstash <support@upstash.com>"]
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"
Expand Down

0 comments on commit 1cd0201

Please sign in to comment.