0

Problem:

I am trying to create a large repo in Github with multiple subdirectory releases into Pypi. I am looking to managing my releases and imports similar to how Azure does.

Example:

To install Azure key vault and Azure Resource management , the following commands can be run.

pip install azure-keyvault-secrets
pip install azure-mgmt-resource

These are treated as two different pypi releases but when importing the two libraries into a python script, they share the same base path (azure). For e.g. ,

from azure.keyvault.secrets import SecretClient
from azure.mgmt.resource import ResourceManagementClient

What I have done so far:

Not much besides lots of searching online for the solution. I am unsure if this feature is a specific feature of python or github. I am unable to to find the exact feature name so I am unsure where to start. Most of my google search leads to git submodules which is not what I am looking for.

sinoroc
  • 18,409
  • 2
  • 39
  • 70
Bigya Pradhan
  • 216
  • 1
  • 7
  • 2
    "*…share the same base path…*" They're called [namespace packages](https://stackoverflow.com/search?q=%5Bsetuptools%5D+namespace+packages). – phd Feb 27 '23 at 10:05
  • 2
    Yes, as already said, they are "*namespace packages*", that is the key word you should look up. I will also add [this guide](https://packaging.python.org/en/latest/guides/packaging-namespace-packages/), make sure to use the "*[**native** namespace packages technique](https://packaging.python.org/en/latest/guides/packaging-namespace-packages/#native-namespace-packages)*". – sinoroc Feb 27 '23 at 10:24
  • https://stackoverflow.com/search?q=%5Bsetuptools%5D+native+namespace+packages – phd Feb 28 '23 at 11:10

0 Answers0