%global _empty_manifest_terminate_build 0 Name: python-PoE.py Version: 2.0.6a0 Release: 1 Summary: A Path of Exile wrapper/lib that supports multitudes of filters to list and render items as PNGs and retreive useful character data. License: MIT License URL: https://github.com/xKynn/PoE.py Source0: https://mirrors.nju.edu.cn/pypi/web/packages/3e/3b/1b6a459e9dc2407e944974a58f610b9a2c15ebd93bc3ca51313588ad2489/PoE.py-2.0.6a0.tar.gz BuildArch: noarch %description # PoE.py Path of Exile wiki wrapper in python What it can currently do: 1. Search for all possible items, including hideout doodads. 2. Use complex filters with math operators, for example search for an item with requirement of level 42 and strength requirement of 10. 3. Data is presented in Item/Armour/Weapon/Gem objects, all of which inherit from ItemBase 4. In utils is provided an item parser for most formats generally used in Path of Building to represent items, it can also parse a full Path of Building XML and return a dict with a lot of useful data as well as all items transformed to the objects from this lib, which allows rendering of items as images from PoB as well, rendering is covered below. 5. Also inside utils is a parser that can parse json from path of exile's official character and skill tree API: - https://www.pathofexile.com/character-window/get-passive-skills?accountName=xKynn&character=Elyruse - https://www.pathofexile.com/character-window/get-items?accountName=xKynn&character=Elyruse - The dict that is returned is in the same format as the one returned by Path of Building parser, this means this also returns renderable objects 6. It can render items as on the wiki or inside the game itself in the form of PNGs using Pillow/PIL. -Examples: %package -n python3-PoE.py Summary: A Path of Exile wrapper/lib that supports multitudes of filters to list and render items as PNGs and retreive useful character data. Provides: python-PoE.py BuildRequires: python3-devel BuildRequires: python3-setuptools BuildRequires: python3-pip %description -n python3-PoE.py # PoE.py Path of Exile wiki wrapper in python What it can currently do: 1. Search for all possible items, including hideout doodads. 2. Use complex filters with math operators, for example search for an item with requirement of level 42 and strength requirement of 10. 3. Data is presented in Item/Armour/Weapon/Gem objects, all of which inherit from ItemBase 4. In utils is provided an item parser for most formats generally used in Path of Building to represent items, it can also parse a full Path of Building XML and return a dict with a lot of useful data as well as all items transformed to the objects from this lib, which allows rendering of items as images from PoB as well, rendering is covered below. 5. Also inside utils is a parser that can parse json from path of exile's official character and skill tree API: - https://www.pathofexile.com/character-window/get-passive-skills?accountName=xKynn&character=Elyruse - https://www.pathofexile.com/character-window/get-items?accountName=xKynn&character=Elyruse - The dict that is returned is in the same format as the one returned by Path of Building parser, this means this also returns renderable objects 6. It can render items as on the wiki or inside the game itself in the form of PNGs using Pillow/PIL. -Examples: %package help Summary: Development documents and examples for PoE.py Provides: python3-PoE.py-doc %description help # PoE.py Path of Exile wiki wrapper in python What it can currently do: 1. Search for all possible items, including hideout doodads. 2. Use complex filters with math operators, for example search for an item with requirement of level 42 and strength requirement of 10. 3. Data is presented in Item/Armour/Weapon/Gem objects, all of which inherit from ItemBase 4. In utils is provided an item parser for most formats generally used in Path of Building to represent items, it can also parse a full Path of Building XML and return a dict with a lot of useful data as well as all items transformed to the objects from this lib, which allows rendering of items as images from PoB as well, rendering is covered below. 5. Also inside utils is a parser that can parse json from path of exile's official character and skill tree API: - https://www.pathofexile.com/character-window/get-passive-skills?accountName=xKynn&character=Elyruse - https://www.pathofexile.com/character-window/get-items?accountName=xKynn&character=Elyruse - The dict that is returned is in the same format as the one returned by Path of Building parser, this means this also returns renderable objects 6. It can render items as on the wiki or inside the game itself in the form of PNGs using Pillow/PIL. -Examples: %prep %autosetup -n PoE.py-2.0.6a0 %build %py3_build %install %py3_install install -d -m755 %{buildroot}/%{_pkgdocdir} if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi pushd %{buildroot} if [ -d usr/lib ]; then find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst fi if [ -d usr/lib64 ]; then find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst fi if [ -d usr/bin ]; then find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst fi if [ -d usr/sbin ]; then find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst fi touch doclist.lst if [ -d usr/share/man ]; then find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst fi popd mv %{buildroot}/filelist.lst . mv %{buildroot}/doclist.lst . %files -n python3-PoE.py -f filelist.lst %dir %{python3_sitelib}/* %files help -f doclist.lst %{_docdir}/* %changelog * Mon May 15 2023 Python_Bot - 2.0.6a0-1 - Package Spec generated