blob: 9db1e93df05d0e3cdd786df92362d018ab58fa6d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
from pathlib import Path
from poetry_publish.publish import poetry_publish
from poetry_publish.utils.subprocess_utils import verbose_check_call
import creole
def publish():
"""
Publish python-creole to PyPi
Call this via:
$ poetry run publish
"""
verbose_check_call('make', 'fix-code-style') # don't publish if code style wrong
poetry_publish(
package_root=Path(creole.__file__).parent.parent,
version=creole.__version__,
creole_readme=True # don't publish if README.rst is not up-to-date
)
|