-
Notifications
You must be signed in to change notification settings - Fork 6
Create Package
This calculator is a basic version of a calculation that can perform simple arithmetic operations including Addition, Subtraction, Multiplication, Division, Modulus, Exponentiation, and Floor division. The name of functions are as below
Addition : add_numbers
Subtraction : sub_numbers
Multiplication : mult_numbers
Division : div_numbers
Modulus : mod_numbers
Exponentiation : squ_number
Floor division : fdiv_numbers
-
Create a package
- Prepare your code to share
- Create the init.py file
-
Create the License and README files
-
License.txt will tell users the terms and conditions under which they can use your package. Go to and copy and past into your file the MIT license
-
README.md will simply tell users what your package is
-
-
Create setup.py file
-
Install the required packages with pip or pip3
- Setuptools
- Twine
-
Run the command to generate your source distribution :
python setup.py sdist bdist_wheel
- Register yourself
- Run the command to upload package :
twine upload --repository-url https://upload.pypi.org/legacy/ dist/*
- Test the package
pip install packagename