summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.gitignore1
-rw-r--r--python-aiotrello.spec267
-rw-r--r--sources1
3 files changed, 269 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..a4ea506 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/aiotrello-0.0.7.7.tar.gz
diff --git a/python-aiotrello.spec b/python-aiotrello.spec
new file mode 100644
index 0000000..a678d88
--- /dev/null
+++ b/python-aiotrello.spec
@@ -0,0 +1,267 @@
+%global _empty_manifest_terminate_build 0
+Name: python-aiotrello
+Version: 0.0.7.7
+Release: 1
+Summary: Async Trello library
+License: MIT
+URL: https://github.com/zomien/aiotrello
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/f7/ca/d7c8a240593772615b6700546487c322e3e6a8689f60c3a821b31cf82336/aiotrello-0.0.7.7.tar.gz
+BuildArch: noarch
+
+
+%description
+# aiotrello
+
+Async Trello Python library
+## Installation
+
+Install with [pip](https://pypi.org/project/pip/)
+
+```sh
+$ pip install aiotrello
+```
+
+## Examples
+
+```py
+import asyncio; loop = asyncio.get_event_loop()
+from aiotrello import Trello
+
+trello = Trello(key="123", token="abc123") # Initialize a new Trello client
+
+
+async def main():
+ # Create 10 boards and make a list for each
+ for i in range(10):
+ board = await trello.create_board(f"Board {i}")
+ await board.create_list("My List")
+
+ # Delete all boards that start with "Board"
+ for board in await trello.get_boards():
+ if board.name.startswith("Board"):
+ await board.delete()
+
+ # Get a board and list, then make a new card, and finally, add a comment to it
+ my_board = await trello.get_board(lambda b: b.id == "123")
+ my_list = await my_board.get_list(lambda l: l.name == "My List")
+ card = await my_list.create_card("Hello World", "Here is my awesome card")
+ await card.add_comment("aiotrello rocks!")
+
+ # Move card (above example) to a different list
+ my_other_list = await my_board.get_list(lambda l: l.name == "My Other List")
+ await card.move_to(my_other_list)
+ # also supports moving to external boards
+ board2 = await trello.get_board(lambda b: b.name == "My Other Board")
+ list2 = await board2.get_list(lambda l: l.name == "My Other List")
+ await card.move_to(list2, board2)
+
+ # Edit a card (above), archive it, and then delete it
+ await card.edit(name="This card will be deleted soon..")
+ await card.archive()
+ await card.delete()
+
+
+try:
+ loop.run_until_complete(main())
+finally:
+ loop.run_until_complete(trello.session.close()) # Remember to close the session!
+
+
+```
+
+## Support
+
+Join our [Discord Server](https://discord.gg/hK9DpQQ)
+
+
+
+
+
+%package -n python3-aiotrello
+Summary: Async Trello library
+Provides: python-aiotrello
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-aiotrello
+# aiotrello
+
+Async Trello Python library
+## Installation
+
+Install with [pip](https://pypi.org/project/pip/)
+
+```sh
+$ pip install aiotrello
+```
+
+## Examples
+
+```py
+import asyncio; loop = asyncio.get_event_loop()
+from aiotrello import Trello
+
+trello = Trello(key="123", token="abc123") # Initialize a new Trello client
+
+
+async def main():
+ # Create 10 boards and make a list for each
+ for i in range(10):
+ board = await trello.create_board(f"Board {i}")
+ await board.create_list("My List")
+
+ # Delete all boards that start with "Board"
+ for board in await trello.get_boards():
+ if board.name.startswith("Board"):
+ await board.delete()
+
+ # Get a board and list, then make a new card, and finally, add a comment to it
+ my_board = await trello.get_board(lambda b: b.id == "123")
+ my_list = await my_board.get_list(lambda l: l.name == "My List")
+ card = await my_list.create_card("Hello World", "Here is my awesome card")
+ await card.add_comment("aiotrello rocks!")
+
+ # Move card (above example) to a different list
+ my_other_list = await my_board.get_list(lambda l: l.name == "My Other List")
+ await card.move_to(my_other_list)
+ # also supports moving to external boards
+ board2 = await trello.get_board(lambda b: b.name == "My Other Board")
+ list2 = await board2.get_list(lambda l: l.name == "My Other List")
+ await card.move_to(list2, board2)
+
+ # Edit a card (above), archive it, and then delete it
+ await card.edit(name="This card will be deleted soon..")
+ await card.archive()
+ await card.delete()
+
+
+try:
+ loop.run_until_complete(main())
+finally:
+ loop.run_until_complete(trello.session.close()) # Remember to close the session!
+
+
+```
+
+## Support
+
+Join our [Discord Server](https://discord.gg/hK9DpQQ)
+
+
+
+
+
+%package help
+Summary: Development documents and examples for aiotrello
+Provides: python3-aiotrello-doc
+%description help
+# aiotrello
+
+Async Trello Python library
+## Installation
+
+Install with [pip](https://pypi.org/project/pip/)
+
+```sh
+$ pip install aiotrello
+```
+
+## Examples
+
+```py
+import asyncio; loop = asyncio.get_event_loop()
+from aiotrello import Trello
+
+trello = Trello(key="123", token="abc123") # Initialize a new Trello client
+
+
+async def main():
+ # Create 10 boards and make a list for each
+ for i in range(10):
+ board = await trello.create_board(f"Board {i}")
+ await board.create_list("My List")
+
+ # Delete all boards that start with "Board"
+ for board in await trello.get_boards():
+ if board.name.startswith("Board"):
+ await board.delete()
+
+ # Get a board and list, then make a new card, and finally, add a comment to it
+ my_board = await trello.get_board(lambda b: b.id == "123")
+ my_list = await my_board.get_list(lambda l: l.name == "My List")
+ card = await my_list.create_card("Hello World", "Here is my awesome card")
+ await card.add_comment("aiotrello rocks!")
+
+ # Move card (above example) to a different list
+ my_other_list = await my_board.get_list(lambda l: l.name == "My Other List")
+ await card.move_to(my_other_list)
+ # also supports moving to external boards
+ board2 = await trello.get_board(lambda b: b.name == "My Other Board")
+ list2 = await board2.get_list(lambda l: l.name == "My Other List")
+ await card.move_to(list2, board2)
+
+ # Edit a card (above), archive it, and then delete it
+ await card.edit(name="This card will be deleted soon..")
+ await card.archive()
+ await card.delete()
+
+
+try:
+ loop.run_until_complete(main())
+finally:
+ loop.run_until_complete(trello.session.close()) # Remember to close the session!
+
+
+```
+
+## Support
+
+Join our [Discord Server](https://discord.gg/hK9DpQQ)
+
+
+
+
+
+%prep
+%autosetup -n aiotrello-0.0.7.7
+
+%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-aiotrello -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Mon May 15 2023 Python_Bot <Python_Bot@openeuler.org> - 0.0.7.7-1
+- Package Spec generated
diff --git a/sources b/sources
new file mode 100644
index 0000000..41a4ae4
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+fa84baa66ad3f18b2731b261e8c3d9ba aiotrello-0.0.7.7.tar.gz