pyo3-poker-eval


Namepyo3-poker-eval JSON
Version 0.1.0 PyPI version JSON
download
home_page
SummaryPoker eval library
upload_time2024-02-14 14:24:05
maintainer
docs_urlNone
author
requires_python>=3.10
licenseMIT
keywords poker rust
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # Poker Eval

## Overview

Python [PyO3](https://pyo3.rs/) wrapper package over Rust crate [poker_eval](https://crates.io/crates/poker_eval).  
Cross compilation "linux2win" is done with [cross](https://github.com/cross-rs/cross).  

## Build

Commands:

```sh
# prerequisite
mm activate work
pip install -U build

# dev install
pip install -e .

# watch 
cargo watch --watch rust -- pip install -e .

# test
pytest

# install
pip install .

# ------- build native wheel
unset CARGO
unset CARGO_BUILD_TARGET
unset PYO3_CROSS_LIB_DIR
unset PYO3_CROSS_PYTHON_VERSION
unset DIST_EXTRA_CONFIG

python -m build


# ------- build manylinux wheel
# image used by build
docker build -t builder-manylinux:local -f ./Dockerfile.manylinux .

# build wheels for several python versions
docker run --rm -v $(pwd):/io builder-manylinux:local /bin/bash /io/build-manylinux-wheels.sh


# ------- build windows wheel - using cross
# prerequisite
cargo install cross

export CARGO=cross
export CARGO_BUILD_TARGET=x86_64-pc-windows-gnu
export DIST_EXTRA_CONFIG=/tmp/build-opts.cfg

# set wheel suffix
echo -e "[bdist_wheel]\nplat_name=pc_windows_gnu_x86_64" > $DIST_EXTRA_CONFIG

# image used by cross
docker build -t cross-pyo3:x86_64-pc-windows-gnu -f ./Dockerfile.win .

# build windows wheel
python -m build
```

This produced wheels for linux and windows:

```sh
ls -1  dist
pyo3_poker_eval-0.1.0-cp310-cp310-linux_x86_64.whl
pyo3_poker_eval-0.1.0-cp310-cp310-pc_windows_gnu_x86_64.whl
pyo3_poker_eval-0.1.0.tar.gz
```

## Publish

Commands:

```sh
# prerequisite
mm activate work
pip install -U twine auditwheel

twine check dist/*

# assuming .pypirc configured
twine upload dist/*
```

## Install

Commands:

```sh
############ TBD - no ready yet
pip install pyo3_poker_eval
```

## Ref

Python packaging offical recommendation: [Is setup.py deprecated?](https://packaging.python.org/en/latest/discussions/setup-py-deprecated/).

            

Raw data

            {
    "_id": null,
    "home_page": "",
    "name": "pyo3-poker-eval",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.10",
    "maintainer_email": "",
    "keywords": "poker,rust",
    "author": "",
    "author_email": "firstname lastname <author@gmail.com>",
    "download_url": "https://files.pythonhosted.org/packages/1c/51/bbc126afb8e890a89e1a0c989e34aa88f8c535635bf746bed41e88f69502/pyo3_poker_eval-0.1.0.tar.gz",
    "platform": null,
    "description": "# Poker Eval\n\n## Overview\n\nPython [PyO3](https://pyo3.rs/) wrapper package over Rust crate [poker_eval](https://crates.io/crates/poker_eval).  \nCross compilation \"linux2win\" is done with [cross](https://github.com/cross-rs/cross).  \n\n## Build\n\nCommands:\n\n```sh\n# prerequisite\nmm activate work\npip install -U build\n\n# dev install\npip install -e .\n\n# watch \ncargo watch --watch rust -- pip install -e .\n\n# test\npytest\n\n# install\npip install .\n\n# ------- build native wheel\nunset CARGO\nunset CARGO_BUILD_TARGET\nunset PYO3_CROSS_LIB_DIR\nunset PYO3_CROSS_PYTHON_VERSION\nunset DIST_EXTRA_CONFIG\n\npython -m build\n\n\n# ------- build manylinux wheel\n# image used by build\ndocker build -t builder-manylinux:local -f ./Dockerfile.manylinux .\n\n# build wheels for several python versions\ndocker run --rm -v $(pwd):/io builder-manylinux:local /bin/bash /io/build-manylinux-wheels.sh\n\n\n# ------- build windows wheel - using cross\n# prerequisite\ncargo install cross\n\nexport CARGO=cross\nexport CARGO_BUILD_TARGET=x86_64-pc-windows-gnu\nexport DIST_EXTRA_CONFIG=/tmp/build-opts.cfg\n\n# set wheel suffix\necho -e \"[bdist_wheel]\\nplat_name=pc_windows_gnu_x86_64\" > $DIST_EXTRA_CONFIG\n\n# image used by cross\ndocker build -t cross-pyo3:x86_64-pc-windows-gnu -f ./Dockerfile.win .\n\n# build windows wheel\npython -m build\n```\n\nThis produced wheels for linux and windows:\n\n```sh\nls -1  dist\npyo3_poker_eval-0.1.0-cp310-cp310-linux_x86_64.whl\npyo3_poker_eval-0.1.0-cp310-cp310-pc_windows_gnu_x86_64.whl\npyo3_poker_eval-0.1.0.tar.gz\n```\n\n## Publish\n\nCommands:\n\n```sh\n# prerequisite\nmm activate work\npip install -U twine auditwheel\n\ntwine check dist/*\n\n# assuming .pypirc configured\ntwine upload dist/*\n```\n\n## Install\n\nCommands:\n\n```sh\n############ TBD - no ready yet\npip install pyo3_poker_eval\n```\n\n## Ref\n\nPython packaging offical recommendation: [Is setup.py deprecated?](https://packaging.python.org/en/latest/discussions/setup-py-deprecated/).\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Poker eval library",
    "version": "0.1.0",
    "project_urls": {
        "repository": "https://github.com/oscar6echo/pyo3-poker-eval.git"
    },
    "split_keywords": [
        "poker",
        "rust"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "19b2c42505408acd1828e149e16eb30109914f6b06d995469f94e743b5dcb299",
                "md5": "3026b9b4a61a35ad9d41c946caf19316",
                "sha256": "e677bb01a9d6648679cc8d67177cde2c8b03c6bdca23880cdc0750fc98dae547"
            },
            "downloads": -1,
            "filename": "pyo3_poker_eval-0.1.0-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.whl",
            "has_sig": false,
            "md5_digest": "3026b9b4a61a35ad9d41c946caf19316",
            "packagetype": "bdist_wheel",
            "python_version": "cp310",
            "requires_python": ">=3.10",
            "size": 324550,
            "upload_time": "2024-02-14T14:15:16",
            "upload_time_iso_8601": "2024-02-14T14:15:16.771187Z",
            "url": "https://files.pythonhosted.org/packages/19/b2/c42505408acd1828e149e16eb30109914f6b06d995469f94e743b5dcb299/pyo3_poker_eval-0.1.0-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "f725c6f8eb3c3456ea63c14223d1656c2cb4db34a5e293087092ac1e82d4cc34",
                "md5": "1a972eba598f6c6f94b18f01b829727b",
                "sha256": "3d27ce87825d81cdc9f111d98b170d7562ef83f7f6e412a4d73c6b38934fa71c"
            },
            "downloads": -1,
            "filename": "pyo3_poker_eval-0.1.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl",
            "has_sig": false,
            "md5_digest": "1a972eba598f6c6f94b18f01b829727b",
            "packagetype": "bdist_wheel",
            "python_version": "cp310",
            "requires_python": ">=3.10",
            "size": 324623,
            "upload_time": "2024-02-14T14:22:06",
            "upload_time_iso_8601": "2024-02-14T14:22:06.471943Z",
            "url": "https://files.pythonhosted.org/packages/f7/25/c6f8eb3c3456ea63c14223d1656c2cb4db34a5e293087092ac1e82d4cc34/pyo3_poker_eval-0.1.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "ee1192f54dc2e4feef36d0c6f1df3a6928a214ca5fec9e0d2b8546c5644c9f34",
                "md5": "c28c9ff9b504793b0fec31d625ca5525",
                "sha256": "3827c088989e70de8e166d91113d54c1a067a0e67c37f0a95c18bd87c0473e3e"
            },
            "downloads": -1,
            "filename": "pyo3_poker_eval-0.1.0-cp310-cp310-win_amd64.whl",
            "has_sig": false,
            "md5_digest": "c28c9ff9b504793b0fec31d625ca5525",
            "packagetype": "bdist_wheel",
            "python_version": "cp310",
            "requires_python": ">=3.10",
            "size": 290316,
            "upload_time": "2024-02-14T14:36:51",
            "upload_time_iso_8601": "2024-02-14T14:36:51.973274Z",
            "url": "https://files.pythonhosted.org/packages/ee/11/92f54dc2e4feef36d0c6f1df3a6928a214ca5fec9e0d2b8546c5644c9f34/pyo3_poker_eval-0.1.0-cp310-cp310-win_amd64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "760a40a7461a4a95b3178acc9fe186fac11ddba50cc563fd63472767aea71b4d",
                "md5": "777b1beba3b565594a5a5fb284fa1fc6",
                "sha256": "7dbde17d3c53aa5f47f735b682d455ffe4b0dddf0fd29a2918aba1346c2b1694"
            },
            "downloads": -1,
            "filename": "pyo3_poker_eval-0.1.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl",
            "has_sig": false,
            "md5_digest": "777b1beba3b565594a5a5fb284fa1fc6",
            "packagetype": "bdist_wheel",
            "python_version": "cp311",
            "requires_python": ">=3.10",
            "size": 324698,
            "upload_time": "2024-02-14T14:22:08",
            "upload_time_iso_8601": "2024-02-14T14:22:08.642193Z",
            "url": "https://files.pythonhosted.org/packages/76/0a/40a7461a4a95b3178acc9fe186fac11ddba50cc563fd63472767aea71b4d/pyo3_poker_eval-0.1.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "1c51bbc126afb8e890a89e1a0c989e34aa88f8c535635bf746bed41e88f69502",
                "md5": "16bec0114c98cb8398fce2195cb64b44",
                "sha256": "41baa9ae1b74a2a1fa87ad9c7aab301af1a567e26733b68f09c3491c71368e8e"
            },
            "downloads": -1,
            "filename": "pyo3_poker_eval-0.1.0.tar.gz",
            "has_sig": false,
            "md5_digest": "16bec0114c98cb8398fce2195cb64b44",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.10",
            "size": 5941,
            "upload_time": "2024-02-14T14:24:05",
            "upload_time_iso_8601": "2024-02-14T14:24:05.813702Z",
            "url": "https://files.pythonhosted.org/packages/1c/51/bbc126afb8e890a89e1a0c989e34aa88f8c535635bf746bed41e88f69502/pyo3_poker_eval-0.1.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-02-14 14:24:05",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "oscar6echo",
    "github_project": "pyo3-poker-eval",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "pyo3-poker-eval"
}
        
Elapsed time: 0.22721s