Added setup.py.
This commit is contained in:
parent
f4406d0779
commit
cca11bba20
3
adl.py
3
adl.py
@ -4,6 +4,7 @@ import os, subprocess, sys, argparse, signal
|
|||||||
|
|
||||||
# required files
|
# required files
|
||||||
CURRENT_DIR = os.getcwd()
|
CURRENT_DIR = os.getcwd()
|
||||||
|
VERSION = "1.0"
|
||||||
|
|
||||||
if sys.platform == "win32":
|
if sys.platform == "win32":
|
||||||
CONFIG_FILE_PATH = os.path.join('C:\\', 'Users', str(os.getlogin()), 'Documents', 'Adl', 'config.json')
|
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
|
# print the version
|
||||||
if args["version"]:
|
if args["version"]:
|
||||||
print("Py-adl version 1.1")
|
print(f"Py-adl version {VERSION}")
|
||||||
sys.exit()
|
sys.exit()
|
||||||
|
|
||||||
# check if providers are working
|
# check if providers are working
|
||||||
|
26
setup.py
Normal file
26
setup.py
Normal file
@ -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'
|
||||||
|
],
|
||||||
|
)
|
Loading…
Reference in New Issue
Block a user