Skip to content

MaastrichtU-IDS/IDS-Training-Days-2025-Lib-Packaging

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A Multiplication Lib

Example of python packaging.

Installing

From Private PyPi (playground)

run: pip install --extra-index-url https://arruda.pythonanywhere.com/simple my_multiplication_lib

From Official PyPi

run: pip install my_multiplication_lib ps: (check name of your lib, needs to be unique in the official pypi)

Using the lib:

from my_multiplication_lib import *

print(fancy_multiplication(4, 5, 6))

Test this by running: python example/my_script.py

Development Setup

run: pip install .[dev]

Will install dev libs.

Running Tests

run: python -m unittest discover

Building package

run:

python -m build

Uploading

Using private pypi (playground)

run: twine upload --repository-url https://arruda.pythonanywhere.com dist/*

Using official PyPi

run: twine upload dist/* You will be asked for you PyPi credentials. ps: you may have to create a API token for your PyPi account and use it instead. Also avoid clutering by publishing fake packages to the official PyPi repository if you are just testing the process out.

License

See LICENSE file for details.

About

Code for the the IDS Training Days 2025 on python Lib Packaging

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages