Skip to content

Commit a767448

Browse files
committed
Add Configuration.from_yaml method
1 parent 2c43a1c commit a767448

File tree

6 files changed

+3682
-2989
lines changed

6 files changed

+3682
-2989
lines changed

docs/main/changelog.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ follows `Semantic versioning`_
99

1010
Development version
1111
-------------------
12+
- Add ``Configuration.from_yaml()`` method to load configuration from yaml file.
1213
- Add ``Configuration.from_ini()`` method to load configuration from ini file.
1314
- Add ``Configuration.from_dict()`` method to load configuration from dictionary.
1415
- Remove undocumented positional parameter of ``DependenciesContainer`` provider.

setup.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,11 @@
4040
url='https://github.com/ets-labs/python-dependency-injector',
4141
download_url='https://pypi.python.org/pypi/dependency_injector',
4242
install_requires=requirements,
43-
packages=[
44-
'dependency_injector',
45-
],
43+
extras_require={
44+
'yaml': [
45+
'pyyaml',
46+
],
47+
},
4648
package_dir={
4749
'': 'src',
4850
},

0 commit comments

Comments
 (0)