Skip to main content

A small example package

Project description

Publish Python 🐍 distribution 📦 to PyPI and TestPyPI

Lint & Tests

try_pub_pypi

Only test to automate publishing to pypi.org

virtual python3 ENV

  1. Create virtual ENV → python3 -m venv .venv # смотри conda (Anaconda)
  2. Activate → source .venv/bin/activate
  3. Check virt env → echo $VIRTUAL_ENV → should be non empty output
  4. Deactivate → deactivate or reopen terminal session

Requirements

  • instal pip install -r requirements.txt
  • save pip freeze > requirements.txt
  • check to old requirements pip list --outdated
  • upgrade some package pip install -U package_name

Run tests

A simple way: python3 -m unittest discover -s ./tests or pytest

Publish on pypi.org

  • manual mod: just run Actions → Publish Python 🐍 distribution 📦 to PyPI
  • pub by special commit tag to only 'main' branch:
    1. git commit -m "your important message" & git push
    2. git tag vx.x.x; x is the numbers! Follow the pattern: 'v[0-9]+.[0-9]+.[0-9]+'
    3. git push origin vx.x.x

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

try_pub_pypi-0.0.3.tar.gz (15.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

try_pub_pypi-0.0.3-py3-none-any.whl (15.0 kB view details)

Uploaded Python 3

File details

Details for the file try_pub_pypi-0.0.3.tar.gz.

File metadata

  • Download URL: try_pub_pypi-0.0.3.tar.gz
  • Upload date:
  • Size: 15.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.9.19

File hashes

Hashes for try_pub_pypi-0.0.3.tar.gz
Algorithm Hash digest
SHA256 643b5d98593c7f3fa42ecc8d38e3c37a7a6b32e42c0549fa0804a3d28cf40403
MD5 b96c9ee3751f636d7ff353e06d849352
BLAKE2b-256 927f9226289ecf892eff8c2e73ffc781b65fef43f9efa991a736e1390ffee9cc

See more details on using hashes here.

File details

Details for the file try_pub_pypi-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: try_pub_pypi-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 15.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.9.19

File hashes

Hashes for try_pub_pypi-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 2e7923d102dd387a675ac3fd22ec0ee7b822497d7be68c682a48b84d6e23df68
MD5 64c6de8daf0c9b5a38d2f5bc5343e2d2
BLAKE2b-256 37174203e50489d29cd71400495158c6b8b6103870b673a27c33818abd2df246

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page