Category : setuptools

I created a package which has 2 modes: the basic mode with basic functionality only extended functionality which adds additional modules and needs extra requirements. For example: MyPackageName core cyber_analyzer parsing Where "parsing" is the extension and needs "pandas" as requirement. Then, I want my package to have 2 modes: pip install mypackage pip install ..

Read more

I created multiple packages according to the PEP420 implicit namespace packaging method. Two of those distribution packages are dende-github-api and dende-gitlab-api. Each of those distributions contains one module which I want to be accessible unter the dende.api namespace. A minimal working example can be found here: https://github.com/dende/example-monorepositry This is the folder structure of the Repository ..

Read more

There is no indication in the documentation that you can specify multiple links for the same package dependency: https://setuptools.readthedocs.io/en/latest/userguide/dependency_management.html#dependencies-that-aren-t-in-pypi Use Case — Authentication using multiple methods for Github (Token or SSH) Authenticating a private repo in GitHub can be done with either an SSH key or GitHub token. In setup.py, you can specify it with ..

Read more

Some help please. I’m trying to install my package locally. That is – pip install .. However, when reading may package’s __init__.py file, it raises an ImportError for either absolute importations (from <package> import module) and relative ones (from . import module). The thing is, that when I install the file in "developement-mode"/"editable" (pip install ..

Read more