Skip to content

Commit 531e44c

Browse files
committed
minor: add framework release flow
1 parent 0872132 commit 531e44c

7 files changed

Lines changed: 660 additions & 85 deletions

File tree

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Runtime python package
2+
3+
on:
4+
push:
5+
tags:
6+
- "bk-plugin-framework-v*.*.*"
7+
workflow_dispatch:
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v2
14+
- name: Set up Python 3.6
15+
uses: actions/setup-python@v2
16+
with:
17+
python-version: 3.6
18+
19+
- name: Set up Poetry
20+
uses: abatilo/actions-poetry@v2.0.0
21+
with:
22+
poetry-version: 1.1.9
23+
24+
- name: Package and Publish
25+
run: |
26+
cd bk-plugin-framework
27+
poetry build -vvv
28+
poetry publish -u ${{ secrets.PYPI_USER }} -p ${{ secrets.PYPI_PWD }}

.github/workflows/runtime_python_package_poetry.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,10 @@ jobs:
2121
with:
2222
poetry-version: 1.1.9
2323

24-
- name: Remove Test Code
24+
- name: Package and Publish
2525
run: |
2626
cd runtime/bk-plugin-runtime
27+
rm -rf benchmark
28+
rm -rf tests
2729
poetry build -vvv
2830
poetry publish -u ${{ secrets.PYPI_USER }} -p ${{ secrets.PYPI_PWD }}

bk-plugin-framework/MANIFEST.in

Lines changed: 0 additions & 1 deletion
This file was deleted.

bk-plugin-framework/pyproject.toml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,23 @@ exclude = '''
1414
| dist
1515
)/
1616
'''
17+
18+
[tool.poetry]
19+
name = "bk-plugin-framework"
20+
version = "1.1.0rc1"
21+
description = "bk plugin python framework"
22+
authors = ["Your Name <you@example.com>"]
23+
license = "MIT"
24+
25+
[tool.poetry.dependencies]
26+
python = "^3.6"
27+
pydantic = "^1.0"
28+
werkzeug = "^2.0.0"
29+
apigw-manager = {version = "^0.1.9", extras = ["extra"]}
30+
bk-plugin-runtime = "1.1.0rc1"
31+
32+
[tool.poetry.dev-dependencies]
33+
34+
[build-system]
35+
requires = ["poetry-core>=1.0.0"]
36+
build-backend = "poetry.core.masonry.api"

runtime/bk-plugin-runtime/bk_plugin_runtime/__version__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,4 @@
1111
specific language governing permissions and limitations under the License.
1212
"""
1313

14-
__version__ = "1.1.0rc1"
14+
__version__ = "1.2.0rc1"

0 commit comments

Comments
 (0)