-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathsetup.py
101 lines (94 loc) · 2.38 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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
#!/usr/bin/env python
import pathlib
from setuptools import find_packages, setup
from freenit import __version__
PROJECT_ROOT = pathlib.Path(__file__).parent
README = (PROJECT_ROOT / "README.md").read_text()
extras_require = {
"beanie": [
"beanie",
],
"build": [
"twine",
],
"dev": [
"aiosqlite",
"black",
"isort",
"uvicorn",
],
"ldap": [
"bonsai",
],
"ormar": [
"alembic",
"ormar",
],
"test": [
"aiosqlite",
"bandit",
"black",
"httpx",
"isort",
"pytest-asyncio",
"pytest-factoryboy",
"requests",
],
}
extras_require["all"] = (
extras_require["beanie"] + extras_require["ldap"] + extras_require["ormar"]
)
setup(
name="freenit",
version=__version__,
description="REST API framework based on FastAPI",
long_description=README,
long_description_content_type="text/markdown",
url="https://github.com/freenit-framework/backend",
author="Goran Mekić",
author_email="meka@tilda.center",
license="BSD",
classifiers=[
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"Topic :: Internet :: WWW/HTTP",
"Environment :: Web Environment",
"License :: OSI Approved :: BSD License",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
],
keywords=[
"REST",
"openapi",
"swagger",
"fastapi",
],
packages=find_packages(exclude=["tests*"]),
python_requires=">=3.8",
install_requires=[
"fastapi",
"passlib",
"pydantic[email]",
"pyjwt",
],
extras_require=extras_require,
include_package_data=True,
package_data={
"": [
"project/*",
"project/ansible/group_vars/*",
"project/ansible/inventory/*",
"project/ansible/roles/devel/*",
"project/ansible/roles/devel/tasks/*",
"project/ansible/roles/devel/vars/*",
"project/bin/*",
"project/project/*",
"project/project/api/*",
"project/project/models/*",
"project/templates/*",
]
},
scripts=["bin/freenit.sh"],
)