This commit is contained in:
emdee@spm.plastiras.org 2023-12-26 06:17:14 +00:00
parent ae6b8f443c
commit c5aff5fd3b
2 changed files with 37 additions and 5 deletions

31
setup.py Normal file
View File

@ -0,0 +1,31 @@
import sys
import os
from setuptools import setup
from setuptools.command.install import install
version = '1.0.0'
setup(name='tox_profile',
version=version,
description='Tox ctypes wrapping testing of Tox profiles',
long_description='Tox ctypes wrapping of Tox profiles',
url='https://git.plastiras.org/emdee/tox_profile/',
keywords='ctypes Tox messenger',
author='emdee',
maintainer='',
license='',
packages=[],
entry_points = {'console_scripts': [ 'tox_profile = tox_profile:iMain', ],},
install_requires=[],
include_package_data=False,
classifiers=[
"Environment :: Console",
"Topic :: Internet",
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"License :: OSI Approved",
],
zip_safe=False
)

View File

@ -1131,7 +1131,7 @@ def iTestTorTest(sProOrNodes, oArgs, bClean=False):
def iTestOnionNodes():
return 0
def iMain(sProOrNodes, oArgs):
def iMainFun(sProOrNodes, oArgs):
global bOUT, aOUT, sENC
global bSAVE
@ -1450,8 +1450,8 @@ def oMainArgparser(_=None):
return parser
if __name__ == '__main__':
lArgv = sys.argv[1:]
def iMain(lArgv=None):
if lArgv is None: lArgv = sys.argv[1:]
parser = oMainArgparser()
oArgs = parser.parse_args(lArgv)
if oArgs.command in ['edit'] and oArgs.edit == 'help':
@ -1465,6 +1465,7 @@ if __name__ == '__main__':
vSetupLogging(oArgs.log_level)
i = 0
for sProOrNodes in oArgs.lprofile:
i = iMain(sProOrNodes, oArgs)
i = iMainFun(sProOrNodes, oArgs)
sys.exit(i)
if __name__ == '__main__':
sys.exit(iMain(sys.argv[1:]))