if ~/.pypirc does not exists, create it with the content (alter the username):
[distutils]
index-servers=
pypi
testpypi
[testpypi]
repository: https://test.pypi.org/legacy/
username: TheMatjaz
[pypi]
username: TheMatjaz
pip3 install --upgrade pip setuptools wheel twine
python3 setup.py sdist bdist_wheel --universal
python3 -m twine upload --repository testpypi dist/*
(enter password)
pip3 install --index-url https://test.pypi.org/simple/ --no-deps your-package
import your-package
in the python shell within the same venv
python3 -m twine upload --repository pypi dist/*