-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.py
75 lines (64 loc) · 1.87 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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
#!/usr/bin/env python3
import re
import os
import sys
from typing import List
from setuptools import setup, find_packages
if sys.version_info.major < 3 or sys.version_info.minor < 10:
sys.exit("Requiring Python >= 3.10")
with open("README.md", "r", encoding = "UTF-8") as README :
LongDescription = README.read()
def get_version():
SRC = os.path.abspath(os.path.dirname(__file__))
PATH = os.path.join(SRC, "mystalker/__init__.py")
with open(PATH, encoding = "UTF-8") as f:
for line in f:
m = re.match("__version__ = '(.*)'", line)
if m:
return m.group(1)
raise SystemExit("Could not find version string.")
dependencies: List[str] = [
"argparse",
"atomicwrites",
"bs4",
"lxml",
"pandas",
"requests",
"urllib3",
]
if os.name == "nt":
dependencies.append("windows-curses")
setup(
name = "mystalker",
version = get_version(),
description = "Get your friend's NRIC number with this program.",
author = "LynBean",
author_email = "kim.is.fighting@gmail.com",
url = "https://github.com/LynBean/MyStalker",
license = "GPL-3.0",
packages = find_packages(),
zip_safe = False,
python_requires = ">=3.10",
install_requires = dependencies,
entry_points = {
"console_scripts": [
"mystalker = mystalker.__main__: main"
],
},
classifiers = [
"License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)",
"Environment :: Console",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3 :: Only",
],
keywords = (
[
"malaysia",
"malaysia-nric",
"malaysia-stalker",
"sapsnkra.moe.gov.my"
]
),
long_description = LongDescription,
long_description_content_type = "text/markdown",
)