File tree Expand file tree Collapse file tree 2 files changed +35
-1
lines changed Expand file tree Collapse file tree 2 files changed +35
-1
lines changed Original file line number Diff line number Diff line change
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 }}
Original file line number Diff line number Diff line change 6
6
except ImportError :
7
7
from distutils .core import setup , Command
8
8
9
+ from pathlib import Path
9
10
import sys
10
11
11
12
tests_require = []
@@ -35,11 +36,13 @@ def run(self):
35
36
36
37
37
38
version = "0.30.1"
39
+ this_directory = Path (__file__ ).parent
40
+ long_description = (this_directory / "README.md" ).read_text ()
38
41
39
42
setup (
40
43
name = "mysql-replication" ,
41
44
version = version ,
42
- url = "https://github.com/noplay /python-mysql-replication" ,
45
+ url = "https://github.com/julien-duponchelle /python-mysql-replication" ,
43
46
author = "Julien Duponchelle" ,
44
47
author_email = "julien@duponchelle.info" ,
45
48
description = ("Pure Python Implementation of MySQL replication protocol "
You can’t perform that action at this time.
0 commit comments