Skip to main content

Port of Rust programming language primitives.

Project description

rustpy

In what follows python is an alias for python3.7 or pypy3.7 or any later version (python3.8, pypy3.8 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 rustpy

Developer

Download the latest version from GitHub repository

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

Install

python setup.py install

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 dependencies

python -m pip install -r requirements-tests.txt

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

rustpy-0.0.0.tar.gz (2.9 kB view details)

Uploaded Source

Built Distribution

rustpy-0.0.0-cp37-cp37m-macosx_13_0_x86_64.whl (200.2 kB view details)

Uploaded CPython 3.7m macOS 13.0+ x86-64

File details

Details for the file rustpy-0.0.0.tar.gz.

File metadata

  • Download URL: rustpy-0.0.0.tar.gz
  • Upload date:
  • Size: 2.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.7.16

File hashes

Hashes for rustpy-0.0.0.tar.gz
Algorithm Hash digest
SHA256 72aad8a020ce12ab3f7b62890ebbf429f1ebb41a36c2f33647026688fa2a9300
MD5 ddfa351950a6e6acd28f14f0c20a8dcc
BLAKE2b-256 b24efa82297c88acb46c5cf1a72d98a47716e79005a0d6b21cc2795c317d48bd

See more details on using hashes here.

Provenance

File details

Details for the file rustpy-0.0.0-cp37-cp37m-macosx_13_0_x86_64.whl.

File metadata

File hashes

Hashes for rustpy-0.0.0-cp37-cp37m-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 d121dc6902a044d3d2781b3fb2309b8d48f54c8c33aa38b4faad053ba427176f
MD5 47246142203ebc6f260d7adc916f7536
BLAKE2b-256 896ee9a8bb10b115a06f7f20066c0e11bbeda6a7e57c9017ded73ad14bed5263

See more details on using hashes here.

Provenance

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