mirror of
				https://github.com/ets-labs/python-dependency-injector.git
				synced 2025-10-31 16:07:51 +03:00 
			
		
		
		
	Update repository structure
This commit is contained in:
		
							parent
							
								
									cc85ae5a8f
								
							
						
					
					
						commit
						e3408075de
					
				|  | @ -2,7 +2,7 @@ | ||||||
| 
 | 
 | ||||||
| # Add <file or directory> to the black list. It should be a base name, not a | # Add <file or directory> to the black list. It should be a base name, not a | ||||||
| # path. You may set this option multiple times. | # path. You may set this option multiple times. | ||||||
| ignore=utils,test | ignore=utils,tests | ||||||
| 
 | 
 | ||||||
| [MESSAGES CONTROL] | [MESSAGES CONTROL] | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
|  | @ -4,7 +4,7 @@ install: | ||||||
|     - pip install cython |     - pip install cython | ||||||
|     - make cythonize |     - make cythonize | ||||||
| script:  | script:  | ||||||
|     - tox -v |     - tox | ||||||
| language: python | language: python | ||||||
| python: | python: | ||||||
|     - 3.5 |     - 3.5 | ||||||
|  |  | ||||||
|  | @ -1,4 +1,4 @@ | ||||||
| recursive-include dependency_injector *.py *.pyx *.pxd *.c | recursive-include src/dependency_injector *.py *.pyx *.pxd *.c | ||||||
| include README.rst | include README.rst | ||||||
| include CONTRIBUTORS.rst | include CONTRIBUTORS.rst | ||||||
| include LICENSE.rst | include LICENSE.rst | ||||||
|  |  | ||||||
							
								
								
									
										19
									
								
								Makefile
									
									
									
									
									
								
							
							
						
						
									
										19
									
								
								Makefile
									
									
									
									
									
								
							|  | @ -1,6 +1,6 @@ | ||||||
| VERSION := $(shell python setup.py --version) | VERSION := $(shell python setup.py --version) | ||||||
| 
 | 
 | ||||||
| CYTHON_SRC := $(shell find dependency_injector -name '*.pyx') | CYTHON_SRC := $(shell find src/dependency_injector -name '*.pyx') | ||||||
| 
 | 
 | ||||||
| CYTHON_DIRECTIVES = | CYTHON_DIRECTIVES = | ||||||
| 
 | 
 | ||||||
|  | @ -12,11 +12,11 @@ endif | ||||||
| 
 | 
 | ||||||
| clean: | clean: | ||||||
| 	# Clean sources | 	# Clean sources | ||||||
| 	find dependency_injector -name '*.py[cod]' -delete | 	find src -name '*.py[cod]' -delete | ||||||
| 	find dependency_injector -name '__pycache__' -delete | 	find src -name '__pycache__' -delete | ||||||
| 	find dependency_injector -name '*.c' -delete | 	find src -name '*.c' -delete | ||||||
| 	find dependency_injector -name '*.so' -delete | 	find src -name '*.so' -delete | ||||||
| 	find dependency_injector -name '*.html' -delete | 	find src -name '*.html' -delete | ||||||
| 	# Clean tests | 	# Clean tests | ||||||
| 	find tests -name '*.py[co]' -delete | 	find tests -name '*.py[co]' -delete | ||||||
| 	find tests -name '__pycache__' -delete | 	find tests -name '__pycache__' -delete | ||||||
|  | @ -29,16 +29,19 @@ cythonize: | ||||||
| 	cython -a $(CYTHON_DIRECTIVES) $(CYTHON_SRC) | 	cython -a $(CYTHON_DIRECTIVES) $(CYTHON_SRC) | ||||||
| 	# Move all Cython html reports | 	# Move all Cython html reports | ||||||
| 	mkdir -p reports/cython/ | 	mkdir -p reports/cython/ | ||||||
| 	find dependency_injector -name '*.html' -exec mv {}  reports/cython/  \; | 	find src -name '*.html' -exec mv {}  reports/cython/  \; | ||||||
| 
 | 
 | ||||||
| build: clean cythonize | build: clean cythonize | ||||||
| 	# Compile C extensions | 	# Compile C extensions | ||||||
| 	python setup.py build_ext --inplace | 	python setup.py build_ext --inplace | ||||||
| 
 | 
 | ||||||
|  | install: clean cythonize | ||||||
|  | 	python setup.py install | ||||||
|  | 
 | ||||||
| test: | test: | ||||||
| 	# Unit tests with coverage report | 	# Unit tests with coverage report | ||||||
| 	coverage erase | 	coverage erase | ||||||
| 	coverage run --rcfile=./.coveragerc -m unittest2 discover tests | 	coverage run --rcfile=./.coveragerc -m unittest2 discover tests/unit | ||||||
| 	coverage report --rcfile=./.coveragerc | 	coverage report --rcfile=./.coveragerc | ||||||
| 	coverage html --rcfile=./.coveragerc | 	coverage html --rcfile=./.coveragerc | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
							
								
								
									
										16
									
								
								setup.py
									
									
									
									
									
								
							
							
						
						
									
										16
									
								
								setup.py
									
									
									
									
									
								
							|  | @ -15,7 +15,7 @@ with open('requirements.txt') as version: | ||||||
