-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3 from koldakov/feature/rewrite-project
Rewrite the project
- Loading branch information
Showing
119 changed files
with
5,056 additions
and
3,012 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 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 |
---|---|---|
@@ -0,0 +1,32 @@ | ||
# Changelog | ||
|
||
All notable changes to this project will be documented in this file. | ||
|
||
This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). | ||
|
||
## [1.0.0] - 2024-06-01 | ||
|
||
### Added | ||
|
||
- API: Character selection by id | ||
- API: Paginated characters selection by gender, status, species, order by, order by direction | ||
- API: Character search by name | ||
- API: Episode selection by id | ||
- API: Paginated episodes selection | ||
- API: Season selection by id | ||
- API: Paginated seasons selection | ||
- API: Callbacks for characters, episodes, seasons | ||
- API: Server Sent Events (SSE) for characters | ||
- API: User registration | ||
- API: User authorization | ||
- API: User activation | ||
- API: User confirmation resend message | ||
- API: User information update | ||
- GraphQL: Character selection by id | ||
- GraphQL: Paginated (Edged) characters selection by gender, status, species, order by, order by direction | ||
- GraphQL: Episode selection by id | ||
- GraphQL: Paginated (Edged) episodes selection | ||
- GraphQL: Season selection by id | ||
- GraphQL: Paginated (Edged) seasons selection | ||
|
||
[1.0.0]: https://github.com/koldakov/futuramaapi/releases/tag/1.0.0 |
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
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.