Lab 9, pip!

Mohammed Ahmed
2 min readJan 16, 2021

Well, this is it. We learnt how to package our code, and upload them to pypi. The final stretch. The last hoorah.

I actually found this Lab really easy. All I had to do was to invoke setuptools and wheel, and voila! All done. It was very fast, because I’ve already created a setup.py, way back when we first started the course.

Fun fact, when I mentioned that we can run our tool as a cmd by invoking the “install” command from pip3, it technically builds the script as a package, and then invoked by the name. Yeah, pip. It’s a package installer.

Output from pip

When I was building my package, it generated a lot of output. However, it worked, as I got 2 new directories!

the new folders

Great! Now I just need to upload it to PyPi. Shouldn’t be too hard.

Now that I have everything ready, I started with downloading Twine. I need that in order to upload my files onto the Index. So I invoked pip again, to install Twine. After that, I just passed the token username and password, and it uploaded! nice.

And that’s it. With this being uploaded, I’ve completed all the labs.

My experience in this class was phenominal. I got to work on repos and I learnt so much about Git, GitHub, Python and Pip! I got to learn automation on code, linting, and contributing to other peoples PRs. I’m very excited for DPS911, and I can’t wait for what’s in store.

--

--

Mohammed Ahmed
0 Followers

Transit Enthusiast, and Games Enthusiast