Infoblox-PS / ibx-sdk

Basic Tools and Functions used by other Integrations.
Apache License 2.0
4 stars 0 forks source link

create alternate install options for optionally installing scripts or not #74

Open yeti9990 opened 9 months ago

yeti9990 commented 9 months ago

There should be an option to install lib only vs lib + scripts. Reason - i may want to create scripts in a different package with the same name(s) but more or different functionality.

The default should be lib only:

pip install ibx-sdk

Optionally install scripts with the lib:

pip install "[all]"
yeti9990 commented 9 months ago

i think the ONLY way to do this is to split out the scripts into it's very OWN pkg., i.e. move all the scripts to ibx-sdk-cli a new pkg. In the pyproject.toml we'd implement optional / additional dependency:

[project.optional-dependencies]
cli = [
  "ibx-sdk-cli",
]

The method for installing the Infoblox SDK w/ CLI scripts would be:

pip install "ibx-sdk[cli]"
yeti9990 commented 9 months ago

This won't be implemented UNTIL we're ready to move to PyPi. It doesn't make sense b/c pip install from git might become much harder.