From aac27e6a4367d69a38a8a9b4ea5491524f35f019 Mon Sep 17 00:00:00 2001 From: Xiretza Date: Sun, 8 May 2022 15:33:12 +0200 Subject: [PATCH] feat: create python package --- .gitignore | 4 ++++ pyproject.toml | 6 +++++- setup.py | 20 ++++++++++++++++++++ 3 files changed, 29 insertions(+), 1 deletion(-) create mode 100644 setup.py diff --git a/.gitignore b/.gitignore index 2c3f6a9..590be07 100644 --- a/.gitignore +++ b/.gitignore @@ -14,3 +14,7 @@ __pycache__ /etebase_server_settings.py /secret.txt + +/build +/dist +/*.egg-info diff --git a/pyproject.toml b/pyproject.toml index e34796e..b622800 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,2 +1,6 @@ [tool.black] -line-length = 120 \ No newline at end of file +line-length = 120 + +[build-system] +requires = ["setuptools>=42"] +build-backend = "setuptools.build_meta" diff --git a/setup.py b/setup.py new file mode 100644 index 0000000..c7bd106 --- /dev/null +++ b/setup.py @@ -0,0 +1,20 @@ +from setuptools import find_packages, setup + +setup( + name='etebase_server', + version='0.8.3', + description='An Etebase (EteSync 2.0) server', + url='https://www.etebase.com/', + classifiers=[ + 'Development Status :: 5 - Production/Stable', + 'Framework :: Django', + 'Framework :: FastAPI', + 'Intended Audience :: System Administrators', + 'License :: OSI Approved :: GNU Affero General Public License v3', + ], + packages=find_packages(include=['etebase_server', 'etebase_server.*']), + install_requires=list(open('requirements.in/base.txt')), + package_data={ + 'etebase_server': ['templates/*'], + } +)