5

I am planning to create a python package which can only be used by team in my univ.I can host that on my university server.Is there any reference, guide or tutorial to do the same.I have developed pip packages previously but they were pushed onto the public space. The idea is to put code on github (enterprised by my univ) and point the pip package to the git repo.

1 Answer 1

1

Maybe just pointing the dependencies (requirements.txt/setup.py) of the packages that depends on this private package to that package's private github repo URL is enough. Add a line like this to your requirements.txt

-e git+ssh://[email protected]/example/example.git#egg=example
Sign up to request clarification or add additional context in comments.

4 Comments

Thank you.But Is there any way i could make the end user job easier like "pip install <my_apckage_name> "--extra-index-url <my_server_url>""
Oh I see, you said the end users, can I assume they won't have access to the repo then?
It should just be another python package like django.They need not get into the code stuff.
May be something like PyPiCloud (pypicloud.readthedocs.io/en/latest) does the trick for you other than that I don't have experience setting up a private PyPi server, so I'll just leave this this question for someone with more experience to answer. Hope you solve this soon.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.