Skip to main content

A simple example package

Project description

Testing Publishing PyPi Package

Very cool indeed.

Setup

Create virtual environment

python -m venv venv source venv/bin/activate pip install -r requirements.txt

Create virtual environment (publishing)

python -m venv venv_publish source venv_publish/bin/activate pip install wheel twine

Publish first version of the package

Set version to "0.0.1" setup.py. source venv_publish/bin/activate python setup.py sdist bdist_wheel twine upload dist/*

Testing

Create virtual environment

python -m venv venv

Activate virtual environment

source venv/bin/activate

Run all tests

python -m unittest -v discover tests

Run specific test

python -m unittest -v tests.xxx

Publishing

Publish new version of the package

Increment version in setup.py. source venv_publish/bin/activate python setup.py sdist bdist_wheel twine upload dist/*

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

testpackage1290-0.0.2.tar.gz (2.4 kB view details)

Uploaded Source

Built Distribution

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

testpackage1290-0.0.2-py3-none-any.whl (2.8 kB view details)

Uploaded Python 3

File details

Details for the file testpackage1290-0.0.2.tar.gz.

File metadata

  • Download URL: testpackage1290-0.0.2.tar.gz
  • Upload date:
  • Size: 2.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.10.6

File hashes

Hashes for testpackage1290-0.0.2.tar.gz
Algorithm Hash digest
SHA256 5cca18ac35b533875be347823bdaf1059710cbfc6c89fd9ccbd86aeed058744b
MD5 cffeb9b42071e036be144e660f58e0fd
BLAKE2b-256 0f58c355a43e6ac60fc870a9e54ee6861d9140de05fd5471e76df56fa8195418

See more details on using hashes here.

File details

Details for the file testpackage1290-0.0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for testpackage1290-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 cce165b5b7a69326a857537c0aef81b55459872715d20f3effbbfb7476e980c0
MD5 824e08e81591bebaf980b9400c61aa9f
BLAKE2b-256 88573145e44aae499c9d91cd16e4b44cf59dcf25e7e6a43f7690d000ed43c2e7

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