From 74474b052859a906a9bb5f2397c7d41b6d0714ac Mon Sep 17 00:00:00 2001 From: Ciro Valente Date: Wed, 18 Dec 2019 11:25:05 -0300 Subject: [PATCH 1/3] Fix README location and print function to compatibility with python3 --- setup.py | 2 +- tests/profile.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/setup.py b/setup.py index a3ad4a7..ab74059 100644 --- a/setup.py +++ b/setup.py @@ -20,7 +20,7 @@ license='LGPL', description='Classe para gerar arquivo de remessa e leitura de retorno no ' 'padrĂ£o CNAB240', - long_description=open('README.md', 'r').read(), + long_description=open('./README.md', 'r').read(), download_url='https://github.com/loggi/cnab240', scripts=[], classifiers=[], diff --git a/tests/profile.py b/tests/profile.py index b8793e4..86eccce 100644 --- a/tests/profile.py +++ b/tests/profile.py @@ -14,7 +14,7 @@ def profiling(*args, **kwargs): ret = prof.runcall(func, *args, **kwargs) prof.disable() ps = pstats.Stats(prof).sort_stats('cumulative') - print func.func_name + print(func.func_name) ps.print_stats(20) return ret From 5f34b5e6e7c193930f391cf93f4a72a61eb60c1c Mon Sep 17 00:00:00 2001 From: Ciro Valente Date: Wed, 18 Dec 2019 11:31:50 -0300 Subject: [PATCH 2/3] Remove python 2.6 from travis and add 3.7 --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 216d8b8..0c7726d 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,7 +1,7 @@ language: python python: - - "2.6" - "2.7" + - "3.7" - "pypy" # - "3.2": Not supported yet install: From bb555aa60fac8e9887b61bf64f964f34782f70ae Mon Sep 17 00:00:00 2001 From: Ciro Valente Date: Wed, 18 Dec 2019 11:35:30 -0300 Subject: [PATCH 3/3] Remove --use-mirrors from travis is deprecated since 2015 --- .travis.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index 0c7726d..1834c03 100644 --- a/.travis.yml +++ b/.travis.yml @@ -5,9 +5,9 @@ python: - "pypy" # - "3.2": Not supported yet install: - - "pip install unittest2 --use-mirrors" - - "pip install ordereddict --use-mirrors || echo \"It's ok...\"" - - "pip install importlib --use-mirrors || echo \"It's ok...\"" + - "pip install unittest2" + - "pip install ordereddict || echo \"It's ok...\"" + - "pip install importlib || echo \"It's ok...\"" script: ./run_tests.sh notifications: irc: