diff --git a/Makefile b/Makefile index 61eb028c..4764cba1 100644 --- a/Makefile +++ b/Makefile @@ -36,7 +36,7 @@ build: clean cythonize python setup.py build_ext --inplace install: uninstall clean cythonize - pip install . -v + pip install -ve . uninstall: - pip uninstall -y -q dependency-injector 2> /dev/null diff --git a/setup.py b/setup.py index cb684564..f6ddec9c 100644 --- a/setup.py +++ b/setup.py @@ -8,7 +8,6 @@ from setuptools import setup, Extension # Defining setup variables: defined_macros = list() -package_data = dict([('dependency_injector', ['*.pxd'])]) # Getting description: with open('README.rst') as readme_file: @@ -27,9 +26,6 @@ if os.environ.get('DEPENDENCY_INJECTOR_DEBUG_MODE') == '1': defined_macros.append(('CYTHON_TRACE', 1)) defined_macros.append(('CYTHON_TRACE_NOGIL', 1)) - package_data['dependency_injector'].append('*.pyx') - package_data['dependency_injector'].append('*.c') - setup(name='dependency-injector', version=version, @@ -55,7 +51,9 @@ setup(name='dependency-injector', define_macros=defined_macros, extra_compile_args=['-O2']), ], - package_data=package_data, + package_data={ + 'dependency_injector': ['*.pxd'], + }, zip_safe=True, license='BSD New', platforms=['any'], diff --git a/tox.ini b/tox.ini index b52fc2e7..2cc5f30d 100644 --- a/tox.ini +++ b/tox.ini @@ -9,8 +9,9 @@ commands= unit2 discover tests/unit [testenv:coveralls] -basepython=python3.5 passenv=TRAVIS TRAVIS_JOB_ID TRAVIS_BRANCH DEPENDENCY_INJECTOR_DEBUG_MODE +basepython=python3.5 +usedevelop=True deps= {[testenv]deps} cython @@ -19,6 +20,7 @@ deps= commands= coverage erase coverage run --rcfile=./.coveragerc -m unittest2 discover tests/unit + coverage report --rcfile=./.coveragerc coveralls [testenv:pylint]