Add packaging files
This commit is contained in:
		
							parent
							
								
									99156a1dba
								
							
						
					
					
						commit
						5a337db2b0
					
				
							
								
								
									
										1
									
								
								MANIFEST.in
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								MANIFEST.in
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1 @@
 | 
			
		||||
include clicada/data/config/* *requirements* LICENSE
 | 
			
		||||
@ -78,7 +78,7 @@ class CmdCtrl:
 | 
			
		||||
            self.cmd_string = cmd_string_translate
 | 
			
		||||
 | 
			
		||||
        if self.cmd_string == None:
 | 
			
		||||
            raise ValueError('Subcommand missing')
 | 
			
		||||
            self.cmd_string = 'none'
 | 
			
		||||
   
 | 
			
		||||
        modname = 'clicada.cli.{}'.format(self.cmd_string)
 | 
			
		||||
        self.logger.debug('using module {}'.format(modname))
 | 
			
		||||
@ -98,7 +98,7 @@ class CmdCtrl:
 | 
			
		||||
    def config(self):
 | 
			
		||||
        extra_args = self.cmd_mod.extra_args()
 | 
			
		||||
        if self.cmd_args.config:
 | 
			
		||||
            self.config = chainlib.eth.cli.Config.from_args(self.cmd_args, base_config_dir=base_config_dir, extra_args=extra_args, override_dirs=self.cmd_args.c)
 | 
			
		||||
            self.config = chainlib.eth.cli.Config.from_args(self.cmd_args, base_config_dir=base_config_dir, extra_args=extra_args, default_config_dir=self.cmd_args.config)
 | 
			
		||||
        else:
 | 
			
		||||
            self.config = chainlib.eth.cli.Config.from_args(self.cmd_args, base_config_dir=base_config_dir, extra_args=extra_args)
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
							
								
								
									
										14
									
								
								clicada/cli/none.py
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										14
									
								
								clicada/cli/none.py
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,14 @@
 | 
			
		||||
def process_args(argparser):
 | 
			
		||||
    pass
 | 
			
		||||
 | 
			
		||||
def extra_args():
 | 
			
		||||
    return {}
 | 
			
		||||
 | 
			
		||||
def apply_args(config, args):
 | 
			
		||||
    pass
 | 
			
		||||
 | 
			
		||||
def validate(config, args):
 | 
			
		||||
    pass
 | 
			
		||||
 | 
			
		||||
def execute(ctrl):
 | 
			
		||||
    raise ValueError('subcommand missing')
 | 
			
		||||
@ -9,10 +9,11 @@ logging.basicConfig(level=logging.WARNING)
 | 
			
		||||
logg = logging.getLogger()
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
def main(ctrl):
 | 
			
		||||
ctrl = CmdCtrl(argv=sys.argv[1:], logger=logg)
 | 
			
		||||
 | 
			
		||||
def main():
 | 
			
		||||
    ctrl.execute()
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
if __name__ == '__main__':
 | 
			
		||||
    ctrl = CmdCtrl(argv=sys.argv[1:], logger=logg)
 | 
			
		||||
    main(ctrl)
 | 
			
		||||
 | 
			
		||||
@ -1,4 +1,4 @@
 | 
			
		||||
usumbufu~=0.3.3a1
 | 
			
		||||
usumbufu~=0.3.3a3
 | 
			
		||||
confini~=0.5.1
 | 
			
		||||
cic-eth-registry~=0.6.1
 | 
			
		||||
cic-types~=0.2.1a5
 | 
			
		||||
 | 
			
		||||
							
								
								
									
										36
									
								
								setup.cfg
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										36
									
								
								setup.cfg
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,36 @@
 | 
			
		||||
[metadata]
 | 
			
		||||
name = clicada
 | 
			
		||||
version = 0.0.1a7
 | 
			
		||||
description = CLI CRM tool for the cic-stack custodial wallet system
 | 
			
		||||
author = Louis Holbrook
 | 
			
		||||
author_email = dev@holbrook.no
 | 
			
		||||
url = https://gitlab.com/chaintools/chainlib
 | 
			
		||||
keywords =
 | 
			
		||||
	dlt
 | 
			
		||||
	evm
 | 
			
		||||
	blockchain
 | 
			
		||||
	cryptocurrency
 | 
			
		||||
classifiers =
 | 
			
		||||
	Programming Language :: Python :: 3
 | 
			
		||||
	Operating System :: OS Independent
 | 
			
		||||
	Development Status :: 3 - Alpha
 | 
			
		||||
	Environment :: Console
 | 
			
		||||
	Intended Audience :: Developers
 | 
			
		||||
	License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)
 | 
			
		||||
	Topic :: Internet
 | 
			
		||||
license = GPL3
 | 
			
		||||
licence_files =
 | 
			
		||||
	LICENSE.txt
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
[options]
 | 
			
		||||
python_requires = >= 3.6
 | 
			
		||||
include_package_data = True
 | 
			
		||||
packages = 
 | 
			
		||||
	clicada
 | 
			
		||||
	clicada.runnable
 | 
			
		||||
	clicada.store
 | 
			
		||||
	clicada.token
 | 
			
		||||
	clicada.cli
 | 
			
		||||
	clicada.tx
 | 
			
		||||
	clicada.user
 | 
			
		||||
							
								
								
									
										31
									
								
								setup.py
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										31
									
								
								setup.py
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,31 @@
 | 
			
		||||
from setuptools import setup
 | 
			
		||||
import os
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
requirements = []
 | 
			
		||||
f = open('requirements.txt', 'r')
 | 
			
		||||
while True:
 | 
			
		||||
    l = f.readline()
 | 
			
		||||
    if l == '':
 | 
			
		||||
        break
 | 
			
		||||
    requirements.append(l.rstrip())
 | 
			
		||||
f.close()
 | 
			
		||||
 | 
			
		||||
#test_requirements = []
 | 
			
		||||
#f = open('test_requirements.txt', 'r')
 | 
			
		||||
#while True:
 | 
			
		||||
#    l = f.readline()
 | 
			
		||||
#    if l == '':
 | 
			
		||||
#        break
 | 
			
		||||
#    eth_requirements.append(l.rstrip())
 | 
			
		||||
#f.close()
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
setup(
 | 
			
		||||
        install_requires=requirements,
 | 
			
		||||
        entry_points={
 | 
			
		||||
            'console_scripts': [
 | 
			
		||||
                'clicada=clicada.runnable.view:main',
 | 
			
		||||
                ],
 | 
			
		||||
            },
 | 
			
		||||
)
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user