-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
36 lines (32 loc) · 1.06 KB
/
setup.py
File metadata and controls
36 lines (32 loc) · 1.06 KB
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
import os
import re
import setuptools
INSTALL_DIR = os.path.dirname(os.path.realpath(__file__))
def read(file):
with open(file, "r", encoding="UTF-8") as f:
return f.read()
version = re.search(r"VERSION = \"([^\"]+)\"", read(os.path.join(INSTALL_DIR, "ls2tools", "__init__.py"))).group(1)
if __name__ == "__main__":
setuptools.setup(
name="ls2tools",
version=version,
description="LS2-related Tooling",
long_description=read("README.md"),
author="Miku AuahDark",
license="zlib/libpng",
python_requires=">=3.10",
classifiers=[
"Development Status :: 3 - Alpha",
"License :: OSI Approved :: zlib/libpng License",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.10",
"Topic :: Utilities"
],
keywords=["python3", "ls2"],
packages=setuptools.find_packages(),
entry_points={
"console_scripts": [
"ls2tools = ls2tools:main"
]
}
)