aa-sov-timer 2.4.2__tar.gz → 2.4.3__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (84) hide show
  1. {aa_sov_timer-2.4.2 → aa_sov_timer-2.4.3}/PKG-INFO +99 -22
  2. {aa_sov_timer-2.4.2 → aa_sov_timer-2.4.3}/README.md +98 -21
  3. {aa_sov_timer-2.4.2 → aa_sov_timer-2.4.3}/sovtimer/__init__.py +1 -1
  4. {aa_sov_timer-2.4.2 → aa_sov_timer-2.4.3}/sovtimer/constants.py +0 -8
  5. {aa_sov_timer-2.4.2 → aa_sov_timer-2.4.3}/sovtimer/locale/cs_CZ/LC_MESSAGES/django.po +19 -19
  6. aa_sov_timer-2.4.3/sovtimer/locale/de/LC_MESSAGES/django.mo +0 -0
  7. {aa_sov_timer-2.4.2 → aa_sov_timer-2.4.3}/sovtimer/locale/de/LC_MESSAGES/django.po +31 -25
  8. {aa_sov_timer-2.4.2 → aa_sov_timer-2.4.3}/sovtimer/locale/django.pot +22 -23
  9. {aa_sov_timer-2.4.2 → aa_sov_timer-2.4.3}/sovtimer/locale/es/LC_MESSAGES/django.po +36 -24
  10. aa_sov_timer-2.4.3/sovtimer/locale/fr_FR/LC_MESSAGES/django.mo +0 -0
  11. {aa_sov_timer-2.4.2 → aa_sov_timer-2.4.3}/sovtimer/locale/fr_FR/LC_MESSAGES/django.po +50 -38
  12. {aa_sov_timer-2.4.2 → aa_sov_timer-2.4.3}/sovtimer/locale/it_IT/LC_MESSAGES/django.po +19 -19
  13. {aa_sov_timer-2.4.2 → aa_sov_timer-2.4.3}/sovtimer/locale/ja/LC_MESSAGES/django.po +22 -20
  14. {aa_sov_timer-2.4.2 → aa_sov_timer-2.4.3}/sovtimer/locale/ko_KR/LC_MESSAGES/django.po +35 -23
  15. {aa_sov_timer-2.4.2 → aa_sov_timer-2.4.3}/sovtimer/locale/nl_NL/LC_MESSAGES/django.po +19 -19
  16. {aa_sov_timer-2.4.2 → aa_sov_timer-2.4.3}/sovtimer/locale/pl_PL/LC_MESSAGES/django.po +19 -19
  17. {aa_sov_timer-2.4.2 → aa_sov_timer-2.4.3}/sovtimer/locale/ru/LC_MESSAGES/django.po +36 -22
  18. {aa_sov_timer-2.4.2 → aa_sov_timer-2.4.3}/sovtimer/locale/sk/LC_MESSAGES/django.po +19 -19
  19. {aa_sov_timer-2.4.2 → aa_sov_timer-2.4.3}/sovtimer/locale/uk/LC_MESSAGES/django.po +36 -22
  20. {aa_sov_timer-2.4.2 → aa_sov_timer-2.4.3}/sovtimer/locale/zh_Hans/LC_MESSAGES/django.po +19 -19
  21. {aa_sov_timer-2.4.2 → aa_sov_timer-2.4.3}/sovtimer/static/sovtimer/js/aa-sov-timer.js +3 -3
  22. aa_sov_timer-2.4.3/sovtimer/static/sovtimer/js/aa-sov-timer.min.js +2 -0
  23. {aa_sov_timer-2.4.2 → aa_sov_timer-2.4.3}/sovtimer/static/sovtimer/js/aa-sov-timer.min.js.map +1 -1
  24. {aa_sov_timer-2.4.2 → aa_sov_timer-2.4.3}/sovtimer/templates/sovtimer/partials/dashboard/table.html +7 -9
  25. aa_sov_timer-2.4.2/sovtimer/locale/de/LC_MESSAGES/django.mo +0 -0
  26. aa_sov_timer-2.4.2/sovtimer/locale/fr_FR/LC_MESSAGES/django.mo +0 -0
  27. aa_sov_timer-2.4.2/sovtimer/static/sovtimer/js/aa-sov-timer.min.js +0 -2
  28. {aa_sov_timer-2.4.2 → aa_sov_timer-2.4.3}/.gitignore +0 -0
  29. {aa_sov_timer-2.4.2 → aa_sov_timer-2.4.3}/LICENSE +0 -0
  30. {aa_sov_timer-2.4.2 → aa_sov_timer-2.4.3}/pyproject.toml +0 -0
  31. {aa_sov_timer-2.4.2 → aa_sov_timer-2.4.3}/sovtimer/app_settings.py +0 -0
  32. {aa_sov_timer-2.4.2 → aa_sov_timer-2.4.3}/sovtimer/apps.py +0 -0
  33. {aa_sov_timer-2.4.2 → aa_sov_timer-2.4.3}/sovtimer/auth_hooks.py +0 -0
  34. {aa_sov_timer-2.4.2 → aa_sov_timer-2.4.3}/sovtimer/locale/.gitkeep +0 -0
  35. {aa_sov_timer-2.4.2 → aa_sov_timer-2.4.3}/sovtimer/locale/cs_CZ/LC_MESSAGES/django.mo +0 -0
  36. {aa_sov_timer-2.4.2 → aa_sov_timer-2.4.3}/sovtimer/locale/es/LC_MESSAGES/django.mo +0 -0
  37. {aa_sov_timer-2.4.2 → aa_sov_timer-2.4.3}/sovtimer/locale/it_IT/LC_MESSAGES/django.mo +0 -0
  38. {aa_sov_timer-2.4.2 → aa_sov_timer-2.4.3}/sovtimer/locale/ja/LC_MESSAGES/django.mo +0 -0
  39. {aa_sov_timer-2.4.2 → aa_sov_timer-2.4.3}/sovtimer/locale/ko_KR/LC_MESSAGES/django.mo +0 -0
  40. {aa_sov_timer-2.4.2 → aa_sov_timer-2.4.3}/sovtimer/locale/nl_NL/LC_MESSAGES/django.mo +0 -0
  41. {aa_sov_timer-2.4.2 → aa_sov_timer-2.4.3}/sovtimer/locale/pl_PL/LC_MESSAGES/django.mo +0 -0
  42. {aa_sov_timer-2.4.2 → aa_sov_timer-2.4.3}/sovtimer/locale/ru/LC_MESSAGES/django.mo +0 -0
  43. {aa_sov_timer-2.4.2 → aa_sov_timer-2.4.3}/sovtimer/locale/sk/LC_MESSAGES/django.mo +0 -0
  44. {aa_sov_timer-2.4.2 → aa_sov_timer-2.4.3}/sovtimer/locale/uk/LC_MESSAGES/django.mo +0 -0
  45. {aa_sov_timer-2.4.2 → aa_sov_timer-2.4.3}/sovtimer/locale/zh_Hans/LC_MESSAGES/django.mo +0 -0
  46. {aa_sov_timer-2.4.2 → aa_sov_timer-2.4.3}/sovtimer/management/commands/__init__.py +0 -0
  47. {aa_sov_timer-2.4.2 → aa_sov_timer-2.4.3}/sovtimer/management/commands/sovtimer_load_initial_data.py +0 -0
  48. {aa_sov_timer-2.4.2 → aa_sov_timer-2.4.3}/sovtimer/migrations/0001_initial.py +0 -0
  49. {aa_sov_timer-2.4.2 → aa_sov_timer-2.4.3}/sovtimer/migrations/0002_aasovtimercampaigns_aasovtimerstructures.py +0 -0
  50. {aa_sov_timer-2.4.2 → aa_sov_timer-2.4.3}/sovtimer/migrations/0003_auto_20201113_1033.py +0 -0
  51. {aa_sov_timer-2.4.2 → aa_sov_timer-2.4.3}/sovtimer/migrations/0004_auto_20201113_1856.py +0 -0
  52. {aa_sov_timer-2.4.2 → aa_sov_timer-2.4.3}/sovtimer/migrations/0005_auto_20201114_0720.py +0 -0
  53. {aa_sov_timer-2.4.2 → aa_sov_timer-2.4.3}/sovtimer/migrations/0006_rename_models.py +0 -0
  54. {aa_sov_timer-2.4.2 → aa_sov_timer-2.4.3}/sovtimer/migrations/0007_cleanup_models.py +0 -0
  55. {aa_sov_timer-2.4.2 → aa_sov_timer-2.4.3}/sovtimer/migrations/0008_fix_campaign_attackers_score.py +0 -0
  56. {aa_sov_timer-2.4.2 → aa_sov_timer-2.4.3}/sovtimer/migrations/0009_alter_campaign_options_and_more.py +0 -0
  57. {aa_sov_timer-2.4.2 → aa_sov_timer-2.4.3}/sovtimer/migrations/0010_alter_campaign_event_type.py +0 -0
  58. {aa_sov_timer-2.4.2 → aa_sov_timer-2.4.3}/sovtimer/migrations/__init__.py +0 -0
  59. {aa_sov_timer-2.4.2 → aa_sov_timer-2.4.3}/sovtimer/models.py +0 -0
  60. {aa_sov_timer-2.4.2 → aa_sov_timer-2.4.3}/sovtimer/providers.py +0 -0
  61. {aa_sov_timer-2.4.2 → aa_sov_timer-2.4.3}/sovtimer/static/sovtimer/css/aa-sov-timer.css +0 -0
  62. {aa_sov_timer-2.4.2 → aa_sov_timer-2.4.3}/sovtimer/static/sovtimer/css/aa-sov-timer.min.css +0 -0
  63. {aa_sov_timer-2.4.2 → aa_sov_timer-2.4.3}/sovtimer/static/sovtimer/css/aa-sov-timer.min.css.map +0 -0
  64. {aa_sov_timer-2.4.2 → aa_sov_timer-2.4.3}/sovtimer/static/sovtimer/font/materialicons/v143/MaterialIcons-Regular.woff2 +0 -0
  65. {aa_sov_timer-2.4.2 → aa_sov_timer-2.4.3}/sovtimer/static/sovtimer/font/materialicons/v143/README.md +0 -0
  66. {aa_sov_timer-2.4.2 → aa_sov_timer-2.4.3}/sovtimer/static/sovtimer/images/zkillboard.png +0 -0
  67. {aa_sov_timer-2.4.2 → aa_sov_timer-2.4.3}/sovtimer/tasks.py +0 -0
  68. {aa_sov_timer-2.4.2 → aa_sov_timer-2.4.3}/sovtimer/templates/sovtimer/base.html +0 -0
  69. {aa_sov_timer-2.4.2 → aa_sov_timer-2.4.3}/sovtimer/templates/sovtimer/bundles/aa-sov-timer-css.html +0 -0
  70. {aa_sov_timer-2.4.2 → aa_sov_timer-2.4.3}/sovtimer/templates/sovtimer/bundles/aa-sov-timer-js.html +0 -0
  71. {aa_sov_timer-2.4.2 → aa_sov_timer-2.4.3}/sovtimer/templates/sovtimer/dashboard.html +0 -0
  72. {aa_sov_timer-2.4.2 → aa_sov_timer-2.4.3}/sovtimer/templates/sovtimer/partials/footer/app-translation-footer.html +0 -0
  73. {aa_sov_timer-2.4.2 → aa_sov_timer-2.4.3}/sovtimer/tests/__init__.py +0 -0
  74. {aa_sov_timer-2.4.2 → aa_sov_timer-2.4.3}/sovtimer/tests/fixtures/allianceauth.json +0 -0
  75. {aa_sov_timer-2.4.2 → aa_sov_timer-2.4.3}/sovtimer/tests/fixtures/load_allianceauth.py +0 -0
  76. {aa_sov_timer-2.4.2 → aa_sov_timer-2.4.3}/sovtimer/tests/fixtures/load_sovtimer.py +0 -0
  77. {aa_sov_timer-2.4.2 → aa_sov_timer-2.4.3}/sovtimer/tests/fixtures/sovtimer.json +0 -0
  78. {aa_sov_timer-2.4.2 → aa_sov_timer-2.4.3}/sovtimer/tests/fixtures/utils.py +0 -0
  79. {aa_sov_timer-2.4.2 → aa_sov_timer-2.4.3}/sovtimer/tests/test_ajax_calls.py +0 -0
  80. {aa_sov_timer-2.4.2 → aa_sov_timer-2.4.3}/sovtimer/tests/test_app_settings.py +0 -0
  81. {aa_sov_timer-2.4.2 → aa_sov_timer-2.4.3}/sovtimer/tests/test_integration.py +0 -0
  82. {aa_sov_timer-2.4.2 → aa_sov_timer-2.4.3}/sovtimer/tests/utils.py +0 -0
  83. {aa_sov_timer-2.4.2 → aa_sov_timer-2.4.3}/sovtimer/urls.py +0 -0
  84. {aa_sov_timer-2.4.2 → aa_sov_timer-2.4.3}/sovtimer/views.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: aa-sov-timer
