mirror of
https://github.com/ets-labs/python-dependency-injector.git
synced 2024-11-22 09:36:48 +03:00
Clean up
This commit is contained in:
parent
4823278f11
commit
82bd1ae843
2
Makefile
2
Makefile
|
@ -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
|
||||||
|
|
8
setup.py
8
setup.py
|
@ -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'],
|
||||||
|
|
4
tox.ini
4
tox.ini
|
@ -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]
|
||||||
|
|
Loading…
Reference in New Issue
Block a user