Project was write in poetry, but also have a standart reqs file (requirements.txt).
Better use the poetry, cause poetry more complex and functional then pip or pipenv, and poetry has a written scripts which make ease develop process.
- Copy language from directory locale (example en);
- Change name on you need (example fr);
- Entry in
src/locale/fr/LC_MESSAGE/Keygram.po
; - Change all words on what you need (in section msgstr);
After that write this commands in terminal:
msgfmt src/locale/fr/LC_MESSAGES/Keygram.po -o src/locale/en/LC_MESSAGES/Keygram.mo
Or you can run this command, if you install poetry
poetry run update_langs
- Project use
sqlalchemy
, andalembic
for work with migrations; - For create a new migratione entry in terminal and change directory to
src/
; - Write command
alembic revision -m "What you do in this revision message"
and execute it; - After that, alembic create a file in
src/alembic/versions/
with end of your revision message, enter it; - In this file you have a two method, upgrade and downgrade, add in upgrade what you need, and in downgrade what you need if you want downgrade in future;
- Leave from file and write a command
alembic upgrade head
. - Excelent!
More detail you found in docs to alembic