diff --git a/.idea/.gitignore b/.idea/.gitignore
new file mode 100644
index 000000000..26d33521a
--- /dev/null
+++ b/.idea/.gitignore
@@ -0,0 +1,3 @@
+# Default ignored files
+/shelf/
+/workspace.xml
diff --git a/.idea/Projeto.iml b/.idea/Projeto.iml
new file mode 100644
index 000000000..e85cfa870
--- /dev/null
+++ b/.idea/Projeto.iml
@@ -0,0 +1,17 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/inspectionProfiles/profiles_settings.xml b/.idea/inspectionProfiles/profiles_settings.xml
new file mode 100644
index 000000000..105ce2da2
--- /dev/null
+++ b/.idea/inspectionProfiles/profiles_settings.xml
@@ -0,0 +1,6 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/misc.xml b/.idea/misc.xml
new file mode 100644
index 000000000..ca4672524
--- /dev/null
+++ b/.idea/misc.xml
@@ -0,0 +1,4 @@
+
+
+
+
\ No newline at end of file
diff --git a/.idea/modules.xml b/.idea/modules.xml
new file mode 100644
index 000000000..99da9f5c3
--- /dev/null
+++ b/.idea/modules.xml
@@ -0,0 +1,8 @@
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/vcs.xml b/.idea/vcs.xml
new file mode 100644
index 000000000..94a25f7f4
--- /dev/null
+++ b/.idea/vcs.xml
@@ -0,0 +1,6 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.travis.yml b/.travis.yml
index 6694375b7..2c9fe5a17 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -1,11 +1,8 @@
language: python
python:
- - 3.7
+ - 3.9
install:
- - pip install -q pipenv codecov
- - pipenv sync --dev
+ - pip install -r requirements-dev.txt
script:
- flake8
- - pytest libpythonpro --cov=libpythonpro
-after_success:
- - codecov
\ No newline at end of file
+ - pytest libpythonpro
\ No newline at end of file
diff --git a/Pipfile b/Pipfile
index af5c7333d..3677ac1af 100644
--- a/Pipfile
+++ b/Pipfile
@@ -14,4 +14,4 @@ pytest-mock = "*"
requests = "*"
[requires]
-python_version = "3.7"
+python_version = "3.9"
diff --git a/README.md b/README.md
index 676c14d7f..6b76d15b4 100644
--- a/README.md
+++ b/README.md
@@ -6,7 +6,7 @@ Nesse curso é ensinado como contribuir com projetos de código aberto
Link para o curso [Python Pro](https://www.python.pro.br/)
-[](https://travis-ci.org/pythonprobr/libpythonpro)
+[](https://app.travis-ci.com/Dansilllva/libpythonpro)
[](https://pyup.io/repos/github/pythonprobr/libpythonpro/)
[](https://pyup.io/repos/github/pythonprobr/libpythonpro/)
[](https://codecov.io/gh/pythonprobr/libpythonpro)
@@ -16,14 +16,15 @@ Suportada versão 3 de Python
Para instalar:
```console
-pip install pipenv
-pipenv install --dev
+python3 -m venv .venv
+.venv\Scripts\activate
+pip install -r requirements-dev.txt
```
Para conferir qualidade de código:
```console
-pipenv run flake8
+flake8
```
Tópicos a serem abordados:
diff --git a/libpythonpro/github_api.py b/libpythonpro/github_api.py
index 8b0fbafb9..93d98d1cf 100644
--- a/libpythonpro/github_api.py
+++ b/libpythonpro/github_api.py
@@ -11,3 +11,7 @@ def buscar_avatar(usuario):
url = f'https://api.github.com/users/{usuario}'
resp = requests.get(url)
return resp.json()['avatar_url']
+
+
+if __name__ == '__main__':
+ print(buscar_avatar('Dansilllva'))
diff --git a/requirements-dev.txt b/requirements-dev.txt
new file mode 100644
index 000000000..63452185b
Binary files /dev/null and b/requirements-dev.txt differ
diff --git a/requirements.txt b/requirements.txt
new file mode 100644
index 000000000..c54a86932
Binary files /dev/null and b/requirements.txt differ