|     requirements = version.readlines() |     requirements = version.readlines() | ||||||
| 
 | 
 | ||||||
| # Getting version: | # Getting version: | ||||||
| with open('dependency_injector/__init__.py') as init_file: | with open('src/dependency_injector/__init__.py') as init_file: | ||||||
|     version = re.search('VERSION = \'(.*?)\'', init_file.read()).group(1) |     version = re.search('VERSION = \'(.*?)\'', init_file.read()).group(1) | ||||||
| 
 | 
 | ||||||
| # Defining macros: | # Defining macros: | ||||||
|  | @ -34,15 +34,19 @@ setup(name='dependency-injector', | ||||||
|       maintainer='Roman Mogilatov', |       maintainer='Roman Mogilatov', | ||||||
|       maintainer_email='rmogilatov@gmail.com', |       maintainer_email='rmogilatov@gmail.com', | ||||||
|       url='https://github.com/ets-labs/python-dependency-injector', |       url='https://github.com/ets-labs/python-dependency-injector', | ||||||
|       bugtrack_url='https://github.com/ets-labs/python-dependency-injector' + |  | ||||||
|                    '/issues', |  | ||||||
|       download_url='https://pypi.python.org/pypi/dependency_injector', |       download_url='https://pypi.python.org/pypi/dependency_injector', | ||||||
|       install_requires=requirements, |       install_requires=requirements, | ||||||
|       packages=['dependency_injector', |       packages=[ | ||||||
|                 'dependency_injector.providers'], |           'dependency_injector', | ||||||
|  |           'dependency_injector.providers', | ||||||
|  |       ], | ||||||
|  |       package_dir={ | ||||||
|  |           'dependency_injector': 'src/dependency_injector', | ||||||
|  |           'dependency_injector.providers': 'src/dependency_injector/providers', | ||||||
|  |       }, | ||||||
|       ext_modules=[ |       ext_modules=[ | ||||||
|           Extension('dependency_injector.injections', |           Extension('dependency_injector.injections', | ||||||
|                     ['dependency_injector/injections.c'], |                     ['src/dependency_injector/injections.c'], | ||||||
|                     define_macros=defined_macros, |                     define_macros=defined_macros, | ||||||
|                     extra_compile_args=['-O2']), |                     extra_compile_args=['-O2']), | ||||||
|       ], |       ], | ||||||
|  |  | ||||||
|  | @ -6,5 +6,3 @@ class Error(Exception): | ||||||
| 
 | 
 | ||||||
|     All dependency injector errors extend this error class. |     All dependency injector errors extend this error class. | ||||||
|     """ |     """ | ||||||
| 
 |  | ||||||
| print(__file__, __name__) |  | ||||||
							
								
								
									
										5291
									
								
								src/dependency_injector/injections.c
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										5291
									
								
								src/dependency_injector/injections.c
									
									
									
									
									
										Normal file
									
								
							
										
											
												File diff suppressed because it is too large
												Load Diff
											
										
									
								
							
							
								
								
									
										
											BIN
										
									
								
								src/dependency_injector/injections.so
									
									
									
									
									
										Executable file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								src/dependency_injector/injections.so
									
									
									
									
									
										Executable file
									
								
							
										
											Binary file not shown.
										
									
								
							
							
								
								
									
										5
									
								
								tox.ini
									
									
									
									
									
								
							
							
						
						
									
										5
									
								
								tox.ini
									
									
									
									
									
								
							|  | @ -6,7 +6,7 @@ envlist= | ||||||
| deps= | deps= | ||||||
|     unittest2 |     unittest2 | ||||||
| commands= | commands= | ||||||
|     unit2 discover tests |     unit2 discover tests/unit | ||||||
| 
 | 
 | ||||||
| [testenv:coveralls] | [testenv:coveralls] | ||||||
| basepython=python3.5 | basepython=python3.5 | ||||||
|  | @ -17,9 +17,8 @@ deps= | ||||||
|     coverage |     coverage | ||||||
|     coveralls |     coveralls | ||||||
| commands= | commands= | ||||||
|     {envpython} setup.py build_ext --inplace |  | ||||||
|     coverage erase |     coverage erase | ||||||
|     coverage run --rcfile=./.coveragerc -m unittest2 discover tests |     coverage run --rcfile=./.coveragerc -m unittest2 discover tests/unit | ||||||
|     coveralls |     coveralls | ||||||
| 
 | 
 | ||||||
| [testenv:pylint] | [testenv:pylint] | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue
	
	Block a user