Skip to content

Latest commit

 

History

History
61 lines (44 loc) · 1.22 KB

File metadata and controls

61 lines (44 loc) · 1.22 KB

Packaging python module

python3.7 -m pip install .
python3.7 -m pip install wheel

# Compiling the package
python3.7 setup.py bdist_wheel --universal

# Add source codes 
python3.7 setup.py sdist

# Install on Your Local Machine
python3.7 -m pip install dist/deTELpy-0.1.3-py2.py3-none-any.whl

# Install twine for uploading the release
python3.7 -m pip install twine

# Upload dist to test.pypi.org
twine upload --repository-url https://test.pypi.org/legacy/ dist/*

# Generate the signature of the release
gpg --detach-sign -a dist/deTELpy-0.1.3-py2.py3-none-any.whl
twine upload --repository-url https://test.pypi.org/legacy/ dist/deTELpy-0.1.3-py2.py3-none-any.whl 

pip install --index-url https://test.pypi.org/simple/ pyexample --user

twine upload dist/*
twine upload dist/deTELpy-0.1.3.tar.gz deTELpy-0.1.3.tar.gz.asc

pip install deTELpy --user

pip download deTELpy
pip download --no-deps deTELpy

Create Pypirc file

for Windows : C:\Users\UserName.pypirc

for *nix : ~/.pypirc

[distutils] 
index-servers=pypi
[pypi] 
repository=https://upload.pypi.org/legacy/ 
username=hkmoon
python -m twine upload dist/*
pip install matplotlib

Test

python3.7 -m pytest