Skip to content

Commit 4b30880

Browse files
authored
Merge pull request #606 from julien-duponchelle/release-0.30.1
release githubflow add
2 parents add27b8 + 89d6243 commit 4b30880

File tree

2 files changed

+35
-1
lines changed

2 files changed

+35
-1
lines changed

.github/workflows/release.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Publish Python 🐍 distributions 📦 to PyPI and TestPyPI
2+
3+
on: push
4+
5+
jobs:
6+
build-n-publish:
7+
name: Build and publish Python 🐍 distributions 📦 to PyPI and TestPyPI
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/checkout@v3
11+
- name: Set up Python
12+
uses: actions/setup-python@v4
13+
with:
14+
python-version: "3.x"
15+
- name: Install pypa/build
16+
run: >-
17+
python3 -m
18+
pip install
19+
build
20+
--user
21+
- name: Build a source tarball
22+
run: >-
23+
python3 -m
24+
build
25+
--sdist
26+
--outdir dist/
27+
- name: Publish distribution 📦 to PyPI
28+
if: startsWith(github.ref, 'refs/tags')
29+
uses: pypa/gh-action-pypi-publish@release/v1
30+
with:
31+
password: ${{ secrets.PYPI_API_TOKEN }}

setup.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
except ImportError:
77
from distutils.core import setup, Command
88

9+
from pathlib import Path
910
import sys
1011

1112
tests_require = []
@@ -35,11 +36,13 @@ def run(self):
3536

3637

3738
version = "0.30.1"
39+
this_directory = Path(__file__).parent
40+
long_description = (this_directory / "README.md").read_text()
3841

3942
setup(
4043
name="mysql-replication",
4144
version=version,
42-
url="https://github.com/noplay/python-mysql-replication",
45+
url="https://github.com/julien-duponchelle/python-mysql-replication",
4346
author="Julien Duponchelle",
4447
author_email="julien@duponchelle.info",
4548
description=("Pure Python Implementation of MySQL replication protocol "

0 commit comments

Comments
 (0)