Skip to content

Commit

Permalink
[RELEASE] v3.4.3
Browse files Browse the repository at this point in the history
## [3.4.3] - 2024-12-14

### Added

- Python 3.13 to the test matrix

### Changed

- Translations updated
  • Loading branch information
ppfeufer committed Dec 14, 2024
1 parent 35167e8 commit cde1d44
Show file tree
Hide file tree
Showing 23 changed files with 144 additions and 43 deletions.
1 change: 1 addition & 0 deletions .github/workflows/automated-checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ jobs:
- '3.10' # [EOL] End of Life: 31 Oct 2026
- '3.11' # [EOL] End of Life: 31 Dec 2027
- '3.12' # [EOL] End of Life: 31 Dec 2028
- '3.13' # [EOL] End of Life: 31 Oct 2029
# MySQL versions to test against
database:
# https://endoflife.date/mysql
Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,5 @@ __pycache__
.coverage
/coverage.xml
alliance_auth.sqlite3

/fleetpings/locale/en/
58 changes: 53 additions & 5 deletions .make/conf.d/django.mk
Original file line number Diff line number Diff line change
@@ -1,5 +1,34 @@
# Make targets for Django projects

# Create or update translation template (.pot file)
.PHONY: pot
pot:
@echo "Creating or updating .pot file …"
@django-admin makemessages \
-l en \
--keep-pot \
--ignore 'build/*'
@current_app_version=$$(pip show $(appname) | grep 'Version: ' | awk '{print $$NF}'); \
sed -i "/\"Project-Id-Version: /c\\\"Project-Id-Version: $(appname_verbose) $$current_app_version\\\n\"" $(translation_template); \
sed -i "/\"Report-Msgid-Bugs-To: /c\\\"Report-Msgid-Bugs-To: $(git_repository_issues)\\\n\"" $(translation_template);

# Add a new translation
.PHONY: add_translation
add_translation:
@echo "Adding a new translation"
@read -p "Enter the language code (e.g. 'en_GB'): " language_code; \
django-admin makemessages \
-l $$language_code \
--keep-pot \
--ignore 'build/*'; \
current_app_version=$$(pip show $(appname) | grep 'Version: ' | awk '{print $$NF}'); \
sed -i "/\"Project-Id-Version: /c\\\"Project-Id-Version: $(appname_verbose) $$current_app_version\\\n\"" $(translation_template); \
sed -i "/\"Report-Msgid-Bugs-To: /c\\\"Report-Msgid-Bugs-To: $(git_repository_issues)\\\n\"" $(translation_template); \
sed -i "/\"Project-Id-Version: /c\\\"Project-Id-Version: $(appname_verbose) $$current_app_version\\\n\"" $(translation_directory)/$$language_code/$(translation_file_relative_path); \
sed -i "/\"Report-Msgid-Bugs-To: /c\\\"Report-Msgid-Bugs-To: $(git_repository_issues)\\\n\"" $(translation_directory)/$$language_code/$(translation_file_relative_path); \
echo "New translation added for $$language_code"; \
echo "Please remember to add '-l $$language_code \' to the 'translations' target in the Makefile";

