Skip to content

Commit

Permalink
Gerencia dependencias com poetry
Browse files Browse the repository at this point in the history
  • Loading branch information
andresionek91 committed Jul 8, 2021
1 parent 93ab452 commit 5e6b3f2
Show file tree
Hide file tree
Showing 7 changed files with 132 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -250,5 +250,5 @@ cython_debug/

# End of https://www.toptal.com/developers/gitignore/api/python,pycharm

day-summary/*
day-summary/
*.checkpoint
6 changes: 6 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
clean:
rm -rf .venv day-summary *.checkpoint .pytest_cache .coverage

init: clean
pip install poetry
poetry install
2 changes: 1 addition & 1 deletion mercado_bitcoin/apis.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ def __init__(self, coin: str) -> None:
def _get_endpoint(self, **kwargs) -> str:
pass

@on_exception(constant, ratelimit.exception.RateLimitException, max_tries=10)
@on_exception(expo, ratelimit.exception.RateLimitException, max_tries=15)
@ratelimit.limits(calls=30, period=30)
@on_exception(expo, requests.exceptions.HTTPError, max_tries=10)
def get_data(self, **kwargs) -> dict:
Expand Down
104 changes: 104 additions & 0 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions poetry.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[virtualenvs]
create = true
in-project = true
17 changes: 17 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
[tool.poetry]
name = "mercado_bitcoin_lambda"
version = "0.1.0"
description = ""
authors = ["Andre <[email protected]>"]

[tool.poetry.dependencies]
python = "^3.8"
requests = "^2.25.1"
ratelimit = "^2.2.1"
backoff = "^1.10.0"

[tool.poetry.dev-dependencies]

[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"
1 change: 0 additions & 1 deletion requirements.txt

This file was deleted.

0 comments on commit 5e6b3f2

Please sign in to comment.