summaryrefslogtreecommitdiff
path: root/creole/publish.py
diff options
context:
space:
mode:
authorJens Diemer <github.com@jensdiemer.de>2020-02-01 22:43:09 +0100
committerGitHub <noreply@github.com>2020-02-01 22:43:09 +0100
commitfc4c19930b13067e16ef88acd018e31d6956946d (patch)
tree6da0eff5e4d61482b2eb9738dd252ebddb0438c7 /creole/publish.py
parent3cbcdc3010e5bc396199e1c8124627eaafdf468a (diff)
parent34e9738aead5f252feccd4510d72bd0642ad728a (diff)
downloadcreole-fc4c19930b13067e16ef88acd018e31d6956946d.tar.gz
Merge pull request #43 from jedie/poetry-publish
use poetry-publish
Diffstat (limited to 'creole/publish.py')
-rw-r--r--creole/publish.py17
1 files changed, 17 insertions, 0 deletions
diff --git a/creole/publish.py b/creole/publish.py
new file mode 100644
index 0000000..1939d25
--- /dev/null
+++ b/creole/publish.py
@@ -0,0 +1,17 @@
+from pathlib import Path
+
+from poetry_publish.publish import poetry_publish
+
+import creole
+
+
+def publish():
+ """
+ Publish python-creole to PyPi
+ Call this via:
+ $ poetry run publish
+ """
+ poetry_publish(
+ package_root=Path(creole.__file__).parent.parent,
+ version=creole.__version__,
+ )