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

Activate virtual environment

source venv/bin/activate

Run all tests

python -m unittest discover -v 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.3.tar.gz (2.5 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.3-py3-none-any.whl (2.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: testpackage1290-0.0.3.tar.gz
  • Upload date:
  • Size: 2.5 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.3.tar.gz
Algorithm Hash digest
SHA256 f3b76a7cfb7108ba05502ba9906979c39b62a3ce41c99e96ae8f49eb8fbc848d
MD5 b1775fb83e65de327a2b24446ee6e545
BLAKE2b-256 e06e3ecdd584775c10a872fa0c39730baf18900ebe9b4a7902e67c494cf6fcb4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for testpackage1290-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 3a81330cd288f89ad1145f8a2f26591e283beaae46d9e0ea2e6004fa140ba982
MD5 2d8c53018b9e7a948b3b44e25359fb4a
BLAKE2b-256 81330aba201ab25ce3e57298a480782a0e28036138745ee5b0a8e461ad700e86

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