Skip to content

Instantly share code, notes, and snippets.

@sevein
Created October 19, 2017 20:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sevein/08a3c8fb88d6d3bba90e395f08a2f908 to your computer and use it in GitHub Desktop.
Save sevein/08a3c8fb88d6d3bba90e395f08a2f908 to your computer and use it in GitHub Desktop.

  1. Install fpr-admin
sudo apt update && sudo apt install -y virtualenv python git clone git@git.artefactual.com:archivematica-fpr-admin fpr-admin cd fpr-admin virtualenv .env source .env/bin/activate pip install -r dev_requirements.txt testproject/manage.py migrate testproject/manage.py createsuperuser --username=demo --email=demo@example.com

  1. Create new migration
cp testproject/db.sqlite3 ~/db-current.sqlite testproject/manage.py dumpdata fpr > ../fpr-current.json testproject/manage.py makemigrations --empty --name pronom_92 fpr wget https://raw.githubusercontent.com/sevein/fido/a5b432cb0c8ac8f7290f0cc1c81342550053e422/fido/conf/formats-v92.xml -O ../formats-v92.xml testproject/manage.py import_pronom_ids ../formats-v92.xml --output-filename ../pronom92.txt cat ../pronom92.txt >> fpr/migrations/0015_pronom_92.py
  1. ... fix migration (steps 6 and 7)
git checkout -b dev/pronom-v92 git add . git commit -m "Migrations: PRONOM 92" git push --set-upstream origin dev/pronom-v92 testproject/manage.py migrate -l testproject/manage.py migrate

  1. Run server for the analyst to arrange things
TODO.

Once done, continue process described in https://wiki.archivematica.org/Release_Process#Update_FPR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment