From 98243466561e1836a3edd0bdcf7239273381cbc3 Mon Sep 17 00:00:00 2001 From: Marcel Schwarz Date: Thu, 25 Jan 2024 15:17:27 +0100 Subject: [PATCH] Update readme with deploy help --- README.md | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/README.md b/README.md index 4322bc2..6edd3b9 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,23 @@ # icaotix python logging This lib helps in setting up a json logger for stdout for basically all projects +# Deployment help +1. create the file `~/.pypirc` with the following content + ``` + [distutils] + index-servers = gitea + + [gitea] + repository = https://git.icaotix.de/api/packages/icaotix/pypi + username = + password = + ``` +2. Password can be you gitea password or an access token +3. Update build and deploy tools + ``` + python3 -m pip install --upgrade build + python3 -m pip install --upgrade twine + ``` +4. Go into the projects root folder (where the pyproject.toml resides) +5. Execute `python3 -m build` to build the artifacts in the `dist` folder +6. Then execute `python3 -m twine upload --repository gitea dist/*` to upload to the registered remote \ No newline at end of file