add setup.py (#155)

* add setup.py

* respond to comments
This commit is contained in:
Alex 2020-07-22 11:56:00 +03:00 committed by GitHub
parent 58927d73ef
commit 120d12cc47
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 32 additions and 7 deletions

4
.gitignore vendored
View file

@ -7,3 +7,7 @@ dist
Makefile
.idea/
*monkeytype.sqlite3
.vscode/
build/
MANIFEST
tg.egg-info/

View file

@ -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
```

26
setup.py Normal file
View file

@ -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"],
)