From 2d866b79340054da6a06f2164ef9d4e87a0a62f5 Mon Sep 17 00:00:00 2001 From: Viktor Dick Date: Thu, 30 Oct 2025 13:37:04 +0100 Subject: [PATCH 1/2] Explain publishing steps in README --- CHANGELOG | 3 +++ README.md | 11 +++++++++++ 2 files changed, 14 insertions(+) diff --git a/CHANGELOG b/CHANGELOG index 12a7bba..e837879 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,3 +1,6 @@ +25.1.0 + * Explain publishing steps in README + 25.0.0 * Clean up literal_eval of DeprecationWarnings. * Use --no-renames for path detection in layer-update diff --git a/README.md b/README.md index 1204ab8..17a97a6 100644 --- a/README.md +++ b/README.md @@ -15,6 +15,17 @@ Viktor Dick git clone https://github.com/perfact/zodbsync.git +## Building and publishing +In general, the PyPi access token is personalized, so publishing can only be +done by one person (currently Viktor). Scratch tokens are stored in the PerFact +vault so this can be changed in the case of an emergency. +See https://packaging.python.org/en/latest/tutorials/packaging-projects/: + + virtualenv venv + venv/bin/pip install build twine + venv/bin/python -m build + venv/bin/twine upload dist/* + ## Installation The package should be installed using `pip` in the same virt-env as `zope`, p.e. From 2b1929f2c5a199ba4d13cd6bf73ddb3c9590ae47 Mon Sep 17 00:00:00 2001 From: Viktor Dick Date: Thu, 30 Oct 2025 13:40:59 +0100 Subject: [PATCH 2/2] Add note about where to store credentials --- README.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 17a97a6..ca8722f 100644 --- a/README.md +++ b/README.md @@ -19,7 +19,11 @@ Viktor Dick In general, the PyPi access token is personalized, so publishing can only be done by one person (currently Viktor). Scratch tokens are stored in the PerFact vault so this can be changed in the case of an emergency. -See https://packaging.python.org/en/latest/tutorials/packaging-projects/: + +See https://packaging.python.org/en/latest/tutorials/packaging-projects/. + +The username `__token__` and the password from pypi needs to be stored to +`~/.pypirc`. Then: virtualenv venv venv/bin/pip install build twine