Packaging for Archlinux User Repository
See original GitHub issueAs a follow-up to #135, I created this new issue in order to discuss a few things concerning packaging.
While building upon the efforts of @Lucki, a few questions came up for me:
-
What exactly is this admin package thing and how is it going to be solved? It was brought up in #135 too.
-
Because all the python dependencies are installed with pacman (archlinux system package manager), they are owned by root:root. This forces me to run the database migration (at least the first one after initial installation) as the privileged root user. Otherwise the migration fails with the message
PermissionError: [Errno 13] Permission denied: '/usr/lib/python3.8/site-packages/queue'
. The latter folder did not exist yet at the time of the initial migration attempt with thepapermerge
user. Is there anything that can be done to avoid running the database migration as root? Maybe @Lucki is more fond of Archlinux best practices than I am and can give a advise? -
I added a post-upgrade hook to the package that is supposed to automatically run the database migration upon upgrade of the papermerge package. With the upgrades from 1.4.3 to 1.4.4 and to 1.4.5 I noticed the message:
Running migrations:
No migrations to apply.
Your models have changes that are not yet reflected in a migration, and so won't be applied.
Run 'manage.py makemigrations' to make new migrations, and then re-run 'manage.py migrate' to apply them.
Do we have to intervene here or can this be ignored? I am not quite sure what the model changes mean and if I need to run the suggested commands.
Issue Analytics
- State:
- Created 3 years ago
- Comments:25 (20 by maintainers)
Top GitHub Comments
Sry, I don’t know anything meaningful about python, I hate languages that think it’s important how you place non-seeable characters. My guess is that’s that a path which isn’t set in the configuration file. I don’t know django either, maybe you can set the path with
--migration-path=/path/sdsad
or an environment variableDJANGO_MIGRATION_PATH=/path/sdsad
. This is more a question for @ciurAwesome!
Closing this for now since I think I succeeded in packaging and you answered all my questions. Thank you!