summaryrefslogtreecommitdiff
path: root/creole/publish.py
diff options
context:
space:
mode:
authorJensDiemer <git@jensdiemer.de>2020-02-01 22:33:51 +0100
committerJensDiemer <git@jensdiemer.de>2020-02-01 22:39:04 +0100
commit34e9738aead5f252feccd4510d72bd0642ad728a (patch)
tree6da0eff5e4d61482b2eb9738dd252ebddb0438c7 /creole/publish.py
parent3cbcdc3010e5bc396199e1c8124627eaafdf468a (diff)
downloadcreole-34e9738aead5f252feccd4510d72bd0642ad728a.tar.gz
use poetry-publishpoetry-publish
https://github.com/jedie/poetry-publish https://pypi.org/project/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__,
+ )