From 68595dcb7a27f5533fda2da7e3790fc5597c663e Mon Sep 17 00:00:00 2001 From: Joscha Date: Fri, 21 Jun 2019 10:22:59 +0000 Subject: [PATCH] Start using setuptools --- CHANGELOG.md | 9 ++++++++ cheuph/euphoria/single_room_application.py | 4 ++-- setup.py | 26 ++++++++++++++++++++++ 3 files changed, 37 insertions(+), 2 deletions(-) create mode 100644 CHANGELOG.md create mode 100644 setup.py diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 0000000..d10949e --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1,9 @@ +# Changelog + +## Next version + +Nothing yet. + +## 0.1.0 (2019-04-12) + +- use setuptools diff --git a/cheuph/euphoria/single_room_application.py b/cheuph/euphoria/single_room_application.py index 2cb4ae9..88bb938 100644 --- a/cheuph/euphoria/single_room_application.py +++ b/cheuph/euphoria/single_room_application.py @@ -13,7 +13,7 @@ from .launch_application import launch from .euph_config import EuphConfig, EuphLoader from .room_widget import RoomWidget -__all__ = ["SingleRoomApplication"] +__all__ = ["SingleRoomApplication", "launch_single_room_application"] class ChooseRoomWidget(urwid.WidgetWrap): @@ -130,5 +130,5 @@ class SingleRoomApplication(urwid.WidgetWrap): return key -if __name__ == "__main__": +def launch_single_room_application(): launch(SingleRoomApplication) diff --git a/setup.py b/setup.py new file mode 100644 index 0000000..19e242d --- /dev/null +++ b/setup.py @@ -0,0 +1,26 @@ +from setuptools import setup + +setup( + name="cheuph", + version="0.0.1", + packages=[ + "cheuph", + "cheuph.euphoria", + ], + entry_points={ + "console_scripts": [ + "cheuph = cheuph.euphoria:launch_single_room_application", + ], + }, + install_requires=[ + "PyYAML >= 5.1.1", + "urwid >= 2.0.1", + "websockets >= 7.0", + "yaboli @ git+https://github.com/Garmelon/yaboli@v1.1.4", + ], +) + +# When updating the version, also: +# - update the README.md installation instructions +# - update the changelog +# - set a tag on the update commit