From 7e7bfceb268978893af3c2e2b89f14fb81fad3da Mon Sep 17 00:00:00 2001 From: guilherme pires Date: Mon, 18 Apr 2022 17:32:21 -0300 Subject: [PATCH 01/15] Atividade utilizando fork , commit --- MANIFEST.in | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/MANIFEST.in b/MANIFEST.in index 74215c3ee..55f735539 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -1,2 +1,4 @@ include README.md -include LICENSE \ No newline at end of file +include LICENSE + +Nesse curso e ensinado como constribuir com projetos de códigos abertos e muito mais sobre Python \ No newline at end of file From 0681d7b08db2781f56ef52641ee856b5f4913078 Mon Sep 17 00:00:00 2001 From: guilherme pires Date: Mon, 18 Apr 2022 17:40:54 -0300 Subject: [PATCH 02/15] Atualizando o link do curso --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 676c14d7f..ee07156ea 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ Módulo para exemplificar construção de projetos Python no curso PyTools Nesse curso é ensinado como contribuir com projetos de código aberto -Link para o curso [Python Pro](https://www.python.pro.br/) +Link para o curso [Python Pro](https://plataforma.dev.pro.br/) [![Build Status](https://travis-ci.org/pythonprobr/libpythonpro.svg?branch=master)](https://travis-ci.org/pythonprobr/libpythonpro) [![Updates](https://pyup.io/repos/github/pythonprobr/libpythonpro/shield.svg)](https://pyup.io/repos/github/pythonprobr/libpythonpro/) From 42aa06d1a43f3a484f51c46250188ad707f7df10 Mon Sep 17 00:00:00 2001 From: guilherme pires Date: Mon, 18 Apr 2022 22:18:12 -0300 Subject: [PATCH 03/15] usando pip requests --- libpythonpro/github_api.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libpythonpro/github_api.py b/libpythonpro/github_api.py index 8b0fbafb9..e8d3dbf54 100644 --- a/libpythonpro/github_api.py +++ b/libpythonpro/github_api.py @@ -11,3 +11,6 @@ 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('GuilhermeePires')) \ No newline at end of file From 580a483a7e2a5225757428d6d0717c501140dc28 Mon Sep 17 00:00:00 2001 From: guilherme pires Date: Mon, 18 Apr 2022 23:16:05 -0300 Subject: [PATCH 04/15] =?UTF-8?q?adicionada=20flake8=20como=20depend=C3=AA?= =?UTF-8?q?ncia=20close=20#12?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 17 +++++++++++++++++ .flake8 => libpythonpro/.flake8 | 2 +- libpythonpro/github_api.py | 1 + libpythonpro/tests/requirements-dev.txt | 5 +++++ 4 files changed, 24 insertions(+), 1 deletion(-) rename .flake8 => libpythonpro/.flake8 (70%) create mode 100644 libpythonpro/tests/requirements-dev.txt diff --git a/README.md b/README.md index ee07156ea..aa7811725 100644 --- a/README.md +++ b/README.md @@ -6,6 +6,23 @@ Nesse curso é ensinado como contribuir com projetos de código aberto Link para o curso [Python Pro](https://plataforma.dev.pro.br/) +Suportada versão 3 de python + +Para instalar: + +'''console +python3 -m venv venv +source venv/bin/activate +pip install -r requirements-dev.txt +''' + +Para conferir qualidade do código: + +''' +console +flake8 +''' + [![Build Status](https://travis-ci.org/pythonprobr/libpythonpro.svg?branch=master)](https://travis-ci.org/pythonprobr/libpythonpro) [![Updates](https://pyup.io/repos/github/pythonprobr/libpythonpro/shield.svg)](https://pyup.io/repos/github/pythonprobr/libpythonpro/) [![Python 3](https://pyup.io/repos/github/pythonprobr/libpythonpro/python-3-shield.svg)](https://pyup.io/repos/github/pythonprobr/libpythonpro/) diff --git a/.flake8 b/libpythonpro/.flake8 similarity index 70% rename from .flake8 rename to libpythonpro/.flake8 index 796971547..b6d955240 100644 --- a/.flake8 +++ b/libpythonpro/.flake8 @@ -1,3 +1,3 @@ [flake8] max-line-length = 120 -exclude=.venv \ No newline at end of file +exclude=venv \ No newline at end of file diff --git a/libpythonpro/github_api.py b/libpythonpro/github_api.py index e8d3dbf54..c0c826716 100644 --- a/libpythonpro/github_api.py +++ b/libpythonpro/github_api.py @@ -1,6 +1,7 @@ import requests + def buscar_avatar(usuario): """ Busca o avatar de um usuário no Github diff --git a/libpythonpro/tests/requirements-dev.txt b/libpythonpro/tests/requirements-dev.txt new file mode 100644 index 000000000..492b18dca --- /dev/null +++ b/libpythonpro/tests/requirements-dev.txt @@ -0,0 +1,5 @@ +flake8==4.0.1 +mccabe==0.6.1 +pycodestyle==2.8.0 +pyflakes==2.4.0 +-r requirements.txtflake8 From ccfb424d26c5e823b6947b9eacaa76c3cc326529 Mon Sep 17 00:00:00 2001 From: guilherme pires Date: Mon, 18 Apr 2022 23:33:00 -0300 Subject: [PATCH 05/15] Configurado Travis Cl close #13 --- README.md | 2 ++ libpythonpro/.travis.yml | 8 ++++++++ 2 files changed, 10 insertions(+) create mode 100644 libpythonpro/.travis.yml diff --git a/README.md b/README.md index aa7811725..5db69ab76 100644 --- a/README.md +++ b/README.md @@ -6,6 +6,8 @@ Nesse curso é ensinado como contribuir com projetos de código aberto Link para o curso [Python Pro](https://plataforma.dev.pro.br/) +[![Build Status](https://app.travis-ci.com/GuilhermeePires/libpythonpro.svg?branch=master)](https://app.travis-ci.com/GuilhermeePires/libpythonpro) + Suportada versão 3 de python Para instalar: diff --git a/libpythonpro/.travis.yml b/libpythonpro/.travis.yml new file mode 100644 index 000000000..992e386e0 --- /dev/null +++ b/libpythonpro/.travis.yml @@ -0,0 +1,8 @@ +language: python +python: + -3.10 + -2.7 +install: + - pip install -r requirements-dev.txt +script: + -flake8 \ No newline at end of file From 48d06458bbed4188fbd4ddf7c2adc74d17167473 Mon Sep 17 00:00:00 2001 From: guilherme pires Date: Mon, 18 Apr 2022 23:40:25 -0300 Subject: [PATCH 06/15] Removendo detalhes de dependencias --- libpythonpro/.travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libpythonpro/.travis.yml b/libpythonpro/.travis.yml index 992e386e0..4579c63b4 100644 --- a/libpythonpro/.travis.yml +++ b/libpythonpro/.travis.yml @@ -3,6 +3,6 @@ python: -3.10 -2.7 install: - - pip install -r requirements-dev.txt + - pip install -q -r requirements-dev.txt script: -flake8 \ No newline at end of file From 4ece9e715b45ae3a1102ec49ebcd67711a6784f1 Mon Sep 17 00:00:00 2001 From: guilherme pires Date: Tue, 19 Apr 2022 09:51:41 -0300 Subject: [PATCH 07/15] setup pyio --- libpythonpro/requirements-dev.txt | 5 ++ libpythonpro/requirements.txt | 10 +++ libpythonpro/setup1.py | 138 ++++++++++++++++++++++++++++++ 3 files changed, 153 insertions(+) create mode 100644 libpythonpro/requirements-dev.txt create mode 100644 libpythonpro/requirements.txt create mode 100644 libpythonpro/setup1.py diff --git a/libpythonpro/requirements-dev.txt b/libpythonpro/requirements-dev.txt new file mode 100644 index 000000000..492b18dca --- /dev/null +++ b/libpythonpro/requirements-dev.txt @@ -0,0 +1,5 @@ +flake8==4.0.1 +mccabe==0.6.1 +pycodestyle==2.8.0 +pyflakes==2.4.0 +-r requirements.txtflake8 diff --git a/libpythonpro/requirements.txt b/libpythonpro/requirements.txt new file mode 100644 index 000000000..d4a1bd41f --- /dev/null +++ b/libpythonpro/requirements.txt @@ -0,0 +1,10 @@ +certifi==2021.10.8 +chardet==4.0.0 +charset-normalizer==2.0.12 +flake8==4.0.1 +idna==3.3 +mccabe==0.7.0 +pycodestyle==2.8.0 +pyflakes==2.4.0 +requests==2.27.1 +urllib3==1.26.9 \ No newline at end of file diff --git a/libpythonpro/setup1.py b/libpythonpro/setup1.py new file mode 100644 index 000000000..47af2f0f8 --- /dev/null +++ b/libpythonpro/setup1.py @@ -0,0 +1,138 @@ +import codecs +import os +import sys + +from distutils.util import convert_path +from fnmatch import fnmatchcase +from setuptools import setup, find_packages + + +def read(fname): + return codecs.open(os.path.join(os.path.dirname(__file__), fname)).read() + + +# Provided as an attribute, so you can append to these instead +# of replicating them: +standard_exclude = ["*.py", "*.pyc", "*$py.class", "*~", ".*", "*.bak"] +standard_exclude_directories = [ + ".*", "CVS", "_darcs", "./build", "./dist", "EGG-INFO", "*.egg-info" +] + + +# (c) 2005 Ian Bicking and contributors; written for Paste (http://pythonpaste.org) +# Licensed under the MIT license: http://www.opensource.org/licenses/mit-license.php +# Note: you may want to copy this into your setup.py file verbatim, as +# you can't import this from another package, when you don't know if +# that package is installed yet. +def find_package_data( + where=".", + package="", + exclude=standard_exclude, + exclude_directories=standard_exclude_directories, + only_in_packages=True, + show_ignored=False): + """ + Return a dictionary suitable for use in ``package_data`` + in a distutils ``setup.py`` file. + + The dictionary looks like:: + + {"package": [files]} + + Where ``files`` is a list of all the files in that package that + don"t match anything in ``exclude``. + + If ``only_in_packages`` is true, then top-level directories that + are not packages won"t be included (but directories under packages + will). + + Directories matching any pattern in ``exclude_directories`` will + be ignored; by default directories with leading ``.``, ``CVS``, + and ``_darcs`` will be ignored. + + If ``show_ignored`` is true, then all the files that aren"t + included in package data are shown on stderr (for debugging + purposes). + + Note patterns use wildcards, or can be exact paths (including + leading ``./``), and all searching is case-insensitive. + """ + out = {} + stack = [(convert_path(where), "", package, only_in_packages)] + while stack: + where, prefix, package, only_in_packages = stack.pop(0) + for name in os.listdir(where): + fn = os.path.join(where, name) + if os.path.isdir(fn): + bad_name = False + for pattern in exclude_directories: + if (fnmatchcase(name, pattern) + or fn.lower() == pattern.lower()): + bad_name = True + if show_ignored: + print("Directory %s ignored by pattern %s" % + (fn, pattern), file=sys.stderr) + break + if bad_name: + continue + if (os.path.isfile(os.path.join(fn, "__init__.py")) + and not prefix): + if not package: + new_package = name + else: + new_package = package + "." + name + stack.append((fn, "", new_package, False)) + else: + stack.append((fn, prefix + name + "/", package, only_in_packages)) + elif package or not only_in_packages: + # is a file + bad_name = False + for pattern in exclude: + if (fnmatchcase(name, pattern) + or fn.lower() == pattern.lower()): + bad_name = True + if show_ignored: + print("File %s ignored by pattern %s" % + (fn, pattern), file=sys.stderr) + break + if bad_name: + continue + out.setdefault(package, []).append(prefix + name) + return out + + +PACKAGE = "libpythonpro" +NAME = PACKAGE +DESCRIPTION = "Módulo para exemplificar construção de projetos Python no curso PyTools" +AUTHOR = "Guilherme da Silva Pires" +AUTHOR_EMAIL = "guilhermedasilvapires1996@gmail.com" +URL = "https://github.com/GuilhermeePires/libpythonpro" +VERSION = __import__(PACKAGE).__version__ + +setup( + name=NAME, + version=VERSION, + description=DESCRIPTION, + long_description=read('README.md'), + long_description_content_type='text/markdown', + author=AUTHOR, + author_email=AUTHOR_EMAIL, + license=read('LICENSE'), + url=URL, + packages=find_packages(exclude=["tests.*", "tests"]), + package_data=find_package_data(PACKAGE, only_in_packages=False), + classifiers=[ + "Development Status :: 2 - Pre-Alpha", + "Environment :: Console", + "Intended Audience :: Developers", + "License :: OSI Approved :: GNU Affero General Public License v3 or later (AGPLv3+)", + "Operating System :: OS Independent", + "Programming Language :: Python", + "Programming Language :: Python :: 3.6", + "Framework :: Pytest", + ], + install_requires=[ + 'requests' + ], + zip_safe=False, +) From fba3179195343d3865afb1def83eac1c0f12dab3 Mon Sep 17 00:00:00 2001 From: guilherme pires Date: Wed, 20 Apr 2022 21:02:55 -0300 Subject: [PATCH 08/15] ajeitando pasta --- libpythonpro/.flake8 => .flake8 | 0 .travis.yml | 11 +- libpythonpro/.travis.yml | 8 - libpythonpro/__init__.py | 2 +- libpythonpro/requirements.txt | 10 -- libpythonpro/setup1.py | 138 ------------------ libpythonpro/tests/README.md | 54 +++++++ libpythonpro/tests/__init__.py | 1 + libpythonpro/tests/requirements-dev.txt | 2 +- ...quirements-dev.txt => requirements-dev.txt | 2 +- requirements.txt | 1 + setup.py | 10 +- 12 files changed, 68 insertions(+), 171 deletions(-) rename libpythonpro/.flake8 => .flake8 (100%) delete mode 100644 libpythonpro/.travis.yml delete mode 100644 libpythonpro/requirements.txt delete mode 100644 libpythonpro/setup1.py create mode 100644 libpythonpro/tests/README.md rename libpythonpro/requirements-dev.txt => requirements-dev.txt (70%) create mode 100644 requirements.txt diff --git a/libpythonpro/.flake8 b/.flake8 similarity index 100% rename from libpythonpro/.flake8 rename to .flake8 diff --git a/.travis.yml b/.travis.yml index 6694375b7..4579c63b4 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,11 +1,8 @@ language: python python: - - 3.7 + -3.10 + -2.7 install: - - pip install -q pipenv codecov - - pipenv sync --dev + - pip install -q -r requirements-dev.txt script: - - flake8 - - pytest libpythonpro --cov=libpythonpro -after_success: - - codecov \ No newline at end of file + -flake8 \ No newline at end of file diff --git a/libpythonpro/.travis.yml b/libpythonpro/.travis.yml deleted file mode 100644 index 4579c63b4..000000000 --- a/libpythonpro/.travis.yml +++ /dev/null @@ -1,8 +0,0 @@ -language: python -python: - -3.10 - -2.7 -install: - - pip install -q -r requirements-dev.txt -script: - -flake8 \ No newline at end of file diff --git a/libpythonpro/__init__.py b/libpythonpro/__init__.py index b650ceb08..cfa34134b 100644 --- a/libpythonpro/__init__.py +++ b/libpythonpro/__init__.py @@ -1 +1 @@ -__version__ = '0.2' +__version__=0.1 \ No newline at end of file diff --git a/libpythonpro/requirements.txt b/libpythonpro/requirements.txt deleted file mode 100644 index d4a1bd41f..000000000 --- a/libpythonpro/requirements.txt +++ /dev/null @@ -1,10 +0,0 @@ -certifi==2021.10.8 -chardet==4.0.0 -charset-normalizer==2.0.12 -flake8==4.0.1 -idna==3.3 -mccabe==0.7.0 -pycodestyle==2.8.0 -pyflakes==2.4.0 -requests==2.27.1 -urllib3==1.26.9 \ No newline at end of file diff --git a/libpythonpro/setup1.py b/libpythonpro/setup1.py deleted file mode 100644 index 47af2f0f8..000000000 --- a/libpythonpro/setup1.py +++ /dev/null @@ -1,138 +0,0 @@ -import codecs -import os -import sys - -from distutils.util import convert_path -from fnmatch import fnmatchcase -from setuptools import setup, find_packages - - -def read(fname): - return codecs.open(os.path.join(os.path.dirname(__file__), fname)).read() - - -# Provided as an attribute, so you can append to these instead -# of replicating them: -standard_exclude = ["*.py", "*.pyc", "*$py.class", "*~", ".*", "*.bak"] -standard_exclude_directories = [ - ".*", "CVS", "_darcs", "./build", "./dist", "EGG-INFO", "*.egg-info" -] - - -# (c) 2005 Ian Bicking and contributors; written for Paste (http://pythonpaste.org) -# Licensed under the MIT license: http://www.opensource.org/licenses/mit-license.php -# Note: you may want to copy this into your setup.py file verbatim, as -# you can't import this from another package, when you don't know if -# that package is installed yet. -def find_package_data( - where=".", - package="", - exclude=standard_exclude, - exclude_directories=standard_exclude_directories, - only_in_packages=True, - show_ignored=False): - """ - Return a dictionary suitable for use in ``package_data`` - in a distutils ``setup.py`` file. - - The dictionary looks like:: - - {"package": [files]} - - Where ``files`` is a list of all the files in that package that - don"t match anything in ``exclude``. - - If ``only_in_packages`` is true, then top-level directories that - are not packages won"t be included (but directories under packages - will). - - Directories matching any pattern in ``exclude_directories`` will - be ignored; by default directories with leading ``.``, ``CVS``, - and ``_darcs`` will be ignored. - - If ``show_ignored`` is true, then all the files that aren"t - included in package data are shown on stderr (for debugging - purposes). - - Note patterns use wildcards, or can be exact paths (including - leading ``./``), and all searching is case-insensitive. - """ - out = {} - stack = [(convert_path(where), "", package, only_in_packages)] - while stack: - where, prefix, package, only_in_packages = stack.pop(0) - for name in os.listdir(where): - fn = os.path.join(where, name) - if os.path.isdir(fn): - bad_name = False - for pattern in exclude_directories: - if (fnmatchcase(name, pattern) - or fn.lower() == pattern.lower()): - bad_name = True - if show_ignored: - print("Directory %s ignored by pattern %s" % - (fn, pattern), file=sys.stderr) - break - if bad_name: - continue - if (os.path.isfile(os.path.join(fn, "__init__.py")) - and not prefix): - if not package: - new_package = name - else: - new_package = package + "." + name - stack.append((fn, "", new_package, False)) - else: - stack.append((fn, prefix + name + "/", package, only_in_packages)) - elif package or not only_in_packages: - # is a file - bad_name = False - for pattern in exclude: - if (fnmatchcase(name, pattern) - or fn.lower() == pattern.lower()): - bad_name = True - if show_ignored: - print("File %s ignored by pattern %s" % - (fn, pattern), file=sys.stderr) - break - if bad_name: - continue - out.setdefault(package, []).append(prefix + name) - return out - - -PACKAGE = "libpythonpro" -NAME = PACKAGE -DESCRIPTION = "Módulo para exemplificar construção de projetos Python no curso PyTools" -AUTHOR = "Guilherme da Silva Pires" -AUTHOR_EMAIL = "guilhermedasilvapires1996@gmail.com" -URL = "https://github.com/GuilhermeePires/libpythonpro" -VERSION = __import__(PACKAGE).__version__ - -setup( - name=NAME, - version=VERSION, - description=DESCRIPTION, - long_description=read('README.md'), - long_description_content_type='text/markdown', - author=AUTHOR, - author_email=AUTHOR_EMAIL, - license=read('LICENSE'), - url=URL, - packages=find_packages(exclude=["tests.*", "tests"]), - package_data=find_package_data(PACKAGE, only_in_packages=False), - classifiers=[ - "Development Status :: 2 - Pre-Alpha", - "Environment :: Console", - "Intended Audience :: Developers", - "License :: OSI Approved :: GNU Affero General Public License v3 or later (AGPLv3+)", - "Operating System :: OS Independent", - "Programming Language :: Python", - "Programming Language :: Python :: 3.6", - "Framework :: Pytest", - ], - install_requires=[ - 'requests' - ], - zip_safe=False, -) diff --git a/libpythonpro/tests/README.md b/libpythonpro/tests/README.md new file mode 100644 index 000000000..5db69ab76 --- /dev/null +++ b/libpythonpro/tests/README.md @@ -0,0 +1,54 @@ +# libpythonpro + +Módulo para exemplificar construção de projetos Python no curso PyTools + +Nesse curso é ensinado como contribuir com projetos de código aberto + +Link para o curso [Python Pro](https://plataforma.dev.pro.br/) + +[![Build Status](https://app.travis-ci.com/GuilhermeePires/libpythonpro.svg?branch=master)](https://app.travis-ci.com/GuilhermeePires/libpythonpro) + +Suportada versão 3 de python + +Para instalar: + +'''console +python3 -m venv venv +source venv/bin/activate +pip install -r requirements-dev.txt +''' + +Para conferir qualidade do código: + +''' +console +flake8 +''' + +[![Build Status](https://travis-ci.org/pythonprobr/libpythonpro.svg?branch=master)](https://travis-ci.org/pythonprobr/libpythonpro) +[![Updates](https://pyup.io/repos/github/pythonprobr/libpythonpro/shield.svg)](https://pyup.io/repos/github/pythonprobr/libpythonpro/) +[![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 + +Para instalar: + +```console +pip install pipenv +pipenv install --dev +``` + +Para conferir qualidade de código: + +```console +pipenv run flake8 +``` + +Tópicos a serem abordados: + 1. Git + 2. Virtualenv + 3. Pip + 4. Mock + 5. Pipenv + \ No newline at end of file diff --git a/libpythonpro/tests/__init__.py b/libpythonpro/tests/__init__.py index e69de29bb..edcfd0dd7 100644 --- a/libpythonpro/tests/__init__.py +++ b/libpythonpro/tests/__init__.py @@ -0,0 +1 @@ +__version__ = '0.2' \ No newline at end of file diff --git a/libpythonpro/tests/requirements-dev.txt b/libpythonpro/tests/requirements-dev.txt index 492b18dca..a116acd08 100644 --- a/libpythonpro/tests/requirements-dev.txt +++ b/libpythonpro/tests/requirements-dev.txt @@ -2,4 +2,4 @@ flake8==4.0.1 mccabe==0.6.1 pycodestyle==2.8.0 pyflakes==2.4.0 --r requirements.txtflake8 +-r requirements.txt diff --git a/libpythonpro/requirements-dev.txt b/requirements-dev.txt similarity index 70% rename from libpythonpro/requirements-dev.txt rename to requirements-dev.txt index 492b18dca..a116acd08 100644 --- a/libpythonpro/requirements-dev.txt +++ b/requirements-dev.txt @@ -2,4 +2,4 @@ flake8==4.0.1 mccabe==0.6.1 pycodestyle==2.8.0 pyflakes==2.4.0 --r requirements.txtflake8 +-r requirements.txt diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 000000000..a743bbe34 --- /dev/null +++ b/requirements.txt @@ -0,0 +1 @@ +requests==2.27.1 diff --git a/setup.py b/setup.py index 1fea97a65..b53d79697 100644 --- a/setup.py +++ b/setup.py @@ -104,20 +104,20 @@ def find_package_data( PACKAGE = "libpythonpro" NAME = PACKAGE DESCRIPTION = "Módulo para exemplificar construção de projetos Python no curso PyTools" -AUTHOR = "Renzo Nuccitelli" -AUTHOR_EMAIL = "renzo@python.pro.br" -URL = "https://github.com/pythonprobr/libpythonpro" +AUTHOR = "Guilherme da Silva Pires" +AUTHOR_EMAIL = "guilhermedasilvapires1996@gmail.com" +URL = "https://github.com/GuilhermeePires/libpythonpro" VERSION = __import__(PACKAGE).__version__ setup( name=NAME, version=VERSION, description=DESCRIPTION, - long_description=read('README.md'), + long_description=read("README.md"), long_description_content_type='text/markdown', author=AUTHOR, author_email=AUTHOR_EMAIL, - license="GNU AFFERO GENERAL PUBLIC LICENSE", + license=read('LICENSE'), url=URL, packages=find_packages(exclude=["tests.*", "tests"]), package_data=find_package_data(PACKAGE, only_in_packages=False), From 96a0ece1a8a13784fbf3e882742bc82df760a5c9 Mon Sep 17 00:00:00 2001 From: guilherme pires Date: Fri, 22 Apr 2022 00:02:50 -0300 Subject: [PATCH 09/15] instalando pytest --- requirements-dev.txt | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/requirements-dev.txt b/requirements-dev.txt index a116acd08..5f619bfa9 100644 --- a/requirements-dev.txt +++ b/requirements-dev.txt @@ -2,4 +2,16 @@ flake8==4.0.1 mccabe==0.6.1 pycodestyle==2.8.0 pyflakes==2.4.0 + +# Deps do pytest +pytest==7.1.1 +attrs==21.4.0 +pluggy==1.0.0 +atomicwrites==1.4.0 +colorama==0.4.4 +iniconfig==1.1.1 +tomli==2.0.1 +packaging==21.3 +py==1.11.0 +pyparsing==3.0.8 -r requirements.txt From d87a74a0149c809e362dbde6a6cafde5e35977f3 Mon Sep 17 00:00:00 2001 From: guilherme pires Date: Sat, 23 Apr 2022 22:10:06 -0300 Subject: [PATCH 10/15] install pytest-mock --- .travis.yml | 3 ++- libpythonpro/tests/test_spam/test_github_api.py | 10 +++++----- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/.travis.yml b/.travis.yml index 4579c63b4..a76de656f 100644 --- a/.travis.yml +++ b/.travis.yml @@ -5,4 +5,5 @@ python: install: - pip install -q -r requirements-dev.txt script: - -flake8 \ No newline at end of file + -flake8 + -pytest libpythonpro \ No newline at end of file diff --git a/libpythonpro/tests/test_spam/test_github_api.py b/libpythonpro/tests/test_spam/test_github_api.py index 21ce9c5d0..4a41fdea0 100644 --- a/libpythonpro/tests/test_spam/test_github_api.py +++ b/libpythonpro/tests/test_spam/test_github_api.py @@ -8,9 +8,9 @@ @pytest.fixture def avatar_url(mocker): resp_mock = Mock() - url = 'https://avatars3.githubusercontent.com/u/402714?v=4' + url = 'https://avatars.githubusercontent.com/u/102936883?v=4' resp_mock.json.return_value = { - 'login': 'renzo', 'id': 402714, + 'login': 'GuilhermeePires', 'id': 102936883, 'avatar_url': url, } get_mock = mocker.patch('libpythonpro.github_api.requests.get') @@ -19,10 +19,10 @@ def avatar_url(mocker): def test_buscar_avatar(avatar_url): - url = github_api.buscar_avatar('renzo') + url = github_api.buscar_avatar('GuilhermeePires') assert avatar_url == url def test_buscar_avatar_integracao(): - url = github_api.buscar_avatar('renzon') - assert 'https://avatars3.githubusercontent.com/u/3457115?v=4' == url + url = github_api.buscar_avatar('GuilhermeePires') + assert 'https://avatars.githubusercontent.com/u/102936883?v=4' == url From b011d2d1443f4336dea6271215fa10cae269540e Mon Sep 17 00:00:00 2001 From: guilherme pires Date: Sun, 24 Apr 2022 20:59:03 -0300 Subject: [PATCH 11/15] inserido teste com pytest --- libpythonpro/tests/test_exemplo.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libpythonpro/tests/test_exemplo.py b/libpythonpro/tests/test_exemplo.py index 78cd50236..5afa8ef5d 100644 --- a/libpythonpro/tests/test_exemplo.py +++ b/libpythonpro/tests/test_exemplo.py @@ -1,2 +1,2 @@ def test_int(): - assert 1 == 1 + assert 1 == 0 From 6ced5ba89c783ca673669e38effe94def684090e Mon Sep 17 00:00:00 2001 From: guilherme pires Date: Mon, 25 Apr 2022 12:04:44 -0300 Subject: [PATCH 12/15] close #21 --- requirements-dev.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/requirements-dev.txt b/requirements-dev.txt index 5f619bfa9..e6cdbb4ee 100644 --- a/requirements-dev.txt +++ b/requirements-dev.txt @@ -14,4 +14,6 @@ tomli==2.0.1 packaging==21.3 py==1.11.0 pyparsing==3.0.8 +more-itertools-8.12.0 +six-1.16.0 -r requirements.txt From 914a5418b2e9078317ab563e9c7e2a56eae2fea8 Mon Sep 17 00:00:00 2001 From: guilherme pires Date: Mon, 25 Apr 2022 13:45:28 -0300 Subject: [PATCH 13/15] =?UTF-8?q?Acrescentada=20cobertura=20de=20c=C3=B3di?= =?UTF-8?q?go?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit close #23 --- .travis.yml | 6 ++++-- libpythonpro/tests/requirements-dev.txt | 5 ----- libpythonpro/tests/test_exemplo.py | 2 +- requirements-dev.txt | 5 +++++ 4 files changed, 10 insertions(+), 8 deletions(-) delete mode 100644 libpythonpro/tests/requirements-dev.txt diff --git a/.travis.yml b/.travis.yml index a76de656f..8c9eb3f66 100644 --- a/.travis.yml +++ b/.travis.yml @@ -3,7 +3,9 @@ python: -3.10 -2.7 install: - - pip install -q -r requirements-dev.txt + - pip install -q -r requirements-dev.txt codecov script: -flake8 - -pytest libpythonpro \ No newline at end of file + -pytest lybpythonproo --cov=libpythonproo +after_success: + -codecov \ No newline at end of file diff --git a/libpythonpro/tests/requirements-dev.txt b/libpythonpro/tests/requirements-dev.txt deleted file mode 100644 index a116acd08..000000000 --- a/libpythonpro/tests/requirements-dev.txt +++ /dev/null @@ -1,5 +0,0 @@ -flake8==4.0.1 -mccabe==0.6.1 -pycodestyle==2.8.0 -pyflakes==2.4.0 --r requirements.txt diff --git a/libpythonpro/tests/test_exemplo.py b/libpythonpro/tests/test_exemplo.py index 5afa8ef5d..78cd50236 100644 --- a/libpythonpro/tests/test_exemplo.py +++ b/libpythonpro/tests/test_exemplo.py @@ -1,2 +1,2 @@ def test_int(): - assert 1 == 0 + assert 1 == 1 diff --git a/requirements-dev.txt b/requirements-dev.txt index e6cdbb4ee..3e9b872fe 100644 --- a/requirements-dev.txt +++ b/requirements-dev.txt @@ -16,4 +16,9 @@ py==1.11.0 pyparsing==3.0.8 more-itertools-8.12.0 six-1.16.0 + +#Converage +coverage==6.3.2 +pytest-cov==3.0.0 + -r requirements.txt From e9f746efdf8c57611a8fa615c629da9c4d0b2e82 Mon Sep 17 00:00:00 2001 From: guilherme pires Date: Sat, 30 Apr 2022 20:49:47 -0300 Subject: [PATCH 14/15] =?UTF-8?q?Alterando=20o=20gestor=20de=20depend?= =?UTF-8?q?=C3=AAncia=20para=20pipenv=20close=20#669?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .travis.yml | 3 +- Pipfile | 2 +- Pipfile.lock | 245 ++++++++++++++++++++++++----------------------- requirements.txt | 3 +- 4 files changed, 128 insertions(+), 125 deletions(-) diff --git a/.travis.yml b/.travis.yml index 8c9eb3f66..f6f79575d 100644 --- a/.travis.yml +++ b/.travis.yml @@ -3,7 +3,8 @@ python: -3.10 -2.7 install: - - pip install -q -r requirements-dev.txt codecov + - pip install -q pipenv codecov + - pipenv sync --dev script: -flake8 -pytest lybpythonproo --cov=libpythonproo diff --git a/Pipfile b/Pipfile index af5c7333d..10ecf4986 100644 --- a/Pipfile +++ b/Pipfile @@ -14,4 +14,4 @@ pytest-mock = "*" requests = "*" [requires] -python_version = "3.7" +python_version = "3.10" diff --git a/Pipfile.lock b/Pipfile.lock index 8a647ca6f..367635739 100644 --- a/Pipfile.lock +++ b/Pipfile.lock @@ -1,11 +1,11 @@ { "_meta": { "hash": { - "sha256": "36b4d15ab997722625c5463b1a4e8164dfc3dd1788d6e7e90b62a7d7b5ed6a50" + "sha256": "40f01b0d244d9ca0542a742bdabfdde85d908e1256f815c7e145b99c9ffe3c97" }, "pipfile-spec": 6, "requires": { - "python_version": "3.7" + "python_version": "3.10" }, "sources": [ { @@ -18,114 +18,130 @@ "default": { "certifi": { "hashes": [ - "sha256:046832c04d4e752f37383b628bc601a7ea7211496b4638f6514d0e5b9acc4939", - "sha256:945e3ba63a0b9f577b1395204e13c3a231f9bc0223888be653286534e5873695" + "sha256:78884e7c1d4b00ce3cea67b44566851c4343c120abd683433ce934a68ea58872", + "sha256:d62a0163eb4c2344ac042ab2bdf75399a71a2d8c7d47eac2e2ee91b9d6339569" ], - "version": "==2019.6.16" + "version": "==2021.10.8" }, - "chardet": { + "charset-normalizer": { "hashes": [ - "sha256:84ab92ed1c4d4f16916e05906b6b75a6c0fb5db821cc65e70cbd64a3e2a5eaae", - "sha256:fc323ffcaeaed0e0a02bf4d117757b98aed530d9ed4531e3e15460124c106691" + "sha256:2857e29ff0d34db842cd7ca3230549d1a697f96ee6d3fb071cfa6c7393832597", + "sha256:6881edbebdb17b39b4eaaa821b438bf6eddffb4468cf344f09f89def34a8b1df" ], - "version": "==3.0.4" + "markers": "python_version >= '3'", + "version": "==2.0.12" }, "idna": { "hashes": [ - "sha256:c357b3f628cf53ae2c4c05627ecc484553142ca23264e593d327bcde5e9c3407", - "sha256:ea8b7f6188e6fa117537c3df7da9fc686d485087abf6ac197f9c46432f7e4a3c" + "sha256:84d9dd047ffa80596e0f246e2eab0b391788b0503584e8945f2368256d2735ff", + "sha256:9d643ff0a55b762d5cdb124b8eaa99c66322e2157b69160bc32796e824360e6d" ], - "version": "==2.8" + "markers": "python_version >= '3'", + "version": "==3.3" }, "requests": { "hashes": [ - "sha256:11e007a8a2aa0323f5a921e9e6a2d7e4e67d9877e85773fba9ba6419025cbeb4", - "sha256:9cf5292fcd0f598c671cfc1e0d7d1a7f13bb8085e9a590f48c010551dc6c4b31" + "sha256:68d7c56fd5a8999887728ef304a6d12edc7be74f1cfa47714fc8b414525c9a61", + "sha256:f22fa1e554c9ddfd16e6e41ac79759e17be9e492b3587efa038054674760e72d" ], "index": "pypi", - "version": "==2.22.0" + "version": "==2.27.1" }, "urllib3": { "hashes": [ - "sha256:b246607a25ac80bedac05c6f282e3cdaf3afb65420fd024ac94435cabe6e18d1", - "sha256:dbe59173209418ae49d485b87d1681aefa36252ee85884c31346debd19463232" + "sha256:44ece4d53fb1706f667c9bd1c648f5469a2ec925fcf3a776667042d645472c14", + "sha256:aabaf16477806a5e1dd19aa41f8c2b7950dd3c746362d7e3223dbe6de6ac448e" ], - "version": "==1.25.3" + "markers": "python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3, 3.4' and python_version < '4'", + "version": "==1.26.9" } }, "develop": { "atomicwrites": { "hashes": [ - "sha256:03472c30eb2c5d1ba9227e4c2ca66ab8287fbfbbda3888aa93dc2e28fc6811b4", - "sha256:75a9445bac02d8d058d5e1fe689654ba5a6556a1dfd8ce6ec55a0ed79866cfa6" + "sha256:6d1784dea7c0c8d4a5172b6c620f40b6e4cbfdf96d783691f2e1302a7b88e197", + "sha256:ae70396ad1a434f9c7046fd2dd196fc04b12f9e91ffb859164193be8b6168a7a" ], - "version": "==1.3.0" + "markers": "sys_platform == 'win32'", + "version": "==1.4.0" }, "attrs": { "hashes": [ - "sha256:69c0dbf2ed392de1cb5ec704444b08a5ef81680a61cb899dc08127123af36a79", - "sha256:f0b870f674851ecbfbbbd364d6b5cbdff9dcedbc7f3f5e18a6891057f21fe399" + "sha256:2d27e3784d7a565d36ab851fe94887c5eccd6a463168875832a1be79c82828b4", + "sha256:626ba8234211db98e869df76230a137c4c40a12d72445c45d5f5b716f076e2fd" ], - "version": "==19.1.0" + "markers": "python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3, 3.4'", + "version": "==21.4.0" }, - "coverage": { + "colorama": { "hashes": [ - "sha256:3684fabf6b87a369017756b551cef29e505cb155ddb892a7a29277b978da88b9", - "sha256:39e088da9b284f1bd17c750ac672103779f7954ce6125fd4382134ac8d152d74", - "sha256:3c205bc11cc4fcc57b761c2da73b9b72a59f8d5ca89979afb0c1c6f9e53c7390", - "sha256:465ce53a8c0f3a7950dfb836438442f833cf6663d407f37d8c52fe7b6e56d7e8", - "sha256:48020e343fc40f72a442c8a1334284620f81295256a6b6ca6d8aa1350c763bbe", - "sha256:5296fc86ab612ec12394565c500b412a43b328b3907c0d14358950d06fd83baf", - "sha256:5f61bed2f7d9b6a9ab935150a6b23d7f84b8055524e7be7715b6513f3328138e", - "sha256:68a43a9f9f83693ce0414d17e019daee7ab3f7113a70c79a3dd4c2f704e4d741", - "sha256:6b8033d47fe22506856fe450470ccb1d8ba1ffb8463494a15cfc96392a288c09", - "sha256:7ad7536066b28863e5835e8cfeaa794b7fe352d99a8cded9f43d1161be8e9fbd", - "sha256:7bacb89ccf4bedb30b277e96e4cc68cd1369ca6841bde7b005191b54d3dd1034", - "sha256:839dc7c36501254e14331bcb98b27002aa415e4af7ea039d9009409b9d2d5420", - "sha256:8f9a95b66969cdea53ec992ecea5406c5bd99c9221f539bca1e8406b200ae98c", - "sha256:932c03d2d565f75961ba1d3cec41ddde00e162c5b46d03f7423edcb807734eab", - "sha256:988529edadc49039d205e0aa6ce049c5ccda4acb2d6c3c5c550c17e8c02c05ba", - "sha256:998d7e73548fe395eeb294495a04d38942edb66d1fa61eb70418871bc621227e", - "sha256:9de60893fb447d1e797f6bf08fdf0dbcda0c1e34c1b06c92bd3a363c0ea8c609", - "sha256:9e80d45d0c7fcee54e22771db7f1b0b126fb4a6c0a2e5afa72f66827207ff2f2", - "sha256:a545a3dfe5082dc8e8c3eb7f8a2cf4f2870902ff1860bd99b6198cfd1f9d1f49", - "sha256:a5d8f29e5ec661143621a8f4de51adfb300d7a476224156a39a392254f70687b", - "sha256:aca06bfba4759bbdb09bf52ebb15ae20268ee1f6747417837926fae990ebc41d", - "sha256:bb23b7a6fd666e551a3094ab896a57809e010059540ad20acbeec03a154224ce", - "sha256:bfd1d0ae7e292105f29d7deaa9d8f2916ed8553ab9d5f39ec65bcf5deadff3f9", - "sha256:c62ca0a38958f541a73cf86acdab020c2091631c137bd359c4f5bddde7b75fd4", - "sha256:c709d8bda72cf4cd348ccec2a4881f2c5848fd72903c185f363d361b2737f773", - "sha256:c968a6aa7e0b56ecbd28531ddf439c2ec103610d3e2bf3b75b813304f8cb7723", - "sha256:df785d8cb80539d0b55fd47183264b7002077859028dfe3070cf6359bf8b2d9c", - "sha256:f406628ca51e0ae90ae76ea8398677a921b36f0bd71aab2099dfed08abd0322f", - "sha256:f46087bbd95ebae244a0eda01a618aff11ec7a069b15a3ef8f6b520db523dcf1", - "sha256:f8019c5279eb32360ca03e9fac40a12667715546eed5c5eb59eb381f2f501260", - "sha256:fc5f4d209733750afd2714e9109816a29500718b32dd9a5db01c0cb3a019b96a" + "sha256:5941b2b48a20143d2267e95b1c2a7603ce057ee39fd88e7329b0c292aa16869b", + "sha256:9f47eda37229f68eee03b24b9748937c7dc3868f906e8ba69fbcbdd3bc5dc3e2" ], - "index": "pypi", - "version": "==4.5.3" + "markers": "sys_platform == 'win32'", + "version": "==0.4.4" }, - "entrypoints": { + "coverage": { "hashes": [ - "sha256:589f874b313739ad35be6e0cd7efde2a4e9b6fea91edcc34e58ecbb8dbe56d19", - "sha256:c70dd71abe5a8c85e55e12c19bd91ccfeec11a6e99044204511f9ed547d48451" + "sha256:03e2a7826086b91ef345ff18742ee9fc47a6839ccd517061ef8fa1976e652ce9", + "sha256:07e6db90cd9686c767dcc593dff16c8c09f9814f5e9c51034066cad3373b914d", + "sha256:18d520c6860515a771708937d2f78f63cc47ab3b80cb78e86573b0a760161faf", + "sha256:1ebf730d2381158ecf3dfd4453fbca0613e16eaa547b4170e2450c9707665ce7", + "sha256:21b7745788866028adeb1e0eca3bf1101109e2dc58456cb49d2d9b99a8c516e6", + "sha256:26e2deacd414fc2f97dd9f7676ee3eaecd299ca751412d89f40bc01557a6b1b4", + "sha256:2c6dbb42f3ad25760010c45191e9757e7dce981cbfb90e42feef301d71540059", + "sha256:2fea046bfb455510e05be95e879f0e768d45c10c11509e20e06d8fcaa31d9e39", + "sha256:34626a7eee2a3da12af0507780bb51eb52dca0e1751fd1471d0810539cefb536", + "sha256:37d1141ad6b2466a7b53a22e08fe76994c2d35a5b6b469590424a9953155afac", + "sha256:46191097ebc381fbf89bdce207a6c107ac4ec0890d8d20f3360345ff5976155c", + "sha256:4dd8bafa458b5c7d061540f1ee9f18025a68e2d8471b3e858a9dad47c8d41903", + "sha256:4e21876082ed887baed0146fe222f861b5815455ada3b33b890f4105d806128d", + "sha256:58303469e9a272b4abdb9e302a780072c0633cdcc0165db7eec0f9e32f901e05", + "sha256:5ca5aeb4344b30d0bec47481536b8ba1181d50dbe783b0e4ad03c95dc1296684", + "sha256:68353fe7cdf91f109fc7d474461b46e7f1f14e533e911a2a2cbb8b0fc8613cf1", + "sha256:6f89d05e028d274ce4fa1a86887b071ae1755082ef94a6740238cd7a8178804f", + "sha256:7a15dc0a14008f1da3d1ebd44bdda3e357dbabdf5a0b5034d38fcde0b5c234b7", + "sha256:8bdde1177f2311ee552f47ae6e5aa7750c0e3291ca6b75f71f7ffe1f1dab3dca", + "sha256:8ce257cac556cb03be4a248d92ed36904a59a4a5ff55a994e92214cde15c5bad", + "sha256:8cf5cfcb1521dc3255d845d9dca3ff204b3229401994ef8d1984b32746bb45ca", + "sha256:8fbbdc8d55990eac1b0919ca69eb5a988a802b854488c34b8f37f3e2025fa90d", + "sha256:9548f10d8be799551eb3a9c74bbf2b4934ddb330e08a73320123c07f95cc2d92", + "sha256:96f8a1cb43ca1422f36492bebe63312d396491a9165ed3b9231e778d43a7fca4", + "sha256:9b27d894748475fa858f9597c0ee1d4829f44683f3813633aaf94b19cb5453cf", + "sha256:9baff2a45ae1f17c8078452e9e5962e518eab705e50a0aa8083733ea7d45f3a6", + "sha256:a2a8b8bcc399edb4347a5ca8b9b87e7524c0967b335fbb08a83c8421489ddee1", + "sha256:acf53bc2cf7282ab9b8ba346746afe703474004d9e566ad164c91a7a59f188a4", + "sha256:b0be84e5a6209858a1d3e8d1806c46214e867ce1b0fd32e4ea03f4bd8b2e3359", + "sha256:b31651d018b23ec463e95cf10070d0b2c548aa950a03d0b559eaa11c7e5a6fa3", + "sha256:b78e5afb39941572209f71866aa0b206c12f0109835aa0d601e41552f9b3e620", + "sha256:c76aeef1b95aff3905fb2ae2d96e319caca5b76fa41d3470b19d4e4a3a313512", + "sha256:dd035edafefee4d573140a76fdc785dc38829fe5a455c4bb12bac8c20cfc3d69", + "sha256:dd6fe30bd519694b356cbfcaca9bd5c1737cddd20778c6a581ae20dc8c04def2", + "sha256:e5f4e1edcf57ce94e5475fe09e5afa3e3145081318e5fd1a43a6b4539a97e518", + "sha256:ec6bc7fe73a938933d4178c9b23c4e0568e43e220aef9472c4f6044bfc6dd0f0", + "sha256:f1555ea6d6da108e1999b2463ea1003fe03f29213e459145e70edbaf3e004aaa", + "sha256:f5fa5803f47e095d7ad8443d28b01d48c0359484fec1b9d8606d0e3282084bc4", + "sha256:f7331dbf301b7289013175087636bbaf5b2405e57259dd2c42fdcc9fcc47325e", + "sha256:f9987b0354b06d4df0f4d3e0ec1ae76d7ce7cbca9a2f98c25041eb79eec766f1", + "sha256:fd9e830e9d8d89b20ab1e5af09b32d33e1a08ef4c4e14411e559556fd788e6b2" ], - "version": "==0.3" + "index": "pypi", + "version": "==6.3.2" }, "flake8": { "hashes": [ - "sha256:859996073f341f2670741b51ec1e67a01da142831aa1fdc6242dbf88dffbe661", - "sha256:a796a115208f5c03b18f332f7c11729812c8c3ded6c46319c59b53efd3819da8" + "sha256:479b1304f72536a55948cb40a32dce8bb0ffe3501e26eaf292c7e60eb5e0428d", + "sha256:806e034dda44114815e23c16ef92f95c91e4c71100ff52813adf7132a6ad870d" ], "index": "pypi", - "version": "==3.7.7" + "version": "==4.0.1" }, - "importlib-metadata": { + "iniconfig": { "hashes": [ - "sha256:6dfd58dfe281e8d240937776065dd3624ad5469c835248219bd16cf2e12dbeb7", - "sha256:cb6ee23b46173539939964df59d3d72c3e0c1b5d54b84f1d8a7e912fe43612db" + "sha256:011e24c64b7f47f6ebd835bb12a743f2fbe9a26d4cecaa7f53bc4f35ee9da8b3", + "sha256:bc3af051d7d14b2ee5ef9969666def0cd1a000e121eaea580d4a313df4b37f32" ], - "version": "==0.18" + "version": "==1.1.1" }, "mccabe": { "hashes": [ @@ -134,100 +150,85 @@ ], "version": "==0.6.1" }, - "more-itertools": { - "hashes": [ - "sha256:2112d2ca570bb7c3e53ea1a35cd5df42bb0fd10c45f0fb97178679c3c03d64c7", - "sha256:c3e4748ba1aad8dba30a4886b0b1a2004f9a863837b8654e7059eebf727afa5a" - ], - "markers": "python_version > '2.7'", - "version": "==7.0.0" - }, "packaging": { "hashes": [ - "sha256:0c98a5d0be38ed775798ece1b9727178c4469d9c3b4ada66e8e6b7849f8732af", - "sha256:9e1cbf8c12b1f1ce0bb5344b8d7ecf66a6f8a6e91bcb0c84593ed6d3ab5c4ab3" + "sha256:dd47c42927d89ab911e606518907cc2d3a1f38bbd026385970643f9c5b8ecfeb", + "sha256:ef103e05f519cdc783ae24ea4e2e0f508a9c99b2d4969652eed6a2e1ea5bd522" ], - "version": "==19.0" + "markers": "python_version >= '3.6'", + "version": "==21.3" }, "pluggy": { "hashes": [ - "sha256:0825a152ac059776623854c1543d65a4ad408eb3d33ee114dff91e57ec6ae6fc", - "sha256:b9817417e95936bf75d85d3f8767f7df6cdde751fc40aed3bb3074cbcb77757c" + "sha256:4224373bacce55f955a878bf9cfa763c1e360858e330072059e10bad68531159", + "sha256:74134bbf457f031a36d68416e1509f34bd5ccc019f0bcc952c7b909d06b37bd3" ], - "version": "==0.12.0" + "markers": "python_version >= '3.6'", + "version": "==1.0.0" }, "py": { "hashes": [ - "sha256:64f65755aee5b381cea27766a3a147c3f15b9b6b9ac88676de66ba2ae36793fa", - "sha256:dc639b046a6e2cff5bbe40194ad65936d6ba360b52b3c3fe1d08a82dd50b5e53" + "sha256:51c75c4126074b472f746a24399ad32f6053d1b34b68d2fa41e558e6f4a98719", + "sha256:607c53218732647dff4acdfcd50cb62615cedf612e72d1724fb1a0cc6405b378" ], - "version": "==1.8.0" + "markers": "python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3, 3.4'", + "version": "==1.11.0" }, "pycodestyle": { "hashes": [ - "sha256:95a2219d12372f05704562a14ec30bc76b05a5b297b21a5dfe3f6fac3491ae56", - "sha256:e40a936c9a450ad81df37f549d676d127b1b66000a6c500caa2b085bc0ca976c" + "sha256:720f8b39dde8b293825e7ff02c475f3077124006db4f440dcbc9a20b76548a20", + "sha256:eddd5847ef438ea1c7870ca7eb78a9d47ce0cdb4851a5523949f2601d0cbbe7f" ], - "version": "==2.5.0" + "markers": "python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3, 3.4'", + "version": "==2.8.0" }, "pyflakes": { "hashes": [ - "sha256:17dbeb2e3f4d772725c777fabc446d5634d1038f234e77343108ce445ea69ce0", - "sha256:d976835886f8c5b31d47970ed689944a0262b5f3afa00a5a7b4dc81e5449f8a2" + "sha256:05a85c2872edf37a4ed30b0cce2f6093e1d0581f8c19d7393122da7e25b2b24c", + "sha256:3bb3a3f256f4b7968c9c788781e4ff07dce46bdf12339dcda61053375426ee2e" ], - "version": "==2.1.1" + "markers": "python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3'", + "version": "==2.4.0" }, "pyparsing": { "hashes": [ - "sha256:1873c03321fc118f4e9746baf201ff990ceb915f433f23b395f5580d1840cb2a", - "sha256:9b6323ef4ab914af344ba97510e966d64ba91055d6b9afa6b30799340e89cc03" + "sha256:7bf433498c016c4314268d95df76c81b842a4cb2b276fa3312cfb1e1d85f6954", + "sha256:ef7b523f6356f763771559412c0d7134753f037822dad1b16945b7b846f7ad06" ], - "version": "==2.4.0" + "markers": "python_full_version >= '3.6.8'", + "version": "==3.0.8" }, "pytest": { "hashes": [ - "sha256:4a784f1d4f2ef198fe9b7aef793e9fa1a3b2f84e822d9b3a64a181293a572d45", - "sha256:926855726d8ae8371803f7b2e6ec0a69953d9c6311fa7c3b6c1b929ff92d27da" + "sha256:13d0e3ccfc2b6e26be000cb6568c832ba67ba32e719443bfe725814d3c42433c", + "sha256:a06a0425453864a270bc45e71f783330a7428defb4230fb5e6a731fde06ecd45" ], "index": "pypi", - "version": "==4.6.3" + "version": "==7.1.2" }, "pytest-cov": { "hashes": [ - "sha256:2b097cde81a302e1047331b48cadacf23577e431b61e9c6f49a1170bbe3d3da6", - "sha256:e00ea4fdde970725482f1f35630d12f074e121a23801aabf2ae154ec6bdd343a" + "sha256:578d5d15ac4a25e5f961c938b85a05b09fdaae9deef3bb6de9a6e766622ca7a6", + "sha256:e7f0f5b1617d2210a2cabc266dfe2f4c75a8d32fb89eafb7ad9d06f6d076d470" ], "index": "pypi", - "version": "==2.7.1" + "version": "==3.0.0" }, "pytest-mock": { "hashes": [ - "sha256:43ce4e9dd5074993e7c021bb1c22cbb5363e612a2b5a76bc6d956775b10758b7", - "sha256:5bf5771b1db93beac965a7347dc81c675ec4090cb841e49d9d34637a25c30568" + "sha256:5112bd92cc9f186ee96e1a92efc84969ea494939c3aead39c50f421c4cc69534", + "sha256:6cff27cec936bf81dc5ee87f07132b807bcda51106b5ec4b90a04331cba76231" ], "index": "pypi", - "version": "==1.10.4" - }, - "six": { - "hashes": [ - "sha256:3350809f0555b11f552448330d0b52d5f24c91a322ea4a15ef22629740f3761c", - "sha256:d16a0141ec1a18405cd4ce8b4613101da75da0e9a7aec5bdd4fa804d0e0eba73" - ], - "version": "==1.12.0" - }, - "wcwidth": { - "hashes": [ - "sha256:3df37372226d6e63e1b1e1eda15c594bca98a22d33a23832a90998faa96bc65e", - "sha256:f4ebe71925af7b40a864553f761ed559b43544f8f71746c2d756c7fe788ade7c" - ], - "version": "==0.1.7" + "version": "==3.7.0" }, - "zipp": { + "tomli": { "hashes": [ - "sha256:8c1019c6aad13642199fbe458275ad6a84907634cc9f0989877ccc4a2840139d", - "sha256:ca943a7e809cc12257001ccfb99e3563da9af99d52f261725e96dfe0f9275bc3" + "sha256:939de3e7a6161af0c887ef91b7d41a53e7c5a1ca976325f429cb46ea9bc30ecc", + "sha256:de526c12914f0c550d15924c62d72abc48d6fe7364aa87328337a31007fe8a4f" ], - "version": "==0.5.1" + "markers": "python_version >= '3.7'", + "version": "==2.0.1" } } } diff --git a/requirements.txt b/requirements.txt index a743bbe34..2d8c95384 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1 +1,2 @@ -requests==2.27.1 +pytest~=7.1.2 +requests~=2.27.1 \ No newline at end of file From f7f82bcb064b084f1da7b8b25d7555019d39b55d Mon Sep 17 00:00:00 2001 From: guilherme pires Date: Sat, 30 Apr 2022 20:58:38 -0300 Subject: [PATCH 15/15] =?UTF-8?q?Alterando=20o=20gestor=20de=20depend?= =?UTF-8?q?=C3=AAncia=20para=20pipenv=20close=20#669?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .idea/.gitignore | 8 ++++++++ .idea/.name | 1 + .idea/inspectionProfiles/profiles_settings.xml | 6 ++++++ .idea/libpythonpro.iml | 13 +++++++++++++ .idea/misc.xml | 4 ++++ .idea/modules.xml | 8 ++++++++ .idea/vcs.xml | 6 ++++++ 7 files changed, 46 insertions(+) create mode 100644 .idea/.gitignore create mode 100644 .idea/.name create mode 100644 .idea/inspectionProfiles/profiles_settings.xml create mode 100644 .idea/libpythonpro.iml create mode 100644 .idea/misc.xml create mode 100644 .idea/modules.xml create mode 100644 .idea/vcs.xml diff --git a/.idea/.gitignore b/.idea/.gitignore new file mode 100644 index 000000000..13566b81b --- /dev/null +++ b/.idea/.gitignore @@ -0,0 +1,8 @@ +# Default ignored files +/shelf/ +/workspace.xml +# Editor-based HTTP Client requests +/httpRequests/ +# Datasource local storage ignored files +/dataSources/ +/dataSources.local.xml diff --git a/.idea/.name b/.idea/.name new file mode 100644 index 000000000..bccc29dbf --- /dev/null +++ b/.idea/.name @@ -0,0 +1 @@ +libpythonpro \ 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/libpythonpro.iml b/.idea/libpythonpro.iml new file mode 100644 index 000000000..7b751b354 --- /dev/null +++ b/.idea/libpythonpro.iml @@ -0,0 +1,13 @@ + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/misc.xml b/.idea/misc.xml new file mode 100644 index 000000000..dc9ea4906 --- /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..3478ad2cf --- /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