From efce26cbaa7d6e9d5abc78fe7869235483aefb63 Mon Sep 17 00:00:00 2001 From: JensDiemer Date: Sat, 1 Feb 2020 22:56:59 +0100 Subject: don't publish if README.rst is not up-to-date --- creole/publish.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/creole/publish.py b/creole/publish.py index 1939d25..3834b84 100644 --- a/creole/publish.py +++ b/creole/publish.py @@ -1,8 +1,8 @@ from pathlib import Path -from poetry_publish.publish import poetry_publish - import creole +from creole.setup_utils import update_creole_rst_readme +from poetry_publish.publish import poetry_publish def publish(): @@ -11,6 +11,7 @@ def publish(): Call this via: $ poetry run publish """ + update_creole_rst_readme() # don't publish if README.rst is not up-to-date poetry_publish( package_root=Path(creole.__file__).parent.parent, version=creole.__version__, -- cgit v1.2.1