diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..6b01369 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,7 @@ +language: python +python: + - "2.7" +install: + - pip install PyXmlSec +script: nosetests + diff --git a/setup.py b/setup.py index d6806ee..eaf2666 100644 --- a/setup.py +++ b/setup.py @@ -1,12 +1,11 @@ #coding=utf-8 -from setuptools import setup +from setuptools import setup, find_packages setup( name = "PyNfeTrust", version = "0.1", author = "Danimar Ribeiro", author_email = 'danimaribeiro@gmail.com', - test_suite='tests', keywords = ['nfe', 'mdf-e'], classifiers=[ 'Development Status :: 1 - alpha', @@ -17,10 +16,7 @@ setup( 'Programming Language :: Python', 'Topic :: Software Development :: Libraries :: Python Modules', ], - packages = [ - 'pynfe', - 'pynfe.servicos', - ], + packages = find_packages(exclude=['*tests*']), url = 'https://github.com/danimaribeiro/PyNfeTrust', license = 'LGPL-v2.1+', description = 'PyNfeTrust é uma biblioteca para envio de NF-e', @@ -28,7 +24,9 @@ setup( install_requires=[ 'PyXMLSec >= 0.3.0' ], + test_suite='nose.collector', tests_require=[ - 'pyflakes>=0.6.1', + 'nose', + 'mock', ], ) diff --git a/test/AssinaturaTest.py b/tests/AssinaturaTest.py similarity index 100% rename from test/AssinaturaTest.py rename to tests/AssinaturaTest.py diff --git a/test/__init__.py b/tests/__init__.py similarity index 100% rename from test/__init__.py rename to tests/__init__.py