From cca11bba202e5a0a206396b6684419be58400f2f Mon Sep 17 00:00:00 2001 From: cronyakatsuki Date: Thu, 10 Mar 2022 18:37:40 +0100 Subject: [PATCH] Added setup.py. --- adl.py | 3 ++- setup.py | 26 ++++++++++++++++++++++++++ 2 files changed, 28 insertions(+), 1 deletion(-) create mode 100644 setup.py diff --git a/adl.py b/adl.py index 6106bcb..0e0a88c 100755 --- a/adl.py +++ b/adl.py @@ -4,6 +4,7 @@ import os, subprocess, sys, argparse, signal # required files CURRENT_DIR = os.getcwd() +VERSION = "1.0" if sys.platform == "win32": CONFIG_FILE_PATH = os.path.join('C:\\', 'Users', str(os.getlogin()), 'Documents', 'Adl', 'config.json') @@ -292,7 +293,7 @@ def argument_and_config_parser(): # print the version if args["version"]: - print("Py-adl version 1.1") + print(f"Py-adl version {VERSION}") sys.exit() # check if providers are working diff --git a/setup.py b/setup.py new file mode 100644 index 0000000..c4dd1ed --- /dev/null +++ b/setup.py @@ -0,0 +1,26 @@ +#!/usr/bin/env python +from setuptools import setup +import adl + +setup( + name='py-adl', + version=adl.VERSION, + description='Adl wrapper script written in python.', + url='https://github.com/cronyakatsuki/py-adl', + author='Crony Akatsuki', + author_email='cronyakatsuki@gmail.com', + license='GPL-3.0', + py_modules=['adl'], + entry_points={ + 'console_scripts': [ + 'adl=adl:main', + ], + }, + keywords=['trackma', 'animld', 'anime', 'adl', 'linux', 'windows'], + classifiers=[ + 'Development Status :: 4 - Beta', + 'License :: GPL-3.0 License', + 'Programming Language :: Python :: 3', + 'Operating System :: POSIX :: Linux :: Windows' + ], +)