Require project from github

One of my required packages is not in pip, but is a github repository.

If I install in locally I would do,

pip install git+https://github.com/perceptualrobots/DRL-for-microgrid-energy-management.git

I tried to include it in settings.ini like this,

requirements = git+https://github.com/perceptualrobots/DRL-for-microgrid-energy-management.git deprecated pygame plotly numpy==1.22.2

However, when I push my project to github I get an error,

'install_requires' must be a string or list of strings containing valid project/version requirement specifiers; Parse error at “‘+https:/’”: Expected stringEnd

Is there a way of including such packages?

I don’t have experience doing this myself but was googling for ideas and found two posts that might help:

Thanks, those did help. I found this worked, though the packaging wasn’t right so I decided to build it as a pypi project.

requirements = cfg.get(‘requirements’,’’).split() + [‘DRL-for-microgrid-energy-management @ https://github.com/perceptualrobots/DRL-for-microgrid-energy-management/tarball/master’]
1 Like