Add config schema setup, runnable

This commit is contained in:
nolash 2021-09-29 07:21:42 +02:00
parent b6b6e36da9
commit 9cfb97eb35
Signed by untrusted user who does not match committer: lash
GPG Key ID: 21D2E7BB88C2A746
5 changed files with 19 additions and 2 deletions

View File

@ -0,0 +1 @@
include requirements.txt initness/data/config/**

View File

@ -16,7 +16,9 @@ import confini
logging.basicConfig(level=logging.WARNING)
logg = logging.getLogger()
default_config_dir = os.environ.get('CONFINI_DIR', './config')
script_dir = os.path.dirname(os.path.realpath(__file__))
data_dir = os.path.join(script_dir, '..', 'data')
default_config_dir = os.path.join(data_dir, 'config')
argparser = argparse.ArgumentParser()
argparser.add_argument('-c', '--config', dest='c', default=default_config_dir, type=str, help='rpc provider')

View File

@ -1,7 +1,21 @@
from setuptools import setup
f = open('requirements.txt', 'r')
requirements = f.read()
f.close()
setup(
name='initness',
version='0.0.1a1',
packages=['initness'],
install_requires=requirements,
packages=[
'initness',
'initness.runnable',
],
include_package_data=True,
entry_points = {
'console_scripts': [
'cic-init-server=initness.runnable.server:main',
],
},
)