-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
45 lines (37 loc) · 1.33 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
"""
Setup module for install lib
"""
import os
from os import path
from typing import List
from setuptools import setup
MODULE_NAME = 'orchestrator_service'
LIB_NAME = 'orchestrator_service'
__version__ = '0.0.15'
this_directory = path.abspath(path.dirname(__file__))
try:
with open(path.join(this_directory, 'README_PYPI.MD'), encoding='utf-8') as f:
LONG_DESCRIPTION = f.read()
except FileNotFoundError:
LONG_DESCRIPTION = 'orchestrator_service for microservices architecture'
def get_packages() -> List[str]:
"""
Help method
:return: List[str] path to files and folders library
"""
ignore = ['__pycache__']
list_sub_folders_with_paths = [x[0].replace(os.sep, '.')
for x in os.walk(MODULE_NAME)
if x[0].split(os.sep)[-1] not in ignore]
return list_sub_folders_with_paths
setup(name=LIB_NAME,
version=__version__,
description='orchestrator_service for microservices architecture',
author='Denis Shchutkiy',
long_description=LONG_DESCRIPTION,
long_description_content_type='text/markdown',
author_email='[email protected]',
url='https://github.com/Shchusia/orchestrator',
packages=get_packages(),
keywords=['pip', MODULE_NAME],
)