Arbitrary precision arithmetic.
Project description
rithm
In what follows python
is an alias for python3.6
or pypy3.6
or any later version (python3.7
, pypy3.7
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 rithm
Developer
Download the latest version from GitHub
repository
git clone https://github.com/lycantropos/rithm.git
cd rithm
Install dependencies
python -m pip install -r requirements.txt
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
Hashes for rithm-3.0.0-cp39-cp39-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8be06ec4847888fbcfeda24acdc25f8c20d59a8eabc3dd4d538d9b3f20bdadd9 |
|
MD5 | 6cc9256b859fcdf0c4b36514d2688ebd |
|
BLAKE2b-256 | c7fcfb8d6a6fd3818bf9a3603b62c988cc9df2690782c9c6755416ef1c2aec6e |
Hashes for rithm-3.0.0-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f4a87e30bedd101a399262d1484475dd97ca576d0c8432a1c26cd58e54f07148 |
|
MD5 | 9fe42f5c563a06426eba28b27aed3b0d |
|
BLAKE2b-256 | acfeb5cb3bd69b870ee1fb9f347868b830992ad72b81c10b7513fee330bb80cb |
Hashes for rithm-3.0.0-cp39-cp39-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e54d6f787462e55befcb6dcd0aa1e2859a9136debc4bde77f4cf46f6bba83189 |
|
MD5 | 75bac2a296c6aca089759b706f4d7251 |
|
BLAKE2b-256 | 1ba0236d3c784dec5c0763385af5d9c182538ad39f61d5c3f646fc97a974cbf2 |
Hashes for rithm-3.0.0-cp38-cp38-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f2e9209c6f5cc103238f47dd1343ed6d4224bcf9e907b9da40b0969dd6e10efd |
|
MD5 | 6272c03b0f277dfdc0171cea28b15bca |
|
BLAKE2b-256 | a6a5ca3b09ef66f6420f82a359893d7e6965221b9efc4071a97f15fcb571d540 |
Hashes for rithm-3.0.0-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0e652fb0fc64f5c574a6c75e458a09a11e3ee358391c61bdb2271dc6af6acf42 |
|
MD5 | 361dd34071490c1f03363caec00e239c |
|
BLAKE2b-256 | e8cf1cb1611b90d8708be00cbcdc3b99a8626a304e7aa34bc5ba3f1095b65855 |
Hashes for rithm-3.0.0-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 50b03fc50cbf447120affea110ca5ed2fe71e42830ea9fa875283d4ba1b5d728 |
|
MD5 | e390de4132aafddb3b5dc355289a574d |
|
BLAKE2b-256 | a4012b4e1666a92cb6baf470e2558141fb6f960767a4f51703f1b0f65c67ecb8 |
Hashes for rithm-3.0.0-cp37-cp37m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 46e0237723e68fba08c7b909f31c7f70fb2b690a9ab1ec038315bf052e546fe7 |
|
MD5 | 535596663ea43c166c78a152a26f9191 |
|
BLAKE2b-256 | 0748ffd6444032b2f26ce361414a6266dbca608046c710cfbfd1b679557bb464 |
Hashes for rithm-3.0.0-cp37-cp37m-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fe7c495a991ff6ac40d9c8e502d3eb8b30492432cb1c8f7b75ac2723149a9fa3 |
|
MD5 | b014b82e030543518ba8e2ee0da4a72b |
|
BLAKE2b-256 | 1b4ec30bb613337f0ccbed8c65bb093841a1214e792f9601168ce4671eb9e9fd |
Hashes for rithm-3.0.0-cp37-cp37m-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a18783bc6574376eb6b3c14795e2dc01167735043ba8d9df360a0e6172eddb62 |
|
MD5 | b44dd23056931bdd6f365629a11a38b7 |
|
BLAKE2b-256 | 3cc0f49f10f81074f879a00fe12f54daa187306e47e3ab4ada4aa03bed8522f7 |
Hashes for rithm-3.0.0-cp36-cp36m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3ee0c440d30a6b8fcc27a0900875756052f8e8dbaacdc1602db5b7e578056741 |
|
MD5 | 76b5523be1de871aa140535a812467d5 |
|
BLAKE2b-256 | 67ccf317fe3bd530d9297f549e8def87101b1e745cd0452b379003261e51e4b9 |
Hashes for rithm-3.0.0-cp36-cp36m-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 035751754ad0b84b414293184a9f625ab3bbd15ed67c70f03ed9d41ef6bd1041 |
|
MD5 | 3b8918d9e32eb4373f2daaada584a2cc |
|
BLAKE2b-256 | 4ca69057e027e7e02f285549b9a6d290a6683aba233d83058c8b323d2b7dd3e6 |
Hashes for rithm-3.0.0-cp36-cp36m-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 65f521dbaaac8a4958e9394e362a22f25335b32609b4a29603368ac2ca9f01d6 |
|
MD5 | 972e79e7ffc5acc3a6fdf3eaf93eba22 |
|
BLAKE2b-256 | eb8a8b85b975467a0c7a2316f43fc7945ea750fcc5089fa1e3cbe9921b939f0e |