diff --git a/.pypirc.j2 b/.pypirc.j2
new file mode 100644
index 0000000000000000000000000000000000000000..9b076dd67f402b145d1b2a640beb0fdc2ce7ee67
--- /dev/null
+++ b/.pypirc.j2
@@ -0,0 +1,8 @@
+# vim: ft=config
+[distutils]
+index-servers =
+    pypi
+
+[pypi]
+username = __token__
+password = {{ run(["ph", "show", "--field", "Global token", "Web sites/PyPI"])["stdout"] }}