generated from pykit3/tmpl
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathsetup.py
23 lines (22 loc) · 2.23 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# DO NOT EDIT!!! built with `python _building/build_setup.py`
import setuptools
setuptools.setup(
name="k3heap",
packages=["k3heap"],
version="0.1.6",
license='MIT',
description='k3heap is a binary min heap implemented with reference',
long_description='# k3heap\n\n[](https://github.com/pykit3/k3heap/actions/workflows/python-package.yml)\n[](https://travis-ci.com/pykit3/k3heap)\n[](https://k3heap.readthedocs.io/en/stable/?badge=stable)\n[](https://pypi.org/project/k3heap)\n\nk3heap is a binary min heap implemented with reference\n\nk3heap is a component of [pykit3] project: a python3 toolkit set.\n\n\nIn this module RefHeap is a binary min heap implemented with reference: a parent has two references to two children and a child has a parent reference to its parent.\n\nRefHeap is not thread safe::\n\n import k3heap\n\n h = k3heap.RefHeap()\n\n x = []\n h.push(x)\n h.push(x) # ValueError\n h.push([]) # OK\n\n\n\n# Install\n\n```\npip install k3heap\n```\n\n# Synopsis\n\n```python\n\nimport k3heap\n\nh = k3heap.RefHeap([5, 1, 4, 2, 3])\n\nwhile h.size > 0:\n print(h.pop())\n\n```\n\n# Author\n\nZhang Yanpo (张炎泼) <drdr.xp@gmail.com>\n\n# Copyright and License\n\nThe MIT License (MIT)\n\nCopyright (c) 2015 Zhang Yanpo (张炎泼) <drdr.xp@gmail.com>\n\n\n[pykit3]: https://github.com/pykit3',
long_description_content_type="text/markdown",
author='Zhang Yanpo',
author_email='drdr.xp@gmail.com',
url='https://github.com/pykit3/k3heap',
keywords=['python', 'heap'],
python_requires='>=3.0',
install_requires=['k3ut>=0.1.15,<0.2'],
classifiers=[
'Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'Topic :: Software Development :: Libraries',
] + ['Programming Language :: Python :: 3.6', 'Programming Language :: Python :: 3.7', 'Programming Language :: Python :: 3.8', 'Programming Language :: Python :: Implementation :: PyPy'],
)