mirror of
https://github.com/ets-labs/python-dependency-injector.git
synced 2024-11-24 18:43:58 +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
|
||||
|
||||
install: uninstall clean cythonize
|
||||
pip install . -v
|
||||
pip install -ve .
|
||||
|
||||
uninstall:
|
||||
- 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:
|
||||
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'],
|
||||
|
|
4
tox.ini
4
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]
|
||||
|
|
Loading…
Reference in New Issue
Block a user