feat: create libretime_shared package (#1349)

* feat: create libretime_shared package

- We don't use pydantic.BaseSettings because of some
  incompatble loading behavior.

* fix: whitelist pydantic in pylintrc

* docs: update to new BaseConfig behavior

* docs: change confusing config filepath
This commit is contained in:
Jonas L 2022-01-06 14:40:52 +01:00 committed by GitHub
parent ba8b51af76
commit 3a615cafa0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
13 changed files with 568 additions and 0 deletions

29
shared/setup.py Normal file
View file

@ -0,0 +1,29 @@
from os import chdir
from pathlib import Path
from setuptools import setup
here = Path(__file__).parent
chdir(here)
setup(
name="libretime-shared",
version="1.0.0",
description="LibreTime Shared",
url="http://github.com/libretime/libretime",
author="LibreTime Contributors",
license="AGPLv3",
packages=["libretime_shared"],
package_data={"": ["py.typed"]},
install_requires=[
"click",
"loguru",
"pydantic",
"pyyaml",
],
extras_require={
"dev": [
"types-pyyaml",
],
},
)