-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathsetup.py
59 lines (52 loc) · 1.81 KB
/
setup.py
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
from setuptools import find_packages, setup
import subprocess
def get_latest_git_tag():
try:
version = subprocess.check_output(["git", "describe", "--tags", "--abbrev=0"])
version = version.strip().decode(
"utf-8"
) # Remove trailing newline and decode bytes to string
# Remove the 'v' from the tag
if version.startswith("v"):
version = version[1:]
return version
except Exception as e:
print(f"An exception occurred while getting the latest git tag: {e}")
return None
VERSION = get_latest_git_tag() or "0.0.1" # Fallback version
PROJECT_URLS = {
"Bug Tracker": "https://github.com/yazdipour/OmnivoreX/issues",
"Source Code": "https://github.com/yazdipour/OmnivoreX",
}
setup(
name="omnivorex",
version=VERSION,
description="Omnivore Terminal App - Text User Interface",
author="Shahriar Yazdipour",
author_email="git@yazdipour.com",
packages=find_packages(include=["omnivorex*"]),
long_description=open("README.md").read(),
long_description_content_type="text/markdown",
license="MIT",
keywords="omnivore cli terminal readlater client tui rich textualize textual",
url=PROJECT_URLS["Source Code"],
project_urls=PROJECT_URLS,
python_requires=">=3",
include_dirs=["omnivorex"],
classifiers=[
"Programming Language :: Python :: 3",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
],
install_requires=[
"python-dotenv",
"omnivoreql>=0.2.1",
"textual==0.29.0",
],
entry_points={
"console_scripts": [
"omnivorex=omnivorex.omnivorex:main",
],
},
)