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/inspectionProfiles/Project_Default.xml b/.idea/inspectionProfiles/Project_Default.xml new file mode 100644 index 000000000..b8ef0facf --- /dev/null +++ b/.idea/inspectionProfiles/Project_Default.xml @@ -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/libpythonpro.iml b/.idea/libpythonpro.iml new file mode 100644 index 000000000..86055dcc4 --- /dev/null +++ b/.idea/libpythonpro.iml @@ -0,0 +1,15 @@ + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/misc.xml b/.idea/misc.xml new file mode 100644 index 000000000..d56657add --- /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 diff --git a/.travis.yml b/.travis.yml index 6694375b7..7a193200a 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,7 +1,8 @@ language: python python: - - 3.7 + - 3.9 install: + - pip install -r requirements-dev.txt - pip install -q pipenv codecov - pipenv sync --dev script: diff --git a/libpythonpro/github_api.py b/libpythonpro/github_api.py index 8b0fbafb9..b701dd67a 100644 --- a/libpythonpro/github_api.py +++ b/libpythonpro/github_api.py @@ -1,13 +1,17 @@ import requests -def buscar_avatar(usuario): + +def buscar_avatar(Adrand): """ Busca o avatar de um usuário no Github - :param usuario: str com o nome de usuário no github :return: str com o link do avatar """ - url = f'https://api.github.com/users/{usuario}' + url = f'https://api.github.com/users/{Adrand}' resp = requests.get(url) return resp.json()['avatar_url'] + + +if __name__ == '__main__': + print(buscar_avatar('Adrand')) \ No newline at end of file diff --git a/requirements-dev.txt b/requirements-dev.txt new file mode 100644 index 000000000..0ea958ea4 Binary files /dev/null and b/requirements-dev.txt differ diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 000000000..fa3bbaef3 Binary files /dev/null and b/requirements.txt differ diff --git a/setup.py b/setup.py index 1fea97a65..b2755fe40 100644 --- a/setup.py +++ b/setup.py @@ -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('LICENSE'), url=URL, packages=find_packages(exclude=["tests.*", "tests"]), package_data=find_package_data(PACKAGE, only_in_packages=False), @@ -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.9", "Framework :: Pytest", ], install_requires=[