Skip to content

Commit d35b70d

Browse files
committed
Added publish workflow for releasing
Signed-off-by: aiudirog <[email protected]>
1 parent 3bc58c2 commit d35b70d

File tree

2 files changed

+51
-2
lines changed

2 files changed

+51
-2
lines changed

.github/workflows/publish.yml

+48
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
name: Upload Python Package
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
tags:
8+
- 'v*'
9+
10+
jobs:
11+
release:
12+
name: Create Release
13+
runs-on: ubuntu-latest
14+
steps:
15+
- name: Checkout code
16+
uses: actions/checkout@master
17+
- name: Create Release
18+
id: create_release
19+
uses: actions/create-release@v1
20+
env:
21+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
22+
with:
23+
tag_name: ${{ github.ref }}
24+
release_name: Release ${{ github.ref }}
25+
body: |
26+
Change Log:
27+
draft: true # Give me a moment to fill in the description
28+
prerelease: false
29+
deploy:
30+
needs: release
31+
runs-on: ubuntu-latest
32+
steps:
33+
- uses: actions/checkout@v1
34+
- name: Set up Python
35+
uses: actions/setup-python@v1
36+
with:
37+
python-version: '3.7'
38+
- name: Install dependencies
39+
run: |
40+
python -m pip install --upgrade pip
41+
python -m pip install setuptools wheel
42+
- name: Build
43+
run: python setup.py sdist bdist_wheel
44+
- name: Publish
45+
uses: pypa/gh-action-pypi-publish@master
46+
with:
47+
user: __token__
48+
password: ${{ secrets.PYPI_TOKEN }}

NEWS.rst

+3-2
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,16 @@ Version history
77
AIOHappyBase 1.2.0
88
------------------
99

10-
Release date: 2019-11-??
10+
Release date: 2019-11-28
1111

1212
First release of the async version of HappyBase!
1313

1414
The version number is the same because the API is almost identical (albeit async) except for a few updates:
1515

1616
- Only Python 3.6+ will be supported (I like f-strings and ordered dictionaries, sue me:P)
1717
- ``Connection`` and ``ConnectionPool`` objects can be used as context managers (async and regular).
18-
- ``Connection.create_table()`` now returns the table instance.
18+
- Explicitly closing non-context managed ``Connection`` and ``ConnectionPool`` objects is now required due the asyncio event loop being mostly unavailable during __del__.
19+
- ``Connection.create_table()`` now returns the Table instance.
1920
- Support for the framed transport and compact protocol have been dropped until thriftpy2.contrib.aio supports them as well.
2021

2122

0 commit comments

Comments
 (0)