# -*- coding: utf-8 -*-
from setuptools import setup

packages = \
['lirpy']

package_data = \
{'': ['*']}

setup_kwargs = {
    'name': 'lirpy',
    'version': '0.0.1',
    'description': '',
    'long_description': "# LIRPy\n\nLargest Interior Rectangle for Python\n\nThis was originally made for a stupid Minecraft project for the purpose of making as few Baritone selections as possible when designating a cylinder, but it should work in any other context as well.\n\nI also hate numpy with a passion for mysterious reasons I can't even explain to myself.  Therefore, this project doesn't use it.\n\n## Background\n\nWhen I'm not breaking games for work, I tend to play engineering games, and one of the first such games I got into was Minecraft.  I play it off and on, and I tend to get into mega-projects, which often end up with me getting bored and having a bot called Baritone do most of the work. \n\nI needed a tool to generate Baritone selection AABBs (which are defined by opposing corner coordinates) for cylinders of arbitrary radius and depth. The easiest possible way would be to generate selections for every single voxel column.  This would not be practical due to the sheer number of selections needing to be made.\n\nSo, after doing some research, I determined what I needed was an axis-aligned largest interior rectangle library.\n\n## Other Options\n\nOther solutions I've looked at:\n\n* [largestinteriorrectangle](https://github.com/lukasalexanderweber/lir) uses numba, which is so outdated it won't compile with LLVM 14.  It's also unfortunately spammed all over stackoverflow, which makes it harder to find background information.\n* https://www.evryway.com/largest-interior/ - Never worked properly for me.\n* https://pypi.org/project/maxrect/ - GIS-specific, so it requires weird inputs and works on polygons rather than grids. Their GitHub is also missing.\n* Various things in other languages, like C, MATLAB, and C# - no\n\nSo I made my own system, with blackjack and classy sex workers.\n\n## Caveats\n\nI am no mathematician, so this is nowhere within ten light-years of optimized, and there are probably a dozen papers dense with calculus describing new and exciting ways of doing that. I didn't take calculus in uni.\n\nThis works well enough for my purposes, but **PRs with improvements are absolutely welcome.**\n\n## Installation\n\nRequires Python >= 3.10\n\n`pip install lirpy`\n\n## Development\n\nRequires Python >= 3.10 *and* `poetry`\n\n## Example:\n```shell\n$ python -m lirpy -472 58 570 -r 7 -d 1 --dump-steps\n```\n```\nCenter: -472 58 570\nRadius: 7\nDepth: 0\nAlong axis: -Y\nStep 0:\n       █       \n    ███████    \n   █████████   \n  ███████████  \n █████████████ \n █████████████ \n █████████████ \n███████████████\n █████████████ \n █████████████ \n █████████████ \n  ███████████  \n   █████████   \n    ███████    \n       █       \nStep 1:\n       █       \n    ███████    \n               \n  █         █  \n ██         ██ \n ██         ██ \n ██         ██ \n███         ███\n ██         ██ \n ██         ██ \n ██         ██ \n  █         █  \n               \n    ███████    \n       █       \nStep 2:\n       █       \n    ███████    \n               \n  █         █  \n            ██ \n            ██ \n            ██ \n█           ███\n            ██ \n            ██ \n            ██ \n  █         █  \n               \n    ███████    \n       █       \nStep 3:\n       █       \n    ███████    \n               \n  █         █  \n               \n               \n               \n█             █\n               \n               \n               \n  █         █  \n               \n    ███████    \n       █       \nStep 4:\n       █       \n               \n               \n  █         █  \n               \n               \n               \n█             █\n               \n               \n               \n  █         █  \n               \n    ███████    \n       █       \nStep 5:\n       █       \n               \n               \n  █         █  \n               \n               \n               \n█             █\n               \n               \n               \n  █         █  \n               \n               \n       █       \nStep 6:\n               \n               \n               \n  █         █  \n               \n               \n               \n█             █\n               \n               \n               \n  █         █  \n               \n               \n       █       \nStep 7:\n               \n               \n               \n            █  \n               \n               \n               \n█             █\n               \n               \n               \n  █         █  \n               \n               \n       █       \nStep 8:\n               \n               \n               \n               \n               \n               \n               \n█             █\n               \n               \n               \n  █         █  \n               \n               \n       █       \nStep 9:\n               \n               \n               \n               \n               \n               \n               \n              █\n               \n               \n               \n  █         █  \n               \n               \n       █       \nStep 10:\n               \n               \n               \n               \n               \n               \n               \n               \n               \n               \n               \n  █         █  \n               \n               \n       █       \nStep 11:\n               \n               \n               \n               \n               \n               \n               \n               \n               \n               \n               \n            █  \n               \n               \n       █       \nStep 12:\n               \n               \n               \n               \n               \n               \n               \n               \n               \n               \n               \n               \n               \n               \n       █       \nStep 13:\n               \n               \n               \n               \n               \n               \n               \n               \n               \n               \n               \n               \n               \n               \n               \n#sel clear\n#sel 1 -462 58 579\n#sel 2 -454 58 589\n#sel 1 -464 58 581\n#sel 2 -463 58 587\n#sel 1 -453 58 581\n#sel 2 -452 58 587\n#sel 1 -461 58 578\n#sel 2 -455 58 578\n#sel 1 -461 58 590\n#sel 2 -455 58 590\n#sel 1 -458 58 577\n#sel 2 -458 58 577\n#sel 1 -463 58 580\n#sel 2 -463 58 580\n#sel 1 -453 58 580\n#sel 2 -453 58 580\n#sel 1 -465 58 584\n#sel 2 -465 58 584\n#sel 1 -451 58 584\n#sel 2 -451 58 584\n#sel 1 -463 58 588\n#sel 2 -463 58 588\n#sel 1 -453 58 588\n#sel 2 -453 58 588\n#sel 1 -458 58 591\n#sel 2 -458 58 591\n```",
    'author': 'Rob Nelson',
    'author_email': 'nexisentertainment@gmail.com',
    'maintainer': 'None',
    'maintainer_email': 'None',
    'url': 'None',
    'packages': packages,
    'package_data': package_data,
    'python_requires': '>=3.10,<4.0',
}


setup(**setup_kwargs)
