Skip to main content

common python utility modules

Project description

common-util-py

common utilities in python

how to install

$ python3 -m venv py312_env
$ source py312_env/bin/activate
$ virtualenv --python=/usr/bin/python3 py39_env
$ source env_py39/bin/activate
$ pip install .
$ # or
$ python3.8 -m venv env_py38
$ source env_py38/bin/activate
$ pip install .

how to build

$ python setup.py --help-commands
$ python setup.py sdist

how to test

# nose is replace by pytest since python3.13
# $ python setup.py test
# $ python setup.py nosetests
$ pytest

read more here

https://www.codingforentrepreneurs.com/blog/pipenv-virtual-environments-for-python/ https://packaging.python.org/ https://betterscientificsoftware.github.io/python-for-hpc/tutorials/python-pypi-packaging/

how to upload to pypi

$ python setup.py sdist
$ pip install twine

commands to upload to the pypi test repository

$ twine upload --repository-url https://test.pypi.org/legacy/ dist/*

or

$ twine upload --config-file ~/.pypirc -r testpypi dist/common_util_py-0.0.1.tar.gz

test install

$ pip install --index-url https://test.pypi.org/simple/ common-util-py
$ # or local install for quick test
$ pip install dist/common_util_py-<version>.tar.gz

tested install via pypi on the following py version

python tested installed
3.9 yes
3.10 yes
3.11 yes
3.12 yes
3.13 yes

command to upload to the pypi repository

$ twine upload dist/*
$ pip install common-util-py

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

common_util_py-0.0.21.tar.gz (19.6 kB view details)

Uploaded Source

File details

Details for the file common_util_py-0.0.21.tar.gz.

File metadata

  • Download URL: common_util_py-0.0.21.tar.gz
  • Upload date:
  • Size: 19.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.0

File hashes

Hashes for common_util_py-0.0.21.tar.gz
Algorithm Hash digest
SHA256 7be526d8fdb95af4770635bb3c26bef36a5115690a74e10d692058e954970ea2
MD5 4b990d5dc5d2e20ec4122c3d4b9f1de8
BLAKE2b-256 4ad0e878cf4abe11b724f792f66015a1dbc6df8be0ab2f87ee1bd8303fa97c67

See more details on using hashes here.

Supported by

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