summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJensDiemer <git@jensdiemer.de>2020-02-01 23:21:22 +0100
committerJensDiemer <git@jensdiemer.de>2020-02-01 23:21:22 +0100
commit8f9c18aa380147cfea3318a1170601cd2c670c1d (patch)
tree2331c73762e87497b065410cdcf7f00aca199603
parent281c352dda50968b39b710d48558e32183b76045 (diff)
downloadcreole-8f9c18aa380147cfea3318a1170601cd2c670c1d.tar.gz
don't publish if code style wrong and use "creole_readme" argument
-rw-r--r--creole/publish.py9
1 files changed, 6 insertions, 3 deletions
diff --git a/creole/publish.py b/creole/publish.py
index 3834b84..9db1e93 100644
--- a/creole/publish.py
+++ b/creole/publish.py
@@ -1,8 +1,9 @@
from pathlib import Path
-import creole
-from creole.setup_utils import update_creole_rst_readme
from poetry_publish.publish import poetry_publish
+from poetry_publish.utils.subprocess_utils import verbose_check_call
+
+import creole
def publish():
@@ -11,8 +12,10 @@ def publish():
Call this via:
$ poetry run publish
"""
- update_creole_rst_readme() # don't publish if README.rst is not up-to-date
+ 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
)