Skip to main content

Select algorithms implementation.

Project description

quickselect

In what follows python is an alias for python3.8 or pypy3.8 or any later version (python3.9, pypy3.9 and so on).

Installation

Install the latest pip & setuptools packages versions

python -m pip install --upgrade pip setuptools

User

Download and install the latest stable version from PyPI repository

python -m pip install --upgrade quickselect

Developer

Download the latest version from GitHub repository

git clone https://github.com/lycantropos/quickselect.git
cd quickselect

Install

python -m pip install -e .

Development

Bumping version

Preparation

Install bump2version.

Pre-release

Choose which version number category to bump following semver specification.

Test bumping version

bump2version --dry-run --verbose $CATEGORY

where $CATEGORY is the target version number category name, possible values are patch/minor/major.

Bump version

bump2version --verbose $CATEGORY

This will set version to major.minor.patch-alpha.

Release

Test bumping version

bump2version --dry-run --verbose release

Bump version

bump2version --verbose release

This will set version to major.minor.patch.

Running tests

Install with dependencies

python -m pip install -e .[tests]

Plain

pytest

Inside Docker container:

  • with CPython
    docker-compose --file docker-compose.cpython.yml up
    
  • with PyPy
    docker-compose --file docker-compose.pypy.yml up
    

Bash script:

  • with CPython

    ./run-tests.sh
    

    or

    ./run-tests.sh cpython
    
  • with PyPy

    ./run-tests.sh pypy
    

PowerShell script:

  • with CPython
    .\run-tests.ps1
    
    or
    .\run-tests.ps1 cpython
    
  • with PyPy
    .\run-tests.ps1 pypy
    

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

quickselect-0.2.2.tar.gz (8.0 kB view details)

Uploaded Source

Built Distribution

quickselect-0.2.2-py3-none-any.whl (8.2 kB view details)

Uploaded Python 3

File details

Details for the file quickselect-0.2.2.tar.gz.

File metadata

  • Download URL: quickselect-0.2.2.tar.gz
  • Upload date:
  • Size: 8.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.12.4

File hashes

Hashes for quickselect-0.2.2.tar.gz
Algorithm Hash digest
SHA256 4487c25f3c363cc046f724e42c20f7ff629d6a298660479bc8aef78a7868c03f
MD5 bf59cafdf529c1a3b71578734eecea56
BLAKE2b-256 fd476cfd0aaea917b913c5cb834598af631326f9babe4b2c2fe4b99ef0ff1505

See more details on using hashes here.

File details

Details for the file quickselect-0.2.2-py3-none-any.whl.

File metadata

  • Download URL: quickselect-0.2.2-py3-none-any.whl
  • Upload date:
  • Size: 8.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.12.4

File hashes

Hashes for quickselect-0.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 d7f2a0e59841694db06d01407939db0bfeadd44f39379d79056960fe5cfe1332
MD5 581ebaf205a2450da4974610c9fd7aaf
BLAKE2b-256 b9685d08e32ed823ebee885908efead44ae1da5b8b11fb3466441c760dbff034

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 Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page