summaryrefslogtreecommitdiff
path: root/creole/publish.py
diff options
context:
space:
mode:
Diffstat (limited to 'creole/publish.py')
-rw-r--r--creole/publish.py5
1 files 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__,