diff options
author | JensDiemer <git@jensdiemer.de> | 2020-02-01 23:21:22 +0100 |
---|---|---|
committer | JensDiemer <git@jensdiemer.de> | 2020-02-01 23:21:22 +0100 |
commit | 8f9c18aa380147cfea3318a1170601cd2c670c1d (patch) | |
tree | 2331c73762e87497b065410cdcf7f00aca199603 | |
parent | 281c352dda50968b39b710d48558e32183b76045 (diff) | |
download | creole-8f9c18aa380147cfea3318a1170601cd2c670c1d.tar.gz |
don't publish if code style wrong and use "creole_readme" argument
-rw-r--r-- | creole/publish.py | 9 |
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 ) |