3
- Version: 2.4.2
3
+ Version: 2.4.3
4
4
  Summary: Sov Campaign Timer for Alliance Auth
5
5
  Project-URL: Changelog, https://github.com/ppfeufer/aa-sov-timer/blob/master/CHANGELOG.md
6
6
  Project-URL: Documentation, https://github.com/ppfeufer/aa-sov-timer/blob/master/README.md
@@ -734,13 +734,22 @@ ______________________________________________________________________
734
734
  - [Screenshots](#screenshots)
735
735
  - [AA Sov Timer Dashboard](#aa-sov-timer-dashboard)
736
736
  - [Installation](#installation)
737
- - [Step 1: Installing the App](#step-1-installing-the-app)
738
- - [Step 2: Update Your AA Settings](#step-2-update-your-aa-settings)
739
- - [Step 3: Finalizing the Installation](#step-3-finalizing-the-installation)
740
- - [Step 4: Preload Eve Universe Data](#step-4-preload-eve-universe-data)
741
- - [Step 5: Setting up Permission](#step-5-setting-up-permission)
742
- - [Step 6: Keep Campaigns Updated](#step-6-keep-campaigns-updated)
737
+ - [Bare Metaal Installation](#bare-metaal-installation)
738
+ - [Step 1: Installing the App](#step-1-installing-the-app)
739
+ - [Step 2: Update Your AA Settings](#step-2-update-your-aa-settings)
740
+ - [Step 3: Finalizing the Installation](#step-3-finalizing-the-installation)
741
+ - [Step 4: Preload Eve Universe Data](#step-4-preload-eve-universe-data)
742
+ - [Step 5: Setting up Permission](#step-5-setting-up-permission)
743
+ - [Step 6: Keep Campaigns Updated](#step-6-keep-campaigns-updated)
744
+ - [Docker Installation](#docker-installation)
745
+ - [Step 1: Add the App](#step-1-add-the-app)
746
+ - [Step 2: Update Your AA Settings](#step-2-update-your-aa-settings-1)
747
+ - [Step 3: Build Auth and Restart Your Containers](#step-3-build-auth-and-restart-your-containers)
748
+ - [Step 4: Finalizing the Installation](#step-4-finalizing-the-installation)
743
749
  - [Updating](#updating)
750
+ - [Bare Metal Installation](#bare-metal-installation)
751
+ - [Docker Installation](#docker-installation-1)
752
+ - [Common Steps](#common-steps)
744
753
  - [Changelog](#changelog)
745
754
  - [Translation Status](#translation-status)
746
755
  - [Contributing](#contributing)
@@ -767,7 +776,9 @@ ______________________________________________________________________
767
776
  - AA Sovereignty Timer needs the app [django-eveuniverse](https://gitlab.com/ErikKalkoken/django-eveuniverse)
768
777
  to function. Please make sure it is installed before continuing.
769
778
 
770
- ### Step 1: Installing the App<a name="step-1-installing-the-app"></a>
779
+ ### Bare Metaal Installation<a name="bare-metaal-installation"></a>
780
+
781
+ #### Step 1: Installing the App<a name="step-1-installing-the-app"></a>
771
782
 
772
783
  Make sure you're in the virtual environment (venv) of your Alliance Auth installation.
773
784
  Then install the latest version:
@@ -776,7 +787,7 @@ Then install the latest version:
776
787
  pip install aa-sov-timer
777
788
  ```
778
789
 
779
- ### Step 2: Update Your AA Settings<a name="step-2-update-your-aa-settings"></a>
790
+ #### Step 2: Update Your AA Settings<a name="step-2-update-your-aa-settings"></a>
780
791
 
781
792
  Configure your AA settings (`local.py`) as follows:
782
793
 
@@ -785,19 +796,16 @@ Configure your AA settings (`local.py`) as follows:
785
796
 
786
797
  Restart your supervisor
787
798
 
788
- ### Step 3: Finalizing the Installation<a name="step-3-finalizing-the-installation"></a>
799
+ #### Step 3: Finalizing the Installation<a name="step-3-finalizing-the-installation"></a>
789
800
 
790
801
  Copy static files and run migrations
791
802
 
792
803
  ```shell
793
804
  python manage.py collectstatic
794
- ```
795
-
796
- ```shell
797
805
  python manage.py migrate
798
806
  ```
799
807
 
800
- ### Step 4: Preload Eve Universe Data<a name="step-4-preload-eve-universe-data"></a>
808
+ #### Step 4: Preload Eve Universe Data<a name="step-4-preload-eve-universe-data"></a>
801
809
 
802
810
  AA Sovereignty Timer uses Eve Universe data to map IDs to names for solar systems,
803
811
  regions and constellations. So you need to preload some data from ESI once.
@@ -805,21 +813,18 @@ If you already have run this command, you can skip this step.
805
813
 
806
814
  ```shell
807
815
  python manage.py eveuniverse_load_data map
808
- ```
809
-
810
- ```shell
811
816
  python manage.py sovtimer_load_initial_data
812
817
  ```
813
818
 
814
819
  Both commands might take a moment or two, so be patient ...
815
820
 
816
- ### Step 5: Setting up Permission<a name="step-5-setting-up-permission"></a>
821
+ #### Step 5: Setting up Permission<a name="step-5-setting-up-permission"></a>
817
822
 
818
823
  Now you can set up permissions in Alliance Auth for your users.
819
824
  Add `sovtimer | Sovereignty Timer | Can access the Sovereignty Timer module` to
820
825
  the states and/or groups you would like to have access.
821
826
 
822
- ### Step 6: Keep Campaigns Updated<a name="step-6-keep-campaigns-updated"></a>
827
+ #### Step 6: Keep Campaigns Updated<a name="step-6-keep-campaigns-updated"></a>
823
828
 
824
829
  Add the following scheduled task to your `local.py`. One done, restart your supervisor.
825
830
 
@@ -833,8 +838,57 @@ CELERYBEAT_SCHEDULE["sovtimer.tasks.run_sov_campaign_updates"] = {
833
838
 
834
839
  Now your system is updating the sovereignty campaigns every 30 seconds.
835
840
 
841
+ ### Docker Installation<a name="docker-installation"></a>
842
+
843
+ #### Step 1: Add the App<a name="step-1-add-the-app"></a>
844
+
845
+ Add the app to your `conf/requirements.txt`:
846
+
847
+ ```text
848
+ aa-sov-timer==2.4.3
849
+ ```
850
+
851
+ #### Step 2: Update Your AA Settings<a name="step-2-update-your-aa-settings-1"></a>
852
+
853
+ Configure your AA settings (`conf/local.py`) as follows:
854
+
855
+ - Add `'eveuniverse',` to `INSTALLED_APPS` if not already done for another app
856
+ - Add `'sovtimer',` to `INSTALLED_APPS`
857
+ - Add the Scheduled Task
858
+
859
+ ```python
860
+ # AA Sovereignty Timer - Run sovereignty related updates every 30 seconds
861
+ CELERYBEAT_SCHEDULE["sovtimer.tasks.run_sov_campaign_updates"] = {
862
+ "task": "sovtimer.tasks.run_sov_campaign_updates",
863
+ "schedule": 30.0,
864
+ }
865
+ ```
866
+
867
+ #### Step 3: Build Auth and Restart Your Containers<a name="step-3-build-auth-and-restart-your-containers"></a>
868
+
869
+ ```shell
870
+ docker compose build --no-cache
871
+ docker compose --env-file=.env up -d
872
+ ```
873
+
874
+ #### Step 4: Finalizing the Installation<a name="step-4-finalizing-the-installation"></a>
875
+
876
+ Run migrations, copy static files and load EVE universe data:
877
+
878
+ ```shell
879
+ docker compose exec allianceauth_gunicorn bash
880
+
881
+ auth collectstatic
882
+ auth migrate
883
+
884
+ auth eveuniverse_load_data map
885
+ auth sovtimer_load_initial_data
886
+ ```
887
+
836
888
  ## Updating<a name="updating"></a>
837
889
 
890
+ ### Bare Metal Installation<a name="bare-metal-installation"></a>
891
+
838
892
  To update your existing installation of AA Sovereignty Timer, first enable your
839
893
  virtual environment.
840
894
 
@@ -843,17 +897,40 @@ contains `manage.py`).
843
897
 
844
898
  ```shell
845
899
  pip install -U aa-sov-timer
900
+
901
+ python manage.py collectstatic
902
+ python manage.py migrate
903
+ ```
904
+
905
+ Finally, restart your AA supervisor service.
906
+
907
+ ### Docker Installation<a name="docker-installation-1"></a>
908
+
909
+ To update your existing installation of AA Sovereignty Timer, all you need to do is to update the respective line in your `conf/requirements.txt` file to the latest version.
910
+
911
+ ```text
912
+ aa-sov-timer==2.4.3
846
913
  ```
847
914
 
915
+ Now rebuild your containers and restart them:
916
+
848
917
  ```shell
849
- python manage.py collectstatic
918
+ docker compose build --no-cache
919
+ docker compose --env-file=.env up -d
850
920
  ```
851
921
 
922
+ After that, run the following commands to update your database and static files:
923
+
852
924
  ```shell
853
- python manage.py migrate
925
+ docker compose exec allianceauth_gunicorn bash
926
+
927
+ auth collectstatic
928
+ auth migrate
854
929
  ```
855
930
 
856
- Finally, restart your AA supervisor services.
931
+ ### Common Steps<a name="common-steps"></a>
932
+
933
+ It is possible that some versions need some more changes. Always read the [release notes](https://github.com/ppfeufer/aa-sov-timer/releases) to find out more.
857
934
 
858
935
  ## Changelog<a name="changelog"></a>
859
936
 
@@ -24,13 +24,22 @@ ______________________________________________________________________
24
24
  - [Screenshots](#screenshots)
25
25
  - [AA Sov Timer Dashboard](#aa-sov-timer-dashboard)
26
26
  - [Installation](#installation)
27
- - [Step 1: Installing the App](#step-1-installing-the-app)
28
- - [Step 2: Update Your AA Settings](#step-2-update-your-aa-settings)
29
- - [Step 3: Finalizing the Installation](#step-3-finalizing-the-installation)
30
- - [Step 4: Preload Eve Universe Data](#step-4-preload-eve-universe-data)
31
- - [Step 5: Setting up Permission](#step-5-setting-up-permission)
32
- - [Step 6: Keep Campaigns Updated](#step-6-keep-campaigns-updated)
27
+ - [Bare Metaal Installation](#bare-metaal-installation)
28
+ - [Step 1: Installing the App](#step-1-installing-the-app)
29
+ - [Step 2: Update Your AA Settings](#step-2-update-your-aa-settings)
30
+ - [Step 3: Finalizing the Installation](#step-3-finalizing-the-installation)
31
+ - [Step 4: Preload Eve Universe Data](#step-4-preload-eve-universe-data)
32
+ - [Step 5: Setting up Permission](#step-5-setting-up-permission)
33
+ - [Step 6: Keep Campaigns Updated](#step-6-keep-campaigns-updated)
34
+ - [Docker Installation](#docker-installation)
35
+ - [Step 1: Add the App](#step-1-add-the-app)
36
+ - [Step 2: Update Your AA Settings](#step-2-update-your-aa-settings-1)
37
+ - [Step 3: Build Auth and Restart Your Containers](#step-3-build-auth-and-restart-your-containers)
38
+ - [Step 4: Finalizing the Installation](#step-4-finalizing-the-installation)
33
39
  - [Updating](#updating)
40
+ - [Bare Metal Installation](#bare-metal-installation)
41
+ - [Docker Installation](#docker-installation-1)
42
+ - [Common Steps](#common-steps)
34
43
  - [Changelog](#changelog)
35
44
  - [Translation Status](#translation-status)
36
45
  - [Contributing](#contributing)
@@ -57,7 +66,9 @@ ______________________________________________________________________
57
66
  - AA Sovereignty Timer needs the app [django-eveuniverse](https://gitlab.com/ErikKalkoken/django-eveuniverse)
58
67
  to function. Please make sure it is installed before continuing.
59
68
 
60
- ### Step 1: Installing the App<a name="step-1-installing-the-app"></a>
69
+ ### Bare Metaal Installation<a name="bare-metaal-installation"></a>
70
+
71
+ #### Step 1: Installing the App<a name="step-1-installing-the-app"></a>
61
72
 
62
73
  Make sure you're in the virtual environment (venv) of your Alliance Auth installation.
63
74
  Then install the latest version:
@@ -66,7 +77,7 @@ Then install the latest version:
66
77
  pip install aa-sov-timer
67
78
  ```
68
79
 
69
- ### Step 2: Update Your AA Settings<a name="step-2-update-your-aa-settings"></a>
80
+ #### Step 2: Update Your AA Settings<a name="step-2-update-your-aa-settings"></a>
70
81
 
71
82
  Configure your AA settings (`local.py`) as follows:
72
83
 
@@ -75,19 +86,16 @@ Configure your AA settings (`local.py`) as follows:
75
86
 
76
87
  Restart your supervisor
77
88
 
78
- ### Step 3: Finalizing the Installation<a name="step-3-finalizing-the-installation"></a>
89
+ #### Step 3: Finalizing the Installation<a name="step-3-finalizing-the-installation"></a>
79
90
 
80
91
  Copy static files and run migrations
81
92
 
82
93
  ```shell
83
94
  python manage.py collectstatic
84
- ```
85
-
86
- ```shell
87
95
  python manage.py migrate
88
96
  ```
89
97
 
90
- ### Step 4: Preload Eve Universe Data<a name="step-4-preload-eve-universe-data"></a>
98
+ #### Step 4: Preload Eve Universe Data<a name="step-4-preload-eve-universe-data"></a>
91
99
 
92
100
  AA Sovereignty Timer uses Eve Universe data to map IDs to names for solar systems,
93
101
  regions and constellations. So you need to preload some data from ESI once.
@@ -95,21 +103,18 @@ If you already have run this command, you can skip this step.
95
103
 
96
104
  ```shell
97
105
  python manage.py eveuniverse_load_data map
98
- ```
99
-
100
- ```shell
101
106
  python manage.py sovtimer_load_initial_data
102
107
  ```
103
108
 
104
109
  Both commands might take a moment or two, so be patient ...
105
110
 
106
- ### Step 5: Setting up Permission<a name="step-5-setting-up-permission"></a>
111
+ #### Step 5: Setting up Permission<a name="step-5-setting-up-permission"></a>
107
112
 
108
113
  Now you can set up permissions in Alliance Auth for your users.
109
114
  Add `sovtimer | Sovereignty Timer | Can access the Sovereignty Timer module` to
110
115
  the states and/or groups you would like to have access.
111
116
 
112
- ### Step 6: Keep Campaigns Updated<a name="step-6-keep-campaigns-updated"></a>
117
+ #### Step 6: Keep Campaigns Updated<a name="step-6-keep-campaigns-updated"></a>
113
118
 
114
119
  Add the following scheduled task to your `local.py`. One done, restart your supervisor.
115
120
 
@@ -123,8 +128,57 @@ CELERYBEAT_SCHEDULE["sovtimer.tasks.run_sov_campaign_updates"] = {
123
128
 
124
129
  Now your system is updating the sovereignty campaigns every 30 seconds.
125
130
 
131
+ ### Docker Installation<a name="docker-installation"></a>
132
+
133
+ #### Step 1: Add the App<a name="step-1-add-the-app"></a>
134
+
135
+ Add the app to your `conf/requirements.txt`:
136
+
137
+ ```text
138
+ aa-sov-timer==2.4.3
139
+ ```
140
+
141
+ #### Step 2: Update Your AA Settings<a name="step-2-update-your-aa-settings-1"></a>
142
+
143
+ Configure your AA settings (`conf/local.py`) as follows:
144
+
145
+ - Add `'eveuniverse',` to `INSTALLED_APPS` if not already done for another app
146
+ - Add `'sovtimer',` to `INSTALLED_APPS`
147
+ - Add the Scheduled Task
148
+
149
+ ```python
150
+ # AA Sovereignty Timer - Run sovereignty related updates every 30 seconds
151
+ CELERYBEAT_SCHEDULE["sovtimer.tasks.run_sov_campaign_updates"] = {
152
+ "task": "sovtimer.tasks.run_sov_campaign_updates",
153
+ "schedule": 30.0,
154
+ }
155
+ ```
156
+
157
+ #### Step 3: Build Auth and Restart Your Containers<a name="step-3-build-auth-and-restart-your-containers"></a>
158
+
159
+ ```shell
160
+ docker compose build --no-cache
161
+ docker compose --env-file=.env up -d
162
+ ```
163
+
164
+ #### Step 4: Finalizing the Installation<a name="step-4-finalizing-the-installation"></a>
165
+
166
+ Run migrations, copy static files and load EVE universe data:
167
+
168
+ ```shell
169
+ docker compose exec allianceauth_gunicorn bash
170
+
171
+ auth collectstatic
172
+ auth migrate
173
+
174
+ auth eveuniverse_load_data map
175
+ auth sovtimer_load_initial_data
176
+ ```
177
+
126
178
  ## Updating<a name="updating"></a>
127
179
 
180
+ ### Bare Metal Installation<a name="bare-metal-installation"></a>
181
+
128
182
  To update your existing installation of AA Sovereignty Timer, first enable your
129
183
  virtual environment.
130
184
 
@@ -133,17 +187,40 @@ contains `manage.py`).
133
187
 
134
188
  ```shell
135
189
  pip install -U aa-sov-timer
190
+
191
+ python manage.py collectstatic
192
+ python manage.py migrate
193
+ ```
194
+
195
+ Finally, restart your AA supervisor service.
196
+
197
+ ### Docker Installation<a name="docker-installation-1"></a>
198
+
199
+ To update your existing installation of AA Sovereignty Timer, all you need to do is to update the respective line in your `conf/requirements.txt` file to the latest version.
200
+
201
+ ```text
202
+ aa-sov-timer==2.4.3
136
203
  ```
137
204
 
205
+ Now rebuild your containers and restart them:
206
+
138
207
  ```shell
139
- python manage.py collectstatic
208
+ docker compose build --no-cache
209
+ docker compose --env-file=.env up -d
140
210
  ```
141
211
 
212
+ After that, run the following commands to update your database and static files:
213
+
142
214
  ```shell
143
- python manage.py migrate
215
+ docker compose exec allianceauth_gunicorn bash
216
+
217
+ auth collectstatic
218
+ auth migrate
144
219
  ```
145
220
 
146
- Finally, restart your AA supervisor services.
221
+ ### Common Steps<a name="common-steps"></a>
222
+
223
+ It is possible that some versions need some more changes. Always read the [release notes](https://github.com/ppfeufer/aa-sov-timer/releases) to find out more.
147
224
 
148
225
  ## Changelog<a name="changelog"></a>
149
226
 
@@ -5,5 +5,5 @@ App init
5
5
  # Django
6
6
  from django.utils.translation import gettext_lazy as _
7
7
 
8
- __version__ = "2.4.2"
8
+ __version__ = "2.4.3"
9
9
  __title__ = _("Sovereignty Timers")
@@ -2,9 +2,6 @@
2
2
  Constants we use throughout the app
3
3
  """
4
4
 
5
- # Standard Library
6
- import os
7
-
8
5
  # Alliance Auth
9
6
  from esi import __version__ as esi_version
10
7
 
@@ -18,10 +15,5 @@ PACKAGE_NAME = "sovtimer"
18
15
  GITHUB_URL = f"https://github.com/ppfeufer/{APP_NAME}"
19
16
  USER_AGENT = f"{APP_NAME_VERBOSE_USERAGENT}/{__version__} (+{GITHUB_URL}) Django-ESI/{esi_version}"
20
17
 
21
- # aa-sov-timer/sovtimer
22
- APP_BASE_DIR = os.path.join(os.path.dirname(__file__))
23
- # aa-sov-timer/sovtimer/static/sovtimer
24
- APP_STATIC_DIR = os.path.join(APP_BASE_DIR, "static", PACKAGE_NAME)
25
-
26
18
  # All internal URLs need to start with this prefix
27
19
  INTERNAL_URL_PREFIX = "-"
@@ -6,7 +6,7 @@ msgid ""
6
6
  msgstr ""
7
7
  "Project-Id-Version: AA Sov Timer 2.2.1\n"
8
8
  "Report-Msgid-Bugs-To: https://github.com/ppfeufer/aa-sov-timer/issues\n"
9
- "POT-Creation-Date: 2025-06-13 00:06+0200\n"
9
+ "POT-Creation-Date: 2025-06-20 19:18+0200\n"
10
10
  "PO-Revision-Date: 2024-07-10 14:26+0000\n"
11
11
  "Last-Translator: Dadas Aideron <dadas.aideron@gmail.com>\n"
12
12
  "Language-Team: Czech <https://weblate.ppfeufer.de/projects/alliance-auth-apps/aa-sov-timer/cs/>\n"
@@ -60,27 +60,27 @@ msgid "Sovereignty campaigns"
60
60
  msgstr ""
61
61
 
62
62
  #: sovtimer/templates/sovtimer/dashboard.html:15
63
- #: sovtimer/templates/sovtimer/partials/dashboard/table.html:27
63
+ #: sovtimer/templates/sovtimer/partials/dashboard/table.html:25
64
64
  msgid "Type"
65
65
  msgstr ""
66
66
 
67
67
  #: sovtimer/templates/sovtimer/dashboard.html:16
68
- #: sovtimer/templates/sovtimer/partials/dashboard/table.html:28
68
+ #: sovtimer/templates/sovtimer/partials/dashboard/table.html:26
69
69
  msgid "System"
70
70
  msgstr ""
71
71
 
72
72
  #: sovtimer/templates/sovtimer/dashboard.html:17
73
- #: sovtimer/templates/sovtimer/partials/dashboard/table.html:29
73
+ #: sovtimer/templates/sovtimer/partials/dashboard/table.html:27
74
74
  msgid "Constellation"
75
75
  msgstr ""
76
76
 
77
77
  #: sovtimer/templates/sovtimer/dashboard.html:18
78
- #: sovtimer/templates/sovtimer/partials/dashboard/table.html:30
78
+ #: sovtimer/templates/sovtimer/partials/dashboard/table.html:28
79
79
  msgid "Region"
80
80
  msgstr ""
81
81
 
82
82
  #: sovtimer/templates/sovtimer/dashboard.html:19
83
- #: sovtimer/templates/sovtimer/partials/dashboard/table.html:31
83
+ #: sovtimer/templates/sovtimer/partials/dashboard/table.html:29
84
84
  msgid "Owner / Defender"
85
85
  msgstr ""
86
86
 
@@ -96,39 +96,39 @@ msgstr ""
96
96
  msgid "No"
97
97
  msgstr ""
98
98
 
99
- #: sovtimer/templates/sovtimer/partials/dashboard/table.html:4
100
- msgid "The sovereignty timer list is automatically updated every 30 seconds. Progress for any active campaigns will be shown as <i>Previous - Trend - Current</i>."
99
+ #: sovtimer/templates/sovtimer/partials/dashboard/table.html:6
100
+ msgid "Sovereignty campaign list"
101
101
  msgstr ""
102
102
 
103
- #: sovtimer/templates/sovtimer/partials/dashboard/table.html:10
104
- msgid "Sovereignty campaign list"
103
+ #: sovtimer/templates/sovtimer/partials/dashboard/table.html:12
104
+ msgid "Total campaigns:"
105
105
  msgstr ""
106
106
 
107
- #: sovtimer/templates/sovtimer/partials/dashboard/table.html:16
108
- msgid "Timers total:"
107
+ #: sovtimer/templates/sovtimer/partials/dashboard/table.html:13
108
+ msgid "Upcoming campaigns (< 4hrs):"
109
109
  msgstr ""
110
110
 
111
- #: sovtimer/templates/sovtimer/partials/dashboard/table.html:17
112
- msgid "Timers upcoming (< 4hrs):"
111
+ #: sovtimer/templates/sovtimer/partials/dashboard/table.html:14
112
+ msgid "Active campaigns:"
113
113
  msgstr ""
114
114
 
115
115
  #: sovtimer/templates/sovtimer/partials/dashboard/table.html:18
116
- msgid "Timers active:"
116
+ msgid "The campaign list is automatically updated every 30 seconds. Progress for any active campaigns will be shown as <i>Previous - Trend - Current</i>."
117
117
  msgstr ""
118
118
 
119
- #: sovtimer/templates/sovtimer/partials/dashboard/table.html:32
119
+ #: sovtimer/templates/sovtimer/partials/dashboard/table.html:30
120
120
  msgid "ADM"
121
121
  msgstr ""
122
122
 
123
- #: sovtimer/templates/sovtimer/partials/dashboard/table.html:33
123
+ #: sovtimer/templates/sovtimer/partials/dashboard/table.html:31
124
124
  msgid "Start"
125
125
  msgstr ""
126
126
 
127
- #: sovtimer/templates/sovtimer/partials/dashboard/table.html:34
127
+ #: sovtimer/templates/sovtimer/partials/dashboard/table.html:32
128
128
  msgid "Remaining"
129
129
  msgstr ""
130
130
 
131
- #: sovtimer/templates/sovtimer/partials/dashboard/table.html:35
131
+ #: sovtimer/templates/sovtimer/partials/dashboard/table.html:33
132
132
  msgid "Progress"
133
133
  msgstr ""
134
134
 
@@ -6,8 +6,8 @@ msgid ""
6
6
  msgstr ""
7
7
  "Project-Id-Version: AA Sov Timer 2.2.1\n"
8
8
  "Report-Msgid-Bugs-To: https://github.com/ppfeufer/aa-sov-timer/issues\n"
9
- "POT-Creation-Date: 2025-06-13 00:06+0200\n"
10
- "PO-Revision-Date: 2025-04-25 14:24+0000\n"
9
+ "POT-Creation-Date: 2025-06-20 19:18+0200\n"
10
+ "PO-Revision-Date: 2025-06-20 16:44+0000\n"
11
11
  "Last-Translator: Peter Pfeufer <info@ppfeufer.de>\n"
12
12
  "Language-Team: German <https://weblate.ppfeufer.de/projects/alliance-auth-apps/aa-sov-timer/de/>\n"
13
13
  "Language: de\n"
@@ -15,7 +15,7 @@ msgstr ""
15
15
  "Content-Type: text/plain; charset=UTF-8\n"
16
16
  "Content-Transfer-Encoding: 8bit\n"
17
17
  "Plural-Forms: nplurals=2; plural=n != 1;\n"
18
- "X-Generator: Weblate 5.11\n"
18
+ "X-Generator: Weblate 5.11.4\n"
19
19
 
20
20
  #: sovtimer/__init__.py:9
21
21
  msgid "Sovereignty Timers"
@@ -60,27 +60,27 @@ msgid "Sovereignty campaigns"
60
60
  msgstr "Souveränitäts-Kampagnen"
61
61
 
62
62
  #: sovtimer/templates/sovtimer/dashboard.html:15
63
- #: sovtimer/templates/sovtimer/partials/dashboard/table.html:27
63
+ #: sovtimer/templates/sovtimer/partials/dashboard/table.html:25
64
64
  msgid "Type"
65
65
  msgstr "Typ"
66
66
 
67
67
  #: sovtimer/templates/sovtimer/dashboard.html:16
68
- #: sovtimer/templates/sovtimer/partials/dashboard/table.html:28
68
+ #: sovtimer/templates/sovtimer/partials/dashboard/table.html:26
69
69
  msgid "System"
70
70
  msgstr "System"
71
71
 
72
72
  #: sovtimer/templates/sovtimer/dashboard.html:17
73
- #: sovtimer/templates/sovtimer/partials/dashboard/table.html:29
73
+ #: sovtimer/templates/sovtimer/partials/dashboard/table.html:27
74
74
  msgid "Constellation"
75
75
  msgstr "Konstellation"
76
76
 
77
77
  #: sovtimer/templates/sovtimer/dashboard.html:18
78
- #: sovtimer/templates/sovtimer/partials/dashboard/table.html:30
78
+ #: sovtimer/templates/sovtimer/partials/dashboard/table.html:28
79
79
  msgid "Region"
80
80
  msgstr "Region"
81
81
 
82
82
  #: sovtimer/templates/sovtimer/dashboard.html:19
83
- #: sovtimer/templates/sovtimer/partials/dashboard/table.html:31
83
+ #: sovtimer/templates/sovtimer/partials/dashboard/table.html:29
84
84
  msgid "Owner / Defender"
85
85
  msgstr "Besitzer / Verteidiger"
86
86
 
@@ -96,39 +96,39 @@ msgstr "Ja"
96
96
  msgid "No"
97
97
  msgstr "Nein"
98
98
 
99
- #: sovtimer/templates/sovtimer/partials/dashboard/table.html:4
100
- msgid "The sovereignty timer list is automatically updated every 30 seconds. Progress for any active campaigns will be shown as <i>Previous - Trend - Current</i>."
101
- msgstr "Die Souveränitäts-Timerliste wird automatisch alle 30 Sekunden aktualisiert. Der Fortschritt für alle aktiven Kampagnen wird als <i>Vorher – Trend – Aktuell</i> angezeigt."
102
-
103
- #: sovtimer/templates/sovtimer/partials/dashboard/table.html:10
99
+ #: sovtimer/templates/sovtimer/partials/dashboard/table.html:6
104
100
  msgid "Sovereignty campaign list"
105
101
  msgstr "Liste der Souveränitäts-Kampagnen"
106
102
 
107
- #: sovtimer/templates/sovtimer/partials/dashboard/table.html:16
108
- msgid "Timers total:"
109
- msgstr "Alle Timer:"
103
+ #: sovtimer/templates/sovtimer/partials/dashboard/table.html:12
104
+ msgid "Total campaigns:"
105
+ msgstr "Alle Kampagnen:"
110
106
 
111
- #: sovtimer/templates/sovtimer/partials/dashboard/table.html:17
112
- msgid "Timers upcoming (< 4hrs):"
113
- msgstr "Bevorstehende Timer (< 4 Stunden):"
107
+ #: sovtimer/templates/sovtimer/partials/dashboard/table.html:13
108
+ msgid "Upcoming campaigns (< 4hrs):"
109
+ msgstr "Bevorstehende Kampagnen (< 4 Stunden):"
110
+
111
+ #: sovtimer/templates/sovtimer/partials/dashboard/table.html:14
112
+ msgid "Active campaigns:"
113
+ msgstr "Aktive Kampagnen:"
114
114
 
115
115
  #: sovtimer/templates/sovtimer/partials/dashboard/table.html:18
116
- msgid "Timers active:"
117
- msgstr "Aktive Timer:"
116
+ msgid "The campaign list is automatically updated every 30 seconds. Progress for any active campaigns will be shown as <i>Previous - Trend - Current</i>."
117
+ msgstr "Die Liste der Souveränitäts-Kampagnen wird automatisch alle 30 Sekunden aktualisiert. Der Fortschritt für alle aktiven Kampagnen wird als <i>Vorher – Trend – Aktuell</i> angezeigt."
118
118
 
119
- #: sovtimer/templates/sovtimer/partials/dashboard/table.html:32
119
+ #: sovtimer/templates/sovtimer/partials/dashboard/table.html:30
120
120
  msgid "ADM"
121
121
  msgstr "ADM"
122
122
 
123
- #: sovtimer/templates/sovtimer/partials/dashboard/table.html:33
123
+ #: sovtimer/templates/sovtimer/partials/dashboard/table.html:31
124
124
  msgid "Start"
125
125
  msgstr "Beginn"
126
126
 
127
- #: sovtimer/templates/sovtimer/partials/dashboard/table.html:34
127
+ #: sovtimer/templates/sovtimer/partials/dashboard/table.html:32
128
128
  msgid "Remaining"
129
129
  msgstr "Verbleibend"
130
130
 
131
- #: sovtimer/templates/sovtimer/partials/dashboard/table.html:35
131
+ #: sovtimer/templates/sovtimer/partials/dashboard/table.html:33
132
132
  msgid "Progress"
133
133
  msgstr "Fortschritt"
134
134
 
@@ -152,6 +152,12 @@ msgstr "Verteidiger machen Fortschritte"
152
152
  msgid "Attackers making progress"
153
153
  msgstr "Angreifer machen Fortschritte"
154
154
 
155
+ #~ msgid "Timers total:"
156
+ #~ msgstr "Alle Timer:"
157
+
158
+ #~ msgid "Timers active:"
159
+ #~ msgstr "Aktive Timer:"
160
+
155
161
  #~ msgctxt "Decimal separator"
156
162
  #~ msgid "."
157
163
  #~ msgstr ","