-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3a829ae
commit e28e4d7
Showing
10 changed files
with
1,557 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
include LICENSE |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
|
||
release: | ||
ifndef VERSION | ||
$(error VERSION is undefined) | ||
endif | ||
|
||
git checkout -b ${VERSION}-release develop | ||
|
||
sed -i '' -e 's/{VERSION}/${VERSION}/g' setup.py | ||
git add setup.py | ||
git commit -m "Tagging version ${VERSION}" | ||
|
||
git tag ${VERSION} | ||
git push origin ${VERSION} | ||
|
||
# Package and upload to pypi | ||
python setup.py sdist register upload | ||
|
||
git checkout master | ||
git branch -D ${VERSION}-release |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,59 @@ | ||
di-py | ||
===== | ||
# di-py | ||
|
||
Dependency injection in python #di #python | ||
... | ||
|
||
# Background | ||
|
||
... | ||
|
||
# Scenarios | ||
|
||
... | ||
|
||
# Install | ||
|
||
|
||
### Using pip | ||
|
||
``` | ||
pip install di-py | ||
``` | ||
|
||
### Using requirements.txt | ||
|
||
List `di-py` dependency including the following line in your `requirements.txt` file: | ||
|
||
``` | ||
git+ssh://[email protected]/telefonicaid/di-py.git@master | ||
``` | ||
|
||
|
||
### Using RPM | ||
|
||
Generate RPM from source code: Download the code and generate the RPM | ||
|
||
``` | ||
python setup.py bdist_rpm | ||
``` | ||
|
||
# License | ||
|
||
See [LICENSE.txt](https://github.com/telefonicaid/di-py/blob/master/LICENSE) | ||
|
||
# Contributing | ||
|
||
Use the GitHub's pull request and issue tracker to provide patches or | ||
report problems with the library. All new functionality must be covered | ||
by unit tests before it can be included in the repository. | ||
|
||
The develop branch always has the cutting edge version of the code, if | ||
you are using it in your project it would be wise to create a fork of the | ||
repository or target a specific tag/commit for your dependencies. | ||
|
||
|
||
# Credits | ||
|
||
- Iván -DrSlump- Montes | ||
- Sergi Sorribas | ||
- Juan de Bravo | ||
- Tomas Montserrat |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
""" | ||
:copyright: (c) 2013 by Telefonica I+D. | ||
:license: see LICENSE for more details. | ||
""" | ||
|
||
from main import ( | ||
Key, injector, InjectorDescriptor, MetaInject, | ||
DependencyMap, ContextualDependencyMap, PatchedDependencyMap, | ||
) | ||
|
||
__all__ = ['Key', 'injector', 'InjectorDescriptor', 'MetaInject', | ||
'DependencyMap', 'ContextualDependencyMap', 'PatchedDependencyMap'] |
Oops, something went wrong.