Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: split extras by features #144

Open
wants to merge 19 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 9 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,10 @@ Idea came from puppet's hiera.

```sh
pip install himl
# or, optionally install with all extras dependencies: vault and aws interpolation support
pip install himl[extras]
aslafy-z marked this conversation as resolved.
Show resolved Hide resolved
# or, specify which extras dependencies you need
pip install himl[vault,aws]
```

### Using `docker` image
Expand Down
13 changes: 11 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,18 @@
'backports.functools_lru_cache==1.6.6',
'pathlib2==2.3.7.post1',
'pyyaml==6.0.1',
'boto3==1.28.12',
'hvac==1.1.1'
]

_extras_require = {
'aws': [
aslafy-z marked this conversation as resolved.
Show resolved Hide resolved
'boto3==1.28.12',
],
'vault': [
'hvac==1.1.1',
],
}
_extras_require['extras'] = [dep for deps in _extras_require.values() for dep in deps]
aslafy-z marked this conversation as resolved.
Show resolved Hide resolved

setup(
name='himl',
version="0.15.0",
Expand Down Expand Up @@ -54,6 +62,7 @@
packages=['himl'],
include_package_data=True,
install_requires=_install_requires,
extras_require=_extras_require,
entry_points={
'console_scripts': [
'himl = himl.main:run',
Expand Down