From 120d12cc4754faa1d8601be54cb9e549cc90f5ed Mon Sep 17 00:00:00 2001 From: Alex Date: Wed, 22 Jul 2020 11:56:00 +0300 Subject: [PATCH] add setup.py (#155) * add setup.py * respond to comments --- .gitignore | 4 ++++ readme.md | 9 ++------- setup.py | 26 ++++++++++++++++++++++++++ 3 files changed, 32 insertions(+), 7 deletions(-) create mode 100644 setup.py diff --git a/.gitignore b/.gitignore index e6c3b35..6d20dac 100644 --- a/.gitignore +++ b/.gitignore @@ -7,3 +7,7 @@ dist Makefile .idea/ *monkeytype.sqlite3 +.vscode/ +build/ +MANIFEST +tg.egg-info/ diff --git a/readme.md b/readme.md index 72b4201..bafa93f 100644 --- a/readme.md +++ b/readme.md @@ -67,20 +67,15 @@ pip3 install tg tg ``` -### Using flit +### Using setup.py This option is recommended for development: -> Requires [flit](https://github.com/takluyver/flit) to be installed. -> -> ```sh -> pip3 install flit -> ``` ```sh git clone https://github.com:paul-nameless/tg.git cd tg -flit install +python setup.py install tg ``` diff --git a/setup.py b/setup.py new file mode 100644 index 0000000..e1aea71 --- /dev/null +++ b/setup.py @@ -0,0 +1,26 @@ +from setuptools import setup + +import tg + +with open("readme.md", "r") as fh: + readme = fh.read() + + +setup( + long_description=readme, + long_description_content_type="text/markdown", + name="tg", + version=tg.__version__, + description="Terminal client for telegram", + url="https://github.com/paul-nameless/tg", + author="Paul Nameless", + author_email="reacsdas@gmail.com", + classifiers=[ + "Programming Language :: Python :: 3", + "Programming Language :: Python :: 3.8", + ], + packages=["tg"], + entry_points={"console_scripts": ["tg = tg.__main__:main"]}, + python_requires=">=3.8", + install_requires=["python-telegram==0.12.0"], +)