Support installation via pipx#44
Conversation
|
Looks interesting. I think this command has to be changed too, to reflect the new file structure Line 55 in 3223516 This would be a breaking change, just using git pull and having the certbot renew cronjob wouldn't work anymore. (That's not a deal breaker, just something to keep in mind) Also, have you checked the script with the auth.json file or the env variables? Line 34 in 3223516 strato-certbot/cleanup-hook.py Line 28 in 3223516 |
|
Good points. The Regarding the path to the Unfortunately, I am experiencing some problems currently with the authentication on the strato website, so I cannot test locally. I am pretty sure this worked as of yesterday, but today I am just redirected to the login page and cannot retrieve a session ID. Currently trying to debug by adding calling the auth hook directly and adding debug output statements: |
Try this, seems like it is the same problem: #46 |
…es to avoid hyphens, added __init__.py to indicate package
|
I added some docs, but need to experiment some more with how to use the hook scripts via the entry points specified in the |
|
I think I got it worked out. When installing via pipx, we still have to make the scripts globally available while placing dependencies into the dedicated environment. This can be achieved via the variables Most probably, a similar workflow is possible with uv package manager, but I am still new to this. Also, I included a fix for the cleanup script: 48569a0 |
|
Thanks, LGTM |
Hi,
first of all, thanks for this project, it's proven to be very useful for my home network setup.
I am not sure if you would be interested in merging this, so let me briefly explain what I did:
With a proper Python package setup (essentially a
pyproject.tomland following conventions regarding file names and directory structure), the project becomes installable via pip and, even more useful, via pipx which installs everything into a dedidated virtual environment including dependencies with one command, e.g.:The most notable changes are:
strato_certbotsubdirectorypyproject.tomldescribing all package meta-data, including dependencies (making obsolete the filesrequirements.txtandrequirements-dev.txt@Buxdehuda: Let me know if you're willing to merge these changes and if you need any further help with it. If not, feel free to close this PR, as I will just maintain my fork then.