# Translation files
.PHONY: translations
translations:
Expand All @@ -20,6 +49,20 @@ translations:
-l zh_Hans \
--keep-pot \
--ignore 'build/*'
@current_app_version=$$(pip show $(appname) | grep 'Version: ' | awk '{print $$NF}'); \
sed -i "/\"Project-Id-Version: /c\\\"Project-Id-Version: $(appname_verbose) $$current_app_version\\\n\"" $(translation_template); \
sed -i "/\"Report-Msgid-Bugs-To: /c\\\"Report-Msgid-Bugs-To: $(git_repository_issues)\\\n\"" $(translation_template); \
subdircount=$$(find $(translation_directory) -mindepth 1 -maxdepth 1 -type d | wc -l); \
if [[ $$subdircount -gt 1 ]]; then \
for path in $(translation_directory)/*/; do \
[ -d "$$path/LC_MESSAGES" ] || continue; \
if [[ -f "$$path/$(translation_file_relative_path)" ]] \
then \
sed -i "/\"Project-Id-Version: /c\\\"Project-Id-Version: $(appname_verbose) $$current_app_version\\\n\"" $$path/$(translation_file_relative_path); \
sed -i "/\"Report-Msgid-Bugs-To: /c\\\"Report-Msgid-Bugs-To: $(git_repository_issues)\\\n\"" $$path/$(translation_file_relative_path); \
fi; \
done; \
fi;

# Compile translation files
.PHONY: compile_translations
Expand Down Expand Up @@ -55,9 +98,14 @@ migrations:
# Help message
.PHONY: help
help::
@echo " $(TEXT_UNDERLINE)Translation:$(TEXT_UNDERLINE_END)"
@echo " migrate Migrate all database changes"
@echo " migrations Create or update migrations"
@echo " translations Create or update translation files"
@echo " compile_translations Compile translation files"
@echo " $(TEXT_UNDERLINE)Django:$(TEXT_UNDERLINE_END)"
@echo " Migration handling:"
@echo " migrate Migrate all database changes"
@echo " migrations Create or update migrations"
@echo ""
@echo " Translation handling:"
@echo " add_translation Add a new translation"
@echo " compile_translations Compile translation files"
@echo " pot Create or update translation template (.pot file)"
@echo " translations Create or update translation files"
@echo ""
27 changes: 27 additions & 0 deletions .make/conf.d/git.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
.PHONY: git-clean-untracked
git-clean-untracked:
@echo "Cleaning untracked files and directories …"
@git clean -fd

.PHONY: git-garbage-collection
git-garbage-collection:
@echo "Optimizing the repository with garbage collection …"
@git gc --prune=now --aggressive

.PHONY: git-prune
git-prune:
@echo "Pruning unreachable objects …"
@git prune

.PHONY: git-housekeeping
git-housekeeping: git-clean-untracked git-prune git-garbage-collection
@echo "Git housekeeping done …"

.PHONY: help
help::
@echo " $(TEXT_UNDERLINE)Git:$(TEXT_UNDERLINE_END)"
@echo " git-clean-untracked Cleaning untracked files and directories"
@echo " git-garbage-collection Optimizing the repository with garbage collection"
@echo " git-prune Pruning unreachable objects"
@echo " git-housekeeping Run all git housekeeping commands"
@echo ""
6 changes: 3 additions & 3 deletions .make/conf.d/tests.mk
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# Coverage
.PHONY: coverage
coverage:
@echo "Running tests and creating a coverage report"
@echo "Running tests and creating a coverage report"
@rm -rf htmlcov
@coverage run ../myauth/manage.py \
test \
Expand All @@ -16,14 +16,14 @@ coverage:
# Build test
.PHONY: build_test
build_test:
@echo "Building the package"
@echo "Building the package"
@rm -rf dist
@python3 -m build

# Tox tests
.PHONY: tox_tests
tox_tests:
@echo "Running tests with tox"
@echo "Running tests with tox"
@export USE_MYSQL=False; \
tox -v -e allianceauth-latest; \
rm -rf .tox/
Expand Down
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,16 @@ Section Order:
### Security
-->

## [3.4.3] - 2024-12-14

### Added

- Python 3.13 to the test matrix

### Changed

- Translations updated

## [3.4.2] - 2024-11-28

### Added
Expand Down
21 changes: 17 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@
appname = aa-fleetpings
appname_verbose = AA Fleet Pings
package = fleetpings
translation_template = $(package)/locale/django.pot
translation_directory = $(package)/locale
translation_template = $(translation_directory)/django.pot
translation_file_relative_path = LC_MESSAGES/django.po
git_repository = https://github.com/ppfeufer/$(appname)
git_repository_issues = $(git_repository)/issues

Expand Down Expand Up @@ -34,7 +36,7 @@ confirm:
# Graph models
.PHONY: graph_models
graph_models:
@echo "Creating a graph of the models"
@echo "Creating a graph of the models"
@python ../myauth/manage.py \
graph_models \
$(package) \
Expand All @@ -44,13 +46,24 @@ graph_models:
# Prepare a new release
# Update the graph of the models, translation files and the version in the package
.PHONY: prepare-release
prepare-release: graph_models translations
prepare-release: graph_models pot
@echo ""
@echo "Preparing a release"
@echo "Preparing a release"
@read -p "New Version Number: " new_version; \
sed -i "/__version__/c\__version__ = \"$$new_version\"" $(package)/__init__.py; \
sed -i "/\"Project-Id-Version: /c\\\"Project-Id-Version: $(appname_verbose) $$new_version\\\n\"" $(translation_template); \
sed -i "/\"Report-Msgid-Bugs-To: /c\\\"Report-Msgid-Bugs-To: $(git_repository_issues)\\\n\"" $(translation_template); \
# subdircount=$$(find $(translation_directory) -mindepth 1 -maxdepth 1 -type d | wc -l); \
# if [[ $$subdircount -gt 1 ]]; then \
# for path in $(translation_directory)/*/; do \
# [ -d "$$path/LC_MESSAGES" ] || continue; \
# if [[ -f "$$path/$(translation_file_relative_path)" ]] \
# then \
# sed -i "/\"Project-Id-Version: /c\\\"Project-Id-Version: $(appname_verbose) $$new_version\\\n\"" $$path/$(translation_file_relative_path); \
# sed -i "/\"Report-Msgid-Bugs-To: /c\\\"Report-Msgid-Bugs-To: $(git_repository_issues)\\\n\"" $$path/$(translation_file_relative_path); \
# fi; \
# done; \
# fi;
echo "Updated version in $(TEXT_BOLD)$(package)/__init__.py$(TEXT_BOLD_END)"

