-
-
Notifications
You must be signed in to change notification settings - Fork 5.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
➕ Use Poetry for package management (#144)
* use poetry insted of Pipfile * fix python black version * set prepare.sh as executable * revert postgres 11 * use multi-build stage in docker * fix poetry path * 🔥 Remove uneeded changes * 🔧 Move and update Poetry file * 🙈 Update gitignore * 🐳 Update Dockerfiles to use Poetry * 🐳 Update Dockerfiles with Poetry * 🔧 Add SERVER_NAME required by Celery worker * 🐳 Update Poetry install to avoid env conflicts * ➕ Add Pytest to Poetry dependencies Co-authored-by: Sebastián Ramírez <[email protected]>
- Loading branch information
Showing
8 changed files
with
76 additions
and
44 deletions.
There are no files selected for viewing
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 +1,2 @@ | ||
__pycache__ | ||
app.egg-info |
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 |
---|---|---|
@@ -0,0 +1,40 @@ | ||
[tool.poetry] | ||
name = "app" | ||
version = "0.1.0" | ||
description = "" | ||
authors = ["Admin <[email protected]>"] | ||
|
||
[tool.poetry.dependencies] | ||
python = "^3.7" | ||
uvicorn = "^0.11.3" | ||
fastapi = "^0.54.1" | ||
pyjwt = "^1.7.1" | ||
python-multipart = "^0.0.5" | ||
email-validator = "^1.0.5" | ||
requests = "^2.23.0" | ||
celery = "^4.4.2" | ||
passlib = {extras = ["bcrypt"], version = "^1.7.2"} | ||
tenacity = "^6.1.0" | ||
pydantic = "^1.4" | ||
emails = "^0.5.15" | ||
raven = "^6.10.0" | ||
gunicorn = "^20.0.4" | ||
jinja2 = "^2.11.2" | ||
psycopg2-binary = "^2.8.5" | ||
alembic = "^1.4.2" | ||
sqlalchemy = "^1.3.16" | ||
pytest = "^5.4.1" | ||
|
||
[tool.poetry.dev-dependencies] | ||
mypy = "^0.770" | ||
black = "^19.10b0" | ||
isort = "^4.3.21" | ||
autoflake = "^1.3.1" | ||
flake8 = "^3.7.9" | ||
pytest = "^5.4.1" | ||
jupyter = "^1.0.0" | ||
vulture = "^1.4" | ||
|
||
[build-system] | ||
requires = ["poetry>=0.12"] | ||
build-backend = "poetry.masonry.api" |
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
12 changes: 11 additions & 1 deletion
12
{{cookiecutter.project_slug}}/backend/celeryworker.dockerfile
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