diff --git a/bin/maigret b/bin/maigret new file mode 100755 index 0000000..76d98a8 --- /dev/null +++ b/bin/maigret @@ -0,0 +1,18 @@ +#!/usr/bin/env python3 +import asyncio +import sys + +from maigret.maigret import main + + +def run(): + try: + loop = asyncio.get_event_loop() + loop.run_until_complete(main()) + except KeyboardInterrupt: + print('Maigret is interrupted.') + sys.exit(1) + + +if __name__ == "__main__": + run() diff --git a/snapcraft.yaml b/snapcraft.yaml new file mode 100644 index 0000000..b1daa35 --- /dev/null +++ b/snapcraft.yaml @@ -0,0 +1,30 @@ +name: maigret +version: git +summary: v +description: | + Test Test Test +base: core18 +confinement: strict + + +parts: + maigret: + plugin: python + python-version: python3 + source: . + stage-packages: + - python-six + + +apps: + maigret: + command: bin/maigret + + +architectures: + - build-on: amd64 + - build-on: i386 + + + +