Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

731 #732

Open
wants to merge 7 commits into
base: master
Choose a base branch
from
Open

731 #732

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 5 additions & 8 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
language: python
python:
- 3.7
install:
- pip install -q pipenv codecov
- pipenv sync --dev
script:
- 3.10

install:
- pip install -q -r requirements-dev.txt
- flake8
- pytest libpythonpro --cov=libpythonpro
after_success:
- codecov
- pytest Libpythonpro Carlos
1 change: 1 addition & 0 deletions Libpythonpro/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
__version__ = '0.2'
7 changes: 5 additions & 2 deletions libpythonpro/github_api.py → Libpythonpro/github_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,13 @@
def buscar_avatar(usuario):
"""
Busca o avatar de um usuário no Github

:param usuario: str com o nome de usuário no github
:Param usuário: str com o nome usuário no github
:return: str com o link do avatar
"""
url = f'https://api.github.com/users/{usuario}'
resp = requests.get(url)
return resp.json()['avatar_url']


if __name__ == '__main__':
print(buscar_avatar('Carloshbfreire'))
File renamed without changes.
2 changes: 2 additions & 0 deletions Libpythonpro/tests/test_exemplo.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
def test_int():
assert 1 == 1
15 changes: 10 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,19 +11,21 @@ Link para o curso [Python Pro](https://www.python.pro.br/)
[![Python 3](https://pyup.io/repos/github/pythonprobr/libpythonpro/python-3-shield.svg)](https://pyup.io/repos/github/pythonprobr/libpythonpro/)
[![codecov](https://codecov.io/gh/pythonprobr/libpythonpro/branch/master/graph/badge.svg)](https://codecov.io/gh/pythonprobr/libpythonpro)

Suportada versão 3 de Python

Suportada versão 3 de Python Carlinhos

Para instalar:

```console
pip install pipenv
pipenv install --dev
python3 -m venv .venv
source .venv/bin/activate
pip install -r requirements-dev.txt
```

Para conferir qualidade de código:

```console
pipenv run flake8
flake8
```

Tópicos a serem abordados:
Expand All @@ -32,4 +34,7 @@ Tópicos a serem abordados:
3. Pip
4. Mock
5. Pipenv


Revisando aula sobre Fork.

Link do Curso [Python pro](https://pythonpro.com.br/)
1 change: 0 additions & 1 deletion libpythonpro/__init__.py

This file was deleted.

31 changes: 0 additions & 31 deletions libpythonpro/spam/db.py

This file was deleted.

9 changes: 0 additions & 9 deletions libpythonpro/spam/enviador_de_email.py

This file was deleted.

13 changes: 0 additions & 13 deletions libpythonpro/spam/main.py

This file was deleted.

5 changes: 0 additions & 5 deletions libpythonpro/spam/modelos.py

This file was deleted.

Empty file removed libpythonpro/tests/__init__.py
Empty file.
2 changes: 0 additions & 2 deletions libpythonpro/tests/test_exemplo.py

This file was deleted.

Empty file.
20 changes: 0 additions & 20 deletions libpythonpro/tests/test_spam/conftest.py

This file was deleted.

38 changes: 0 additions & 38 deletions libpythonpro/tests/test_spam/test_enviador_de_email.py

This file was deleted.

49 changes: 0 additions & 49 deletions libpythonpro/tests/test_spam/test_envio_para_base_de_usuarios.py

This file was deleted.

28 changes: 0 additions & 28 deletions libpythonpro/tests/test_spam/test_github_api.py

This file was deleted.

17 changes: 0 additions & 17 deletions libpythonpro/tests/test_spam/test_usuarios.py

This file was deleted.

6 changes: 3 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ def find_package_data(
return out


PACKAGE = "libpythonpro"
PACKAGE = "Libpythonpro"
NAME = PACKAGE
DESCRIPTION = "Módulo para exemplificar construção de projetos Python no curso PyTools"
AUTHOR = "Renzo Nuccitelli"
Expand All @@ -117,7 +117,7 @@ def find_package_data(
long_description_content_type='text/markdown',
author=AUTHOR,
author_email=AUTHOR_EMAIL,
license="GNU AFFERO GENERAL PUBLIC LICENSE",
license=read('GNU AFFERO GENERAL PUBLIC LICENSE'),
url=URL,
packages=find_packages(exclude=["tests.*", "tests"]),
package_data=find_package_data(PACKAGE, only_in_packages=False),
Expand All @@ -128,7 +128,7 @@ def find_package_data(
"License :: OSI Approved :: GNU Affero General Public License v3 or later (AGPLv3+)",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.10",
"Framework :: Pytest",
],
install_requires=[
Expand Down