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
install: uninstall clean cythonize
pip install . -v
pip install -ve .
uninstall:
- pip uninstall -y -q dependency-injector 2> /dev/null

View File

@ -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'],

View File

@ -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]