Publish improvements for pip install

This commit is contained in:
Sven Heidemann 2020-12-15 20:08:43 +01:00
parent 8c86eb2417
commit aa90adfd48
6 changed files with 57 additions and 3 deletions

6
docs/cli.md Normal file
View File

@ -0,0 +1,6 @@
prefix: cpl
commands:
new:
app
class
model

0
docs/install.md Normal file
View File

View File

@ -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'
]
}
)

View File

@ -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)

View File

@ -0,0 +1,8 @@
class CPLCli:
def main(self):
print('Hello world')
def main():
cli = CPLCli()
cli.main()

View File

@ -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()