-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
42 lines (35 loc) · 995 Bytes
/
setup.py
File metadata and controls
42 lines (35 loc) · 995 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
""" Setup file """
import os
from typing import List
from setuptools import find_packages, setup
from todi import __app_name__, __version__
def _get_readme() -> str:
"""
Get README.md content.
:return: String with the content.
"""
with open(
file=os.path.join(
os.path.abspath(os.path.dirname(__file__)), "README.md"
),
mode="r",
encoding="utf-8",
) as content:
return content.read()
setup(
name=__app_name__,
version=__version__,
description="Minimal CLI TODO app.",
long_description=_get_readme(),
long_description_content_type="text/markdown",
author="Luis Ch.",
author_email="email@luisch.com",
packages=find_packages(include=[__app_name__]),
install_requires=["rich", "tinydb", "typer", "typing"],
url="https://github.com/luisgdev/todi",
entry_points={
"console_scripts": [
f"{__app_name__} = {__app_name__}.__main__:main",
]
},
)