diff --git a/docs/cli.md b/docs/cli.md new file mode 100644 index 00000000..1ec439a0 --- /dev/null +++ b/docs/cli.md @@ -0,0 +1,6 @@ +prefix: cpl +commands: + new: + app + class + model \ No newline at end of file diff --git a/docs/install.md b/docs/install.md new file mode 100644 index 00000000..e69de29b diff --git a/src/setup.py b/src/setup.py index 4f86d310..b413a815 100644 --- a/src/setup.py +++ b/src/setup.py @@ -3,10 +3,23 @@ import setuptools setuptools.setup( name='sh_edraft', version='2020.0.1', - packages=setuptools.find_packages(), + packages=setuptools.find_packages(exclude=["tests*"]), url='https://www.sh-edraft.de', license='MIT', author='Sven Heidemann', author_email='edraft.sh@gmail.com', - description='sh-edraft python common lib' + description='sh-edraft python common lib', + python_requires='>=3.8', + install_requires=[ + 'discord.py', + 'flask', + 'mysql-connector', + 'SQLAlchemy', + 'termcolor' + ], + entry_points={ + 'console_scripts': [ + 'cpl = sh_edraft.cli.cpl_cli:main' + ] + } ) diff --git a/src/sh_edraft/cli/__init__.py b/src/sh_edraft/cli/__init__.py new file mode 100644 index 00000000..89b6ae33 --- /dev/null +++ b/src/sh_edraft/cli/__init__.py @@ -0,0 +1,25 @@ +# -*- coding: utf-8 -*- + +""" +sh_edraft.cli +~~~~~~~~~~~~~~~~~~~ + + + +:copyright: (c) 2020 sh-edraft.de +:license: MIT, see LICENSE for more details. + +""" + +__title__ = 'sh_edraft.cli' +__author__ = 'Sven Heidemann' +__license__ = 'MIT' +__copyright__ = 'Copyright (c) 2020 sh-edraft.de' +__version__ = '2020.12.9' + +from collections import namedtuple + +# imports: + +VersionInfo = namedtuple('VersionInfo', 'major minor micro') +version_info = VersionInfo(major=2020, minor=12, micro=9) diff --git a/src/sh_edraft/cli/cpl_cli.py b/src/sh_edraft/cli/cpl_cli.py new file mode 100644 index 00000000..7d8e25e4 --- /dev/null +++ b/src/sh_edraft/cli/cpl_cli.py @@ -0,0 +1,8 @@ +class CPLCli: + def main(self): + print('Hello world') + + +def main(): + cli = CPLCli() + cli.main() diff --git a/src/tests_dev/publisher.py b/src/tests_dev/publisher.py index f07de2f0..f9eea080 100644 --- a/src/tests_dev/publisher.py +++ b/src/tests_dev/publisher.py @@ -1,7 +1,6 @@ from typing import Optional from sh_edraft.configuration.base import ConfigurationBase -from sh_edraft.console import Console from sh_edraft.hosting import ApplicationHost from sh_edraft.hosting.base import ApplicationBase from sh_edraft.logging import Logger @@ -51,6 +50,9 @@ class Program(ApplicationBase): self._logger.debug(__name__, f'Customer: {self._configuration.environment.customer}') self._publisher.exclude('../tests') self._publisher.exclude('../tests_dev') + self._publisher.include('../../LICENSE') + self._publisher.include('../../README.MD') + self._publisher.include('../../requirements.txt') self._publisher.create() self._publisher.publish()