Skip to main content

My very first library python

  1. Tutorial from
    https://www.youtube.com/watch?v=KTaLs494xgo&list=PLyb_C2HpOQSB3z_4WliKt56WyDgfXzzMz
    https://realpython.com/pypi-publish-python-package/
  1. Install requirements to build library
    pip3 install wheel
    pip3 install twine
  1. Build your packages
    python3 setup.py sdist bdist_wheel
  1. Check the distribution
    twine check dist/*
    ===> If passed ==> Now we goonna published to website
  1. TestPyPI: Test python package publishing before publishes on Python Package Index
    twine upload --repository-url https://test.pypi.org/legacy/ dist/*

- If you are using ubuntu, maybe you will get this error from commandline
....
    from keyring.util.escape import escape as escape_for_ini
ModuleNotFoundError: No module named 'keyring.util.escape'

    pip3 install --upgrade keyrings.alt 
  1. PyPI: Find, install and publish python packages with PPI
    twine upload --repository-url https://upload.pypi.org/legacy/ dist/*

Release files for tn-weather-reporter 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for tn-weather-reporter 0.1.1
File Size Uploaded
tn_weather_reporter-0.1.1.tar.gz 3.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for tn-weather-reporter 0.1.1
File Interpreter ABI Platform
tn_weather_reporter-0.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 7.5 kB

Release files / tn_weather_reporter-0.1.1.tar.gz

Download URL tn_weather_reporter-0.1.1.tar.gz
Size 3.4 kB
Tags Source
SHA-256 checksum
How to use checksums
d74fae2cf0cc30f3021de171d51a344f203ffde99dfec672cf23018156819409
BLAKE2b-256 checksum
How to use checksums
65c221ade2aac0827ecf2bba454c5680a58c80a49ac313a88663c5f10e37d460
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/42.0.2 requests-toolbelt/0.9.1 tqdm/4.40.0 CPython/3.6.9

Release files / tn_weather_reporter-0.1.1-py3-none-any.whl

Download URL tn_weather_reporter-0.1.1-py3-none-any.whl
Size 4.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8b7f3561115f6eac4b36bbc8d9fd83057cc79764eff67342ab7a1cbcebcf55a1
BLAKE2b-256 checksum
How to use checksums
0799363d959ccd547bdab0850bc7ae799c096f38f944d4c96564f82cfe351234
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/42.0.2 requests-toolbelt/0.9.1 tqdm/4.40.0 CPython/3.6.9

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page