https://github.com/lycantropos/cppbuiltins
Alternative implementation of python builtins based on C++ `std` library
https://github.com/lycantropos/cppbuiltins
builtins python
Last synced: 3 months ago
JSON representation
Alternative implementation of python builtins based on C++ `std` library
- Host: GitHub
- URL: https://github.com/lycantropos/cppbuiltins
- Owner: lycantropos
- License: mit
- Created: 2020-10-21T10:08:02.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2021-11-01T09:23:18.000Z (over 3 years ago)
- Last Synced: 2025-02-03T14:17:28.030Z (4 months ago)
- Topics: builtins, python
- Language: C++
- Homepage:
- Size: 2.08 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
cppbuiltins
===========[](https://dev.azure.com/lycantropos/cppbuiltins/_build/latest?definitionId=31&branchName=master "Azure Pipelines")
[](https://codecov.io/gh/lycantropos/cppbuiltins "Codecov")
[](https://github.com/lycantropos/cppbuiltins/blob/master/LICENSE "License")
[](https://badge.fury.io/py/cppbuiltins "PyPI")In what follows `python` is an alias for `python3.5`
or any later version (`python3.6` and so on).Installation
------------Install the latest `pip` & `setuptools` packages versions
```bash
python -m pip install --upgrade pip setuptools
```### User
Download and install the latest stable version from `PyPI` repository
```bash
python -m pip install --upgrade cppbuiltins
```### Developer
Download the latest version from `GitHub` repository
```bash
git clone https://github.com/lycantropos/cppbuiltins.git
cd cppbuiltins
```Install
```bash
python setup.py install
```Development
-----------### Bumping version
#### Preparation
Install
[bump2version](https://github.com/c4urself/bump2version#installation).#### Pre-release
Choose which version number category to bump following [semver
specification](http://semver.org/).Test bumping version
```bash
bump2version --dry-run --verbose $CATEGORY
```where `$CATEGORY` is the target version number category name, possible
values are `patch`/`minor`/`major`.Bump version
```bash
bump2version --verbose $CATEGORY
```This will set version to `major.minor.patch-alpha`.
#### Release
Test bumping version
```bash
bump2version --dry-run --verbose release
```Bump version
```bash
bump2version --verbose release
```This will set version to `major.minor.patch`.
### Running tests
Install dependencies
```bash
python -m pip install -r requirements-tests.txt
```Plain
```bash
pytest
```Inside `Docker` container:
```bash
docker-compose --file docker-compose.yml up
````Bash` script:
```bash
./run-tests.sh
````PowerShell` script:
```powershell
.\run-tests.ps1
```