Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
8d8a5b4
Update manifest file
rmk135 Oct 31, 2016
83684f0
Add cython to development requirements
rmk135 Oct 31, 2016
d594f80
Add build command to makefile
rmk135 Oct 31, 2016
7559959
Add injections extension
rmk135 Oct 31, 2016
b413826
Add injections extension to setup script
rmk135 Oct 31, 2016
02b993e
Add cython->c compilation command to .travis.yml
rmk135 Oct 31, 2016
e5498f2
Add creation of debug builds
rmk135 Nov 1, 2016
214a647
Add public methods for injections
rmk135 Nov 2, 2016
c78c9dd
Add pep257 exceptions for tests
rmk135 Nov 2, 2016
76d47df
Add few tests for injections
rmk135 Nov 2, 2016
c93d1fb
Set python 3.5 for coveralls job
rmk135 Nov 2, 2016
776da6d
Add todo about delegation to injections
rmk135 Nov 2, 2016
6b1ff70
Remove unnecessary injection tests
rmk135 Nov 2, 2016
d8f4494
Update travis config to create debug builds only for coverage
rmk135 Nov 2, 2016
3bd19a1
Tune building in debug mode
rmk135 Nov 2, 2016
7ae0086
Update examples for 3.0
rmk135 Nov 2, 2016
4d82935
Make tox produce verbose output
rmk135 Nov 2, 2016
fe36a12
Try basepython=python
rmk135 Nov 2, 2016
6a1e058
Move tests on all version to single job
rmk135 Nov 2, 2016
15d156c
Remove debug output from tox
rmk135 Nov 2, 2016
1a9dd6c
One more attempt...
rmk135 Nov 2, 2016
b724881
Attempt x
rmk135 Nov 2, 2016
cd1df0a
Try build vs cythonize
rmk135 Nov 2, 2016
49a2061
Try cythonize vs build
rmk135 Nov 2, 2016
0f1497b
Add debug to tox
rmk135 Nov 2, 2016
a7c0a76
Update tox ini
rmk135 Nov 2, 2016
8f39ed4
Update tox.ini
rmk135 Nov 2, 2016
cc85ae5
Test print
rmk135 Nov 2, 2016
e340807
Update repository structure
rmk135 Nov 2, 2016
abbc7e8
Update changelog
rmk135 Nov 2, 2016
0421ae2
Clean up, changelog update
rmk135 Nov 2, 2016
db3bd77
Clean up
rmk135 Nov 2, 2016
aac72ed
Clean up and final fixes
rmk135 Nov 2, 2016
4823278
Tune debug mode
rmk135 Nov 2, 2016
82bd1ae
Clean up
rmk135 Nov 2, 2016
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Clean up and final fixes
  • Loading branch information
rmk135 committed Nov 2, 2016
commit aac72ed3a34c8e55f0d8923ef1b78e75dbb9aede
3 changes: 2 additions & 1 deletion .coveragerc
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
[run]
source = src/dependency_injector
omit = tests/unit
plugins = Cython.Coverage
include = dependency_injector/*

[html]
directory=reports/unittests/
10 changes: 5 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,13 @@ build: clean cythonize
# Compile C extensions
python setup.py build_ext --inplace

install: clean cythonize
python setup.py install
install: uninstall clean cythonize
pip install . -v

uninstall:
- pip uninstall -y -q dependency-injector 2> /dev/null

test:
test: build
# Unit tests with coverage report
coverage erase
coverage run --rcfile=./.coveragerc -m unittest2 discover tests/unit
Expand All @@ -50,10 +50,10 @@ test:

check:
# Static analysis
flake8 --max-complexity=10 dependency_injector/
flake8 --max-complexity=10 src/dependency_injector/
flake8 --max-complexity=10 examples/
# Code style analysis
pydocstyle dependency_injector/
pydocstyle src/dependency_injector/
pydocstyle examples/

publish: cythonize
Expand Down
3 changes: 1 addition & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,7 @@
'dependency_injector.providers',
],
package_dir={
'dependency_injector': 'src/dependency_injector',
'dependency_injector.providers': 'src/dependency_injector/providers',
'': 'src',
},
ext_modules=[
Extension('dependency_injector.injections',
Expand Down
6 changes: 3 additions & 3 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -25,18 +25,18 @@ commands=
deps=
pylint
commands=
- pylint -f colorized --rcfile=./.pylintrc dependency_injector
- pylint -f colorized --rcfile=./.pylintrc src/dependency_injector

[testenv:flake8]
deps=
flake8
commands=
flake8 --max-complexity=10 dependency_injector/
flake8 --max-complexity=10 src/dependency_injector/
flake8 --max-complexity=10 examples/

[testenv:pydocstyle]
deps=
pydocstyle
commands=
pydocstyle dependency_injector/
pydocstyle src/dependency_injector/
pydocstyle examples/