Skip to content

Commit 6f0dba5

Browse files
authored
Merge pull request #2 from khasbilegt/package-publish
package publish action
2 parents a74145a + 930b7e0 commit 6f0dba5

File tree

3 files changed

+83
-0
lines changed

3 files changed

+83
-0
lines changed

.github/workflows/publish.yml

+51
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
name: Package Publish
2+
3+
on:
4+
release:
5+
types: [published]
6+
7+
jobs:
8+
publish:
9+
runs-on: ubuntu-latest
10+
environment:
11+
name: pypi
12+
url: https://pypi.org/p/qpay
13+
permissions:
14+
id-token: write
15+
steps:
16+
- uses: actions/checkout@v4
17+
- name: Set up Python
18+
uses: actions/setup-python@v5
19+
with:
20+
python-version: "3.x"
21+
22+
- name: Load cached Poetry installation
23+
id: cached-poetry
24+
uses: actions/cache@v3
25+
with:
26+
path: ~/.local
27+
key: poetry-0
28+
29+
- name: Install and configure Poetry
30+
if: steps.cached-poetry.outputs.cache-hit != 'true'
31+
uses: snok/install-poetry@v1
32+
with:
33+
virtualenvs-in-project: true
34+
35+
- name: Load cached venv
36+
id: cached-poetry-dependencies
37+
uses: actions/cache@v3
38+
with:
39+
path: .venv
40+
key: venv-${{ runner.os }}-${{ steps.setup-python.outputs.python-version }}-${{ hashFiles('**/poetry.lock') }}
41+
42+
- name: Prepare version
43+
run: |
44+
VERSION=${GITHUB_REF#refs/tags/v}
45+
poetry version $VERSION
46+
47+
- name: Build package
48+
run: poetry build
49+
50+
- name: Publish package distributions to PyPI
51+
uses: pypa/gh-action-pypi-publish@release/v1

README.md

+16
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,22 @@
22
QPayClient
33
</h1>
44

5+
<p align="center">
6+
<a href="https://github.com/khasbilegt/qpay-python/">
7+
<img src="https://img.shields.io/github/actions/workflow/status/khasbilegt/qpay-python/qa.yml?label=CI&logo=github&style=for-the-badge" alt="ci status">
8+
</a>
9+
<a href="https://codecov.io/github/khasbilegt/qpay-python">
10+
<img src="https://img.shields.io/codecov/c/github/khasbilegt/qpay-python?logo=codecov&style=for-the-badge" alt="codecov">
11+
</a>
12+
<br>
13+
<a href="https://pypi.org/project/qpay-python/">
14+
<img src="https://img.shields.io/pypi/v/qpay-python?style=for-the-badge" alt="pypi link">
15+
</a>
16+
<a>
17+
<img src="https://img.shields.io/pypi/pyversions/qpay-python?logo=python&style=for-the-badge" alt="supported python versions">
18+
</a>
19+
</p>
20+
521
<p align="center">
622
<a href="#usage">Ашиглах</a> •
723
<a href="#contribution">Хөгжүүлэлтэнд оролцох</a> •

pyproject.toml

+16
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,22 @@ version = "0.0.1"
44
description = "QPay v2 SDK client for Python projects"
55
authors = ["khasbilegt <khasbilegt.ts@gmail.com>"]
66
readme = "README.md"
7+
license = "MIT"
8+
homepage = "https://github.com/khasbilegt/qpay-python"
9+
repository = "https://github.com/khasbilegt/qpay-python"
10+
keywords = ["python", "qpay", "sdk", "payment", "qr", "finance"]
11+
classifiers = [
12+
"Framework :: Pydantic",
13+
"Framework :: Pytest",
14+
"Intended Audience :: Developers",
15+
"Programming Language :: Python",
16+
"Programming Language :: Python :: 3.9",
17+
"Programming Language :: Python :: 3.10",
18+
"Programming Language :: Python :: 3.11",
19+
"Programming Language :: Python :: 3.12",
20+
"Topic :: Software Development :: Build Tools",
21+
"Typing :: Typed"
22+
]
723

824
[tool.poetry.dependencies]
925
python = "^3.9"

0 commit comments

Comments
 (0)