Publishing a Package on PyPI
Posted on 31 Oct, 2019
I just published my first package on pypi 😍 I used the following steps to do it :
Put your python files/classes inside the folder
package-name
.Also make sure your main class file has the same namepackage-name
.Add the
__init__.py
file in the same folder. Use the init file like this.Now make a file
setup.py
inside the root of your github folder. Add the following contents in it:
Now make a file
setup.cfg
. It is used for displaying project description on PyPI.
Install the followig libraries.
Run the following command.
Finally upload it to PyPI.
This will prompt for your PyPi username and password.
Resources
PreviousPreventing global package install with `PIP_REQUIRE_VIRTUALENV`NextSpecify dev dependencies in setup.py
Last updated