-
-
Notifications
You must be signed in to change notification settings - Fork 51
/
setup.py
120 lines (110 loc) · 3.59 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
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
# -*- coding: utf-8 -*-
from setuptools import Extension
from setuptools import find_packages
from setuptools import setup
long_description = open("README.rst").read() + "\n"
changelog = open("CHANGELOG.rst").read()
found = 0
for line in changelog.splitlines():
if len(line) > 15 and line[-1] == ")" and line[-4] == "-":
found += 1
if found >= 20:
break
long_description += "\n" + line
long_description += """
...
You are seeing a truncated changelog.
You can read the `changelog file <https://github.com/plone/guillotina/blob/master/CHANGELOG.rst>`_
for a complete list.
"""
lru_module = Extension("guillotina.contrib.cache.lru", sources=["guillotina/contrib/cache/lru.c"])
setup(
name="guillotina",
python_requires=">=3.7.0",
version=open("VERSION").read().strip(),
description="asyncio REST API Resource database", # noqa
long_description=long_description,
keywords=["asyncio", "REST", "Framework", "transactional", "asgi"],
author="Ramon Navarro Bosch & Nathan Van Gheem",
author_email="ramon@plone.org",
classifiers=[
"License :: OSI Approved :: BSD License",
"Intended Audience :: Developers",
"Topic :: Internet :: WWW/HTTP",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Topic :: Software Development :: Libraries :: Python Modules",
],
url="https://github.com/plone/guillotina",
license="BSD",
zip_safe=False,
include_package_data=True,
ext_modules=[lru_module],
package_data={"": ["*.txt", "*.rst", "guillotina/documentation/meta/*.json"], "guillotina": ["py.typed"]},
packages=find_packages(),
install_requires=[
"uvicorn",
"websockets",
"jsonschema==2.6.0",
"python-dateutil",
"pycryptodome",
"jwcrypto",
"setuptools",
"orjson>=3,<4",
"zope.interface",
"pyjwt",
"asyncpg",
"cffi",
"PyYAML>=5.1",
"lru-dict",
"mypy_extensions",
"argon2-cffi",
"backoff",
"multidict",
"typing_extensions",
],
extras_require={
"test": [
"pytest>=3.8.0,<6.3.0",
"docker>=6.0.0,<6.1.1", # https://github.com/docker/docker-py/pull/3116
"backoff",
"psycopg2-binary",
"pytest-asyncio<=0.13.0",
"pytest-cov",
"coverage>=4.0.3",
"pytest-docker-fixtures",
"pytest-rerunfailures<=10.1",
"async-asgi-testclient<2.0.0",
"openapi-spec-validator==0.2.9",
"aiohttp>=3.0.0,<4.0.0",
"asyncmock",
"prometheus-client",
],
"docs": [
"async-asgi-testclient<2.0.0",
"sphinx",
"recommonmark",
"sphinxcontrib-httpdomain",
"sphinxcontrib-httpexample",
"sphinx-guillotina-theme",
"sphinx-autodoc-typehints",
],
"testdata": [
'aiohttp>=3.0.0,<3.6.0;python_version<"3.8"',
'aiohttp>=3.6.0,<4.0.0;python_version>="3.8"',
],
"redis": ['redis>=4.3.0'],
"mailer": ["html2text>=2018.1.9", "aiosmtplib>=1.0.6"],
"memcached": ["emcache"],
"validation": ["pytz==2020.1"],
"recaptcha": ["aiohttp<4"],
},
entry_points={
"console_scripts": [
"guillotina = guillotina.commands:command_runner",
"g = guillotina.commands:command_runner",
]
},
)