diff options
author | JensDiemer <git@jensdiemer.de> | 2020-02-01 22:56:59 +0100 |
---|---|---|
committer | JensDiemer <git@jensdiemer.de> | 2020-02-01 22:56:59 +0100 |
commit | efce26cbaa7d6e9d5abc78fe7869235483aefb63 (patch) | |
tree | 1550189c2e098e5223aa727f0a0ab8dcb2139cf9 | |
parent | b6f7220e8b681b456b85332d2549f3f7b7512e7d (diff) | |
download | creole-efce26cbaa7d6e9d5abc78fe7869235483aefb63.tar.gz |
don't publish if README.rst is not up-to-date
-rw-r--r-- | creole/publish.py | 5 |
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__, |