Skip to content

Commit

Permalink
first commit
Browse files Browse the repository at this point in the history
  • Loading branch information
juandebravo committed Feb 26, 2015
1 parent 3a829ae commit e28e4d7
Show file tree
Hide file tree
Showing 10 changed files with 1,557 additions and 3 deletions.
661 changes: 661 additions & 0 deletions LICENSE

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
include LICENSE
20 changes: 20 additions & 0 deletions Makefile
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
61 changes: 58 additions & 3 deletions README.md
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
12 changes: 12 additions & 0 deletions di/__init__.py
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']
Loading

0 comments on commit e28e4d7

Please sign in to comment.