Skip to content

Commit 1cd0201

Browse files
implement release flow and classifiers for project info (#10)
* implement release flow and classifiers for project info * enable workflow dispatch for tests
1 parent d3c9e48 commit 1cd0201

File tree

3 files changed

+62
-0
lines changed

3 files changed

+62
-0
lines changed

.github/workflows/release.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: Release
2+
3+
on: workflow_dispatch
4+
5+
jobs:
6+
release:
7+
runs-on: ubuntu-latest
8+
9+
steps:
10+
- name: Checkout repository
11+
uses: actions/checkout@v2
12+
13+
- name: Set up Python
14+
uses: actions/setup-python@v2
15+
with:
16+
python-version: 3.8
17+
18+
- name: Install Poetry
19+
run: curl -sSL https://install.python-poetry.org | python3 -
20+
21+
- name: Build and publish
22+
run: |
23+
poetry config pypi-token.pypi "${{secrets.PYPI_TOKEN}}"
24+
poetry build
25+
poetry publish --no-interaction
26+
27+
- name: Generate release tag
28+
run: echo "RELEASE_TAG=v$(poetry version | awk '{print $2}')" >> $GITHUB_ENV
29+
30+
- name: Create GitHub Release
31+
uses: actions/create-release@v1
32+
env:
33+
GITHUB_TOKEN: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
34+
with:
35+
tag_name: ${{ env.RELEASE_TAG }}
36+
release_name: Release ${{ env.RELEASE_TAG }}
37+
draft: false
38+
prerelease: false

.github/workflows/tests.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
name: Test
22

33
on:
4+
workflow_dispatch:
45
pull_request:
56
branches:
67
- main

pyproject.toml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,30 @@ version = "1.0.0"
44
description = "Python client for Upstash QStash"
55
license = "MIT"
66
authors = ["Upstash <support@upstash.com>", "Meshan Khosla <meshan@upstash.com>"]
7+
maintainers = ["Upstash <support@upstash.com>"]
78
readme = "README.md"
9+
repository = "https://github.com/upstash/qstash-python"
10+
keywords = ["QStash", "Upstash QStash", "Serverless Queue"]
11+
classifiers = [
12+
"Development Status :: 5 - Production/Stable",
13+
"Intended Audience :: Developers",
14+
"License :: OSI Approved :: MIT License",
15+
"Operating System :: OS Independent",
16+
"Programming Language :: Python",
17+
"Programming Language :: Python :: 3",
18+
"Programming Language :: Python :: 3 :: Only",
19+
"Programming Language :: Python :: 3.8",
20+
"Programming Language :: Python :: 3.9",
21+
"Programming Language :: Python :: 3.10",
22+
"Programming Language :: Python :: 3.11",
23+
"Programming Language :: Python :: 3.12",
24+
"Programming Language :: Python :: Implementation :: CPython",
25+
"Topic :: Database",
26+
"Topic :: Database :: Front-Ends",
27+
"Topic :: Software Development :: Libraries",
28+
]
29+
30+
packages = [{ include = "upstash_qstash" }]
831

932
[tool.poetry.dependencies]
1033
python = "^3.8"

0 commit comments

Comments
 (0)