I have created a small package in python with all my favorite functions.
It is in a folder called myfunctions with the good init.py and folder structure.
I would like to use it in other projects and to be able to install it through my git with a pip install git+ command.
I have tried to create a setup.py. It seems to work, when I pip install it starts installing dependencies but after some times it complains about trying to install python-template.
I presume there is something wrong, my setup.py is on the root folder of my repl.
Does someone already managed to make a package on repl to be installed on another repl from GitHub ? Can you give me an example ?
could you send a repl link?
setup.py file shouldn’t be in the root directory, but rather inside the
You can refer to this post on how to create a Python package:
@fvillemin The reason it is installing
python-templete is because of the
Just to be safe, I use both
pyproject.toml. @Firepup650 gave me the contents of a good package’s
I made a package, view it here (for the pyproject etc):
Thanks for your answers.
In fact it is really easy and I just had to change the Name in the pyproject.toml to avoid the error on python-template.
I don’t know if the setup.py is used but everything seems used from the pyproject.
Installation is done through pip install git+mygithub_project and it works great
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.