Skip to content

Commit a4b8ff1

Browse files
Bump version to v0.2.3
1 parent ec397c9 commit a4b8ff1

File tree

5 files changed

+45
-2
lines changed

5 files changed

+45
-2
lines changed

.github/workflows/python-app.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ on:
1515
jobs:
1616
run:
1717
runs-on: ${{ matrix.os }}
18+
env:
19+
VERSION: 0.2.3
1820
strategy:
1921
matrix:
2022
python-version: [3.7, 3.8, 3.9, "3.10"]
@@ -91,3 +93,16 @@ jobs:
9193
with:
9294
files: |
9395
./dist/wheelhouse/${{ steps.manylinuxwhlfile.outputs.value }}
96+
- name: Downloading whl files
97+
if: ${{ startsWith(github.ref, 'refs/tags/') && matrix.os == 'ubuntu-18.04' && matrix.python-version == '3.10' }}
98+
working-directory: dist
99+
run: |
100+
rm *.whl
101+
rm -r wheelhouse
102+
python ../scripts/download.py ${{ env.VERSION }}
103+
- name: Publish a Python distribution to PyPI
104+
if: ${{ startsWith(github.ref, 'refs/tags/') && matrix.os == 'ubuntu-18.04' && matrix.python-version == '3.10' }}
105+
uses: pypa/gh-action-pypi-publish@release/v1
106+
with:
107+
user: __token__
108+
password: ${{ secrets.PYPI_API_TOKEN }}

pysrc/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
from . import mixin_api
22
from . import mixin_bot_api
3-
__VERSION__ = '0.2.2'
3+
__VERSION__ = '0.2.3'
44

55
default_api = mixin_api.MixinApi()
66

release.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Release v0.2.3

scripts/download.py

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
import os
2+
import sys
3+
import subprocess
4+
5+
version = sys.argv[1]
6+
files = [
7+
f'mixin_python-{version}-cp37-cp37m-macosx_10_16_x86_64.whl',
8+
f'mixin_python-{version}-cp38-cp38-macosx_10_16_x86_64.whl',
9+
f'mixin_python-{version}-cp39-cp39-macosx_10_16_x86_64.whl',
10+
f'mixin_python-{version}-cp310-cp310-macosx_10_16_x86_64.whl',
11+
12+
f'mixin_python-{version}-cp37-cp37m-win_amd64.whl',
13+
f'mixin_python-{version}-cp38-cp38-win_amd64.whl',
14+
f'mixin_python-{version}-cp39-cp39-win_amd64.whl',
15+
f'mixin_python-{version}-cp310-cp310-win_amd64.whl',
16+
17+
f'mixin_python-{version}-cp37-cp37m-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl',
18+
f'mixin_python-{version}-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl',
19+
f'mixin_python-{version}-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl',
20+
f'mixin_python-{version}-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl',
21+
]
22+
23+
url = f'https://github.com/learnforpractice/mixin-python/releases/download/v{version}/'
24+
25+
for f in files:
26+
if not os.path.exists(f):
27+
subprocess.call(['wget', url + f])

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020

2121
setup(
2222
name="mixin-python",
23-
version="0.2.2",
23+
version="0.2.3",
2424
description="Mixin Binding Project",
2525
author='learnforpractice',
2626
url="https://github.com/learnforpractice/mixin-python",

0 commit comments

Comments
 (0)