-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
105 changed files
with
3,329 additions
and
3,495 deletions.
There are no files selected for viewing
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,27 @@ | ||
SHELL = /bin/bash | ||
PYTHON = python3.12 | ||
|
||
help: # Display this message | ||
@sed -ne '/@sed/!s/# //p' $(MAKEFILE_LIST) | ||
|
||
messages-init: # locale=LANG, init LANG language | ||
@test $${locale?Please specify locale. Example \"locale=en_CA\"} | ||
@pybabel init -l $(locale) -i locale/messages.pot -d locale | ||
install-dev: # Install DEV/TEST Environ and dependencies | ||
@echo "Upgrading pip" | ||
@$(PYTHON) -m pip install --upgrade pip | ||
@echo "Installing poetry" | ||
@$(PYTHON) -m pip install poetry | ||
@echo "Installing dependencies" | ||
@$(PYTHON) -m poetry install | ||
|
||
messages-extract: # Extract messages to locale/messages.pot | ||
@pybabel extract \ | ||
--version=0.0.1 \ | ||
[email protected] \ | ||
--project=FuturamaAPI \ | ||
--copyright-holder=FuturamaAPI \ | ||
--mapping babel.cfg \ | ||
--output-file=locale/messages.pot \ | ||
. | ||
install: # Install Environ and dependencies | ||
@echo "Upgrading pip" | ||
@$(PYTHON) -m pip install --upgrade pip | ||
@echo "Installing poetry" | ||
@$(PYTHON) -m pip install poetry | ||
@echo "Installing dependencies" | ||
@$(PYTHON) -m poetry install --without dev --without test | ||
|
||
messages: # Update all locales | ||
@$(MAKE) messages-extract | ||
@pybabel update --input-file=locale/messages.pot --output-dir=locale | ||
test: # Run tests | ||
@poetry run $(PYTHON) -m pytest | ||
|
||
messages-compile: # Generate .mo files for all locales | ||
@pybabel compile --directory=locale | ||
|
||
tests: # Run tests | ||
@python -m pytest | ||
migrate: # Migrate | ||
@poetry run $(PYTHON) -m alembic upgrade head |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.