Publish improvements for pip install
This commit is contained in:
parent
8c86eb2417
commit
aa90adfd48
6
docs/cli.md
Normal file
6
docs/cli.md
Normal file
@ -0,0 +1,6 @@
|
||||
prefix: cpl
|
||||
commands:
|
||||
new:
|
||||
app
|
||||
class
|
||||
model
|
0
docs/install.md
Normal file
0
docs/install.md
Normal file
17
src/setup.py
17
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'
|
||||
]
|
||||
}
|
||||
)
|
||||
|
25
src/sh_edraft/cli/__init__.py
Normal file
25
src/sh_edraft/cli/__init__.py
Normal 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)
|
8
src/sh_edraft/cli/cpl_cli.py
Normal file
8
src/sh_edraft/cli/cpl_cli.py
Normal file
@ -0,0 +1,8 @@
|
||||
class CPLCli:
|
||||
def main(self):
|
||||
print('Hello world')
|
||||
|
||||
|
||||
def main():
|
||||
cli = CPLCli()
|
||||
cli.main()
|
@ -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()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user