This commit is contained in:
Roman Mogilatov 2016-11-03 00:56:30 +02:00
parent 4823278f11
commit 82bd1ae843
3 changed files with 7 additions and 7 deletions

View File

@ -36,7 +36,7 @@ build: clean cythonize
python setup.py build_ext --inplace python setup.py build_ext --inplace
install: uninstall clean cythonize install: uninstall clean cythonize
pip install . -v pip install -ve .
uninstall: uninstall:
- pip uninstall -y -q dependency-injector 2> /dev/null - pip uninstall -y -q dependency-injector 2> /dev/null

View File

@ -8,7 +8,6 @@ from setuptools import setup, Extension
# Defining setup variables: # Defining setup variables:
defined_macros = list() defined_macros = list()
package_data = dict([('dependency_injector', ['*.pxd'])])
# Getting description: # Getting description:
with open('README.rst') as readme_file: 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', 1))
defined_macros.append(('CYTHON_TRACE_NOGIL', 1)) defined_macros.append(('CYTHON_TRACE_NOGIL', 1))
package_data['dependency_injector'].append('*.pyx')
package_data['dependency_injector'].append('*.c')
setup(name='dependency-injector', setup(name='dependency-injector',
version=version, version=version,
@ -55,7 +51,9 @@ setup(name='dependency-injector',
define_macros=defined_macros, define_macros=defined_macros,
extra_compile_args=['-O2']), extra_compile_args=['-O2']),
], ],
package_data=package_data, package_data={
'dependency_injector': ['*.pxd'],
},
zip_safe=True, zip_safe=True,
license='BSD New', license='BSD New',
platforms=['any'], platforms=['any'],

View File

@ -9,8 +9,9 @@ commands=
unit2 discover tests/unit unit2 discover tests/unit
[testenv:coveralls] [testenv:coveralls]
basepython=python3.5
passenv=TRAVIS TRAVIS_JOB_ID TRAVIS_BRANCH DEPENDENCY_INJECTOR_DEBUG_MODE passenv=TRAVIS TRAVIS_JOB_ID TRAVIS_BRANCH DEPENDENCY_INJECTOR_DEBUG_MODE
basepython=python3.5
usedevelop=True
deps= deps=
{[testenv]deps} {[testenv]deps}
cython cython
@ -19,6 +20,7 @@ deps=
commands= commands=
coverage erase coverage erase
coverage run --rcfile=./.coveragerc -m unittest2 discover tests/unit coverage run --rcfile=./.coveragerc -m unittest2 discover tests/unit
coverage report --rcfile=./.coveragerc
coveralls coveralls
[testenv:pylint] [testenv:pylint]