-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathsetup.py
39 lines (35 loc) · 1.43 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
from pathlib import Path
import re
from setuptools import setup, find_packages
here = Path(__file__).resolve().parent
# Read version from fastapi_wrapper/__init__.py
version_re = r"^__version__ = ['\"]([^'\"]*)['\"]"
init_text = (here / "fastapi_wrapper" / "__init__.py").read_text()
version = re.findall(version_re, init_text)[0]
# Read README.md.
readme = (here / "README.md").read_text()
setup(
name="fastapi-wrapper",
version=version,
author="Arvindra Sehmi, based on Johannes Rieke",
author_email="[email protected], [email protected]",
description="Create APIs from data files within seconds, using fastapi",
long_description=readme,
long_description_content_type="text/markdown",
url="https://github.com/asehmi/fastapi-wrapper",
license="MIT",
python_requires=">=3.6",
packages=find_packages(exclude=("tests", "docs", "examples")),
include_package_data=True,
install_requires=["pandas", "uvicorn", "pydantic", "numpy", "fastapi", "typer",],
entry_points={"console_scripts": ["fastapi-wrapper=fastapi_wrapper.cli:typer_app"],},
classifiers=[
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Operating System :: OS Independent",
"License :: OSI Approved :: MIT License",
"Intended Audience :: Developers",
],
)