From fbc9a871fca5b01cff2058c1f2428c67cb52a9e4 Mon Sep 17 00:00:00 2001 From: Luis Felipe Mileo Date: Sat, 22 Apr 2017 11:55:56 -0300 Subject: [PATCH 1/4] [FIX] Fix setup.py signxml dependencie --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 0e0a9e7c..a3382f0b 100644 --- a/setup.py +++ b/setup.py @@ -49,7 +49,7 @@ long_description = open('README.rst').read(), requires=[ 'lxml(>=3.7.3)', - 'xmlsec(>=1.0.7)', + 'signxml(>=2.2.4)', 'Geraldo(>=0.4.16)', 'qrcode(>=5.3)', 'py3o.template(>=0.9.11)', From 45f8cdab076d5b7cd36d532ee574976ad74d0e4a Mon Sep 17 00:00:00 2001 From: Luis Felipe Mileo Date: Tue, 2 May 2017 16:43:27 -0300 Subject: [PATCH 2/4] [NEW] Add travis file to just install pysped and your dependencies --- .travis.yml | 17 +++++++++++++++++ requirements.txt | 6 ++++++ setup.py | 14 +++++++------- 3 files changed, 30 insertions(+), 7 deletions(-) create mode 100644 .travis.yml create mode 100644 requirements.txt diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 00000000..2985f8e7 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,17 @@ +language: python +python: + - "2.6" + - "2.7" + - "3.2" + - "3.3" + - "3.4" + # PyPy versions + - "pypy" # PyPy2 2.5.0 + - "pypy3" # Pypy3 2.4.0 + - "pypy-5.3.1" +# command to install dependencies +script: + - pip install . + - pip install -r requirements.txt + - python -c 'import pysped' + diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 00000000..22887bbc --- /dev/null +++ b/requirements.txt @@ -0,0 +1,6 @@ +lxml>=3.7.3 +signxml>=2.2.4 +Geraldo>=0.4.16 +qrcode>=5.3 +py3o.template>=0.9.11 +sh>=1.12.9 \ No newline at end of file diff --git a/setup.py b/setup.py index a3382f0b..067bf8b2 100644 --- a/setup.py +++ b/setup.py @@ -47,13 +47,13 @@ license = 'LGPL-v2.1+', description = 'PySPED is a library to implement all requirements of the Brazilian Public System of Digital Bookkeeping', long_description = open('README.rst').read(), - requires=[ - 'lxml(>=3.7.3)', - 'signxml(>=2.2.4)', - 'Geraldo(>=0.4.16)', - 'qrcode(>=5.3)', - 'py3o.template(>=0.9.11)', - 'sh(>=1.12.9)' + install_requires=[ + 'lxml', + 'signxml', + 'Geraldo', + 'qrcode', + 'py3o.template', + 'sh' ], tests_require=test_requirements, ) From ecb090ca2c52cd71a4dbdf53ab5ccff0a47b9f30 Mon Sep 17 00:00:00 2001 From: Luis Felipe Mileo Date: Tue, 2 May 2017 16:58:59 -0300 Subject: [PATCH 3/4] [FIX] pytz (2016.7) dependencies --- requirements.txt | 3 ++- setup.py | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/requirements.txt b/requirements.txt index 22887bbc..8eb0e4ae 100644 --- a/requirements.txt +++ b/requirements.txt @@ -3,4 +3,5 @@ signxml>=2.2.4 Geraldo>=0.4.16 qrcode>=5.3 py3o.template>=0.9.11 -sh>=1.12.9 \ No newline at end of file +sh>=1.12.9 +pytz==2016.7 diff --git a/setup.py b/setup.py index 067bf8b2..79d65ecb 100644 --- a/setup.py +++ b/setup.py @@ -53,7 +53,8 @@ 'Geraldo', 'qrcode', 'py3o.template', - 'sh' + 'sh', + 'pytz', ], tests_require=test_requirements, ) From 50d718a805b8dbd00a85456cc24a4033a6c78e29 Mon Sep 17 00:00:00 2001 From: Leonardo Rochael Almeida Date: Wed, 3 May 2017 19:21:54 -0300 Subject: [PATCH 4/4] fixup! [FIX] pytz (2016.7) dependencies Indent with spaces, not tab. --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 79d65ecb..1657b48c 100644 --- a/setup.py +++ b/setup.py @@ -54,7 +54,7 @@ 'qrcode', 'py3o.template', 'sh', - 'pytz', + 'pytz', ], tests_require=test_requirements, )