-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
83 lines (75 loc) · 2 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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
import sys
from pathlib import Path
from setuptools import setup, find_packages
if sys.version_info.major != 3:
raise RuntimeError("This package requires Python 3+")
pkg_name = 'lazyops'
gitrepo = 'trisongz/lazyops'
root = Path(__file__).parent
version = root.joinpath(f'{pkg_name}/version.py').read_text().split('VERSION = ', 1)[-1].strip().replace('-', '').replace("'", '')
requirements = [
'loguru',
'pydantic',
# 'pydantic-settings',
'frozendict',
'async_lru',
]
if sys.version_info.minor < 8:
requirements.append('typing_extensions')
extras = {
'kops': [
'kubernetes',
'kubernetes_asyncio',
'kopf',
'aiocache',
# 'kr8s',
],
'fastapi': [
'fastapi',
'uvicorn',
'filelock==3.12.4',
'pydantic-settings',
'python-multipart',
],
'builder': [
'pyyaml',
'typer',
],
'authzero': [
'niquests',
'tldextract',
'fastapi',
'pycryptodomex',
'pyjwt[crypto]',
'python-jose',
]
}
args = {
'packages': find_packages(include = [f'{pkg_name}', f'{pkg_name}.*',]),
'install_requires': requirements,
'include_package_data': True,
'long_description': root.joinpath('README.md').read_text(encoding='utf-8'),
'entry_points': {
"console_scripts": [
'lazyops-build = lazyops.libs.abc.builder:main',
]
},
'extras_require': extras,
}
setup(
name = pkg_name,
version = version,
url=f'https://github.com/{gitrepo}',
license='MIT License',
description='A collection of submodules/patterns that are commonly used within Internal Development',
author='Tri Songz',
author_email='[email protected]',
long_description_content_type="text/markdown",
classifiers=[
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 3.7',
'Topic :: Software Development :: Libraries',
],
**args
)