# Help
Expand Down
2 changes: 1 addition & 1 deletion fleetpings/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@
# Django
from django.utils.translation import gettext_lazy as _

__version__ = "3.4.2"
__version__ = "3.4.3"
__title__ = _("Fleet Pings")
4 changes: 2 additions & 2 deletions fleetpings/locale/cs_CZ/LC_MESSAGES/django.po
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
# Peter Pfeufer <info@ppfeufer.de>, 2024.
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"Project-Id-Version: AA Fleet Pings 3.4.2\n"
"Report-Msgid-Bugs-To: https://github.com/ppfeufer/aa-fleetpings/issues\n"
"POT-Creation-Date: 2024-11-28 00:00+0100\n"
"PO-Revision-Date: 2024-11-09 11:25+0000\n"
"Last-Translator: Peter Pfeufer <info@ppfeufer.de>\n"
Expand Down
4 changes: 2 additions & 2 deletions fleetpings/locale/de/LC_MESSAGES/django.po
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
# "H. Peter Pfeufer" <info@ppfeufer.de>, 2023, 2024.
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"Project-Id-Version: AA Fleet Pings 3.4.2\n"
"Report-Msgid-Bugs-To: https://github.com/ppfeufer/aa-fleetpings/issues\n"
"POT-Creation-Date: 2024-11-28 00:00+0100\n"
"PO-Revision-Date: 2024-11-27 23:06+0000\n"
"Last-Translator: Peter Pfeufer <info@ppfeufer.de>\n"
Expand Down
6 changes: 3 additions & 3 deletions fleetpings/locale/django.pot
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2024-11-28 00:00+0100\n"
"Project-Id-Version: AA Fleet Pings 3.4.2\n"
"Report-Msgid-Bugs-To: https://github.com/ppfeufer/aa-fleetpings/issues\n"
"POT-Creation-Date: 2024-12-14 17:49+0100\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
Expand Down
4 changes: 2 additions & 2 deletions fleetpings/locale/es/LC_MESSAGES/django.po
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
# Geovanny David Morales De la cruz <moralesgeovanny1996@gmail.com>, 2023, 2024.
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"Project-Id-Version: AA Fleet Pings 3.4.2\n"
"Report-Msgid-Bugs-To: https://github.com/ppfeufer/aa-fleetpings/issues\n"
"POT-Creation-Date: 2024-11-28 00:00+0100\n"
"PO-Revision-Date: 2024-12-02 17:40+0000\n"
"Last-Translator: Peter Pfeufer <info@ppfeufer.de>\n"
Expand Down
4 changes: 2 additions & 2 deletions fleetpings/locale/fr_FR/LC_MESSAGES/django.po
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
# balbozorre <loic.petiot2002@gmail.com>, 2024.
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"Project-Id-Version: AA Fleet Pings 3.4.2\n"
"Report-Msgid-Bugs-To: https://github.com/ppfeufer/aa-fleetpings/issues\n"
"POT-Creation-Date: 2024-11-28 00:00+0100\n"
"PO-Revision-Date: 2024-12-13 16:15+0000\n"
"Last-Translator: Peter Pfeufer <info@ppfeufer.de>\n"
Expand Down
4 changes: 2 additions & 2 deletions fleetpings/locale/it_IT/LC_MESSAGES/django.po
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
# Peter Pfeufer <info@ppfeufer.de>, 2024.
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"Project-Id-Version: AA Fleet Pings 3.4.2\n"
"Report-Msgid-Bugs-To: https://github.com/ppfeufer/aa-fleetpings/issues\n"
"POT-Creation-Date: 2024-11-28 00:00+0100\n"
"PO-Revision-Date: 2024-11-09 11:25+0000\n"
"Last-Translator: Peter Pfeufer <info@ppfeufer.de>\n"
Expand Down
4 changes: 2 additions & 2 deletions fleetpings/locale/ja/LC_MESSAGES/django.po
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
# Peter Pfeufer <info@ppfeufer.de>, 2024.
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"Project-Id-Version: AA Fleet Pings 3.4.2\n"
"Report-Msgid-Bugs-To: https://github.com/ppfeufer/aa-fleetpings/issues\n"
"POT-Creation-Date: 2024-11-28 00:00+0100\n"
"PO-Revision-Date: 2024-11-09 11:25+0000\n"
"Last-Translator: Peter Pfeufer <info@ppfeufer.de>\n"
Expand Down
4 changes: 2 additions & 2 deletions fleetpings/locale/ko_KR/LC_MESSAGES/django.po
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
# Mind of the Raven <okanieva@gmail.com>, 2024.
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"Project-Id-Version: AA Fleet Pings 3.4.2\n"
"Report-Msgid-Bugs-To: https://github.com/ppfeufer/aa-fleetpings/issues\n"
"POT-Creation-Date: 2024-11-28 00:00+0100\n"
"PO-Revision-Date: 2024-11-09 11:25+0000\n"
"Last-Translator: Peter Pfeufer <info@ppfeufer.de>\n"
Expand Down
4 changes: 2 additions & 2 deletions fleetpings/locale/nl_NL/LC_MESSAGES/django.po
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
#
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"Project-Id-Version: AA Fleet Pings 3.4.2\n"
"Report-Msgid-Bugs-To: https://github.com/ppfeufer/aa-fleetpings/issues\n"
"POT-Creation-Date: 2024-11-28 00:00+0100\n"
"PO-Revision-Date: 2024-05-10 14:05+0000\n"
"Last-Translator: Anonymous <noreply@weblate.org>\n"
Expand Down
4 changes: 2 additions & 2 deletions fleetpings/locale/pl_PL/LC_MESSAGES/django.po
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
# Peter Pfeufer <info@ppfeufer.de>, 2024.
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"Project-Id-Version: AA Fleet Pings 3.4.2\n"
"Report-Msgid-Bugs-To: https://github.com/ppfeufer/aa-fleetpings/issues\n"
"POT-Creation-Date: 2024-11-28 00:00+0100\n"
"PO-Revision-Date: 2024-05-10 14:05+0000\n"
"Last-Translator: Peter Pfeufer <info@ppfeufer.de>\n"
Expand Down
4 changes: 2 additions & 2 deletions fleetpings/locale/ru/LC_MESSAGES/django.po
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
# Roycce_ <malyasov.roma@mail.ru>, 2024.
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"Project-Id-Version: AA Fleet Pings 3.4.2\n"
"Report-Msgid-Bugs-To: https://github.com/ppfeufer/aa-fleetpings/issues\n"
"POT-Creation-Date: 2024-11-28 00:00+0100\n"
"PO-Revision-Date: 2024-11-09 11:25+0000\n"
"Last-Translator: Peter Pfeufer <info@ppfeufer.de>\n"
Expand Down
4 changes: 2 additions & 2 deletions fleetpings/locale/sk/LC_MESSAGES/django.po
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
#
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"Project-Id-Version: AA Fleet Pings 3.4.2\n"
"Report-Msgid-Bugs-To: https://github.com/ppfeufer/aa-fleetpings/issues\n"
"POT-Creation-Date: 2024-11-28 00:00+0100\n"
"PO-Revision-Date: 2024-05-10 14:05+0000\n"
"Last-Translator: Anonymous <noreply@weblate.org>\n"
Expand Down
4 changes: 2 additions & 2 deletions fleetpings/locale/uk/LC_MESSAGES/django.po
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
# Madz Cooper <i.sviridjuk@gmail.com>, 2024.
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"Project-Id-Version: AA Fleet Pings 3.4.2\n"
"Report-Msgid-Bugs-To: https://github.com/ppfeufer/aa-fleetpings/issues\n"
"POT-Creation-Date: 2024-11-28 00:00+0100\n"
"PO-Revision-Date: 2024-11-09 11:25+0000\n"
"Last-Translator: Peter Pfeufer <info@ppfeufer.de>\n"
Expand Down
4 changes: 2 additions & 2 deletions fleetpings/locale/zh_Hans/LC_MESSAGES/django.po
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
# Peter Pfeufer <info@ppfeufer.de>, 2024.
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"Project-Id-Version: AA Fleet Pings 3.4.2\n"
"Report-Msgid-Bugs-To: https://github.com/ppfeufer/aa-fleetpings/issues\n"
"POT-Creation-Date: 2024-11-28 00:00+0100\n"
"PO-Revision-Date: 2024-11-09 11:25+0000\n"
"Last-Translator: Peter Pfeufer <info@ppfeufer.de>\n"
Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ requires =
tox>=4.2
env_list =
allianceauth-{latest, testing}
py{312, 311, 310}
py{313, 312, 311, 310}
no_package = true
usedevelop = True

Expand Down

0 comments on commit cde1d44

Please sign in to comment.