libretime/api/setup.py
Jonas L fce988aef1
feat(api): split api into multiple apps (#1626)
Fixes #1622

- split the api into 4 apps: core, history, schedule, storage
- exploded the settings into testing/prod
2022-04-04 14:38:50 +02:00

50 lines
1.2 KiB
Python

from os import chdir
from pathlib import Path
from setuptools import find_packages, setup
# Change directory since setuptools uses relative paths
here = Path(__file__).parent.resolve()
chdir(here)
setup(
name="libretime-api",
version="2.0.0a1",
description="LibreTime API",
author="LibreTime Contributors",
url="https://github.com/libretime/libretime",
project_urls={
"Bug Tracker": "https://github.com/libretime/libretime/issues",
"Documentation": "https://libretime.org",
"Source Code": "https://github.com/libretime/libretime",
},
license="AGPLv3",
packages=find_packages(),
include_package_data=True,
python_requires=">=3.6",
entry_points={
"console_scripts": [
"libretime-api=libretime_api.manage:main",
]
},
install_requires=[
"coreapi",
"django~=3.0",
"djangorestframework",
"django-filter",
"drf-spectacular",
"markdown",
],
extras_require={
"prod": [
"psycopg2",
],
"dev": [
"model_bakery",
"psycopg2-binary",
f"libretime-shared @ file://localhost/{here.parent / 'shared'}#egg=libretime_shared",
],
},
)