I'm thinking about releasing one of my github projects as package to PyPI and Conda. It would be the first time for me to release something and I'm new to the process, naturally I have a lot of questions. One of them concerns dependencies.
Usually there's a requirements.txt
or environment.yaml
file with all the dependencies for the package or some other kind of config file (setup.py
, setup.cfg
). For the documentation I'd like to include some examples on how to use my package in a separate examples folder. For this I'd like to use other libraries like matplotlib
for plotting or pandas
for nice table formatting, which are not essential for the usage my package.
If and how do I include non essential requirements to my project ?
Do I just leave those non essential packages out of the requirement / environment files and push my example scripts to the repo anyway? Or do I have to include those libraries as well?