forked from plone/guillotina
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
110 lines (100 loc) · 3.19 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
# -*- 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"],
author="Ramon Navarro Bosch & Nathan Van Gheem",
author_email="[email protected]",
classifiers=[
"License :: OSI Approved :: BSD License",
"Intended Audience :: Developers",
"Topic :: Internet :: WWW/HTTP",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Topic :: Software Development :: Libraries :: Python Modules",
],
url="https://github.com/plone/guillotina",
license="BSD",
setup_requires=["pytest-runner"],
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=[
'aiohttp>=3.0.0,<3.7.0;python_version<"3.8"',
'aiohttp>=3.6.0,<4.0.0;python_version>="3.8"',
"jsonschema",
"python-dateutil",
"pycryptodome",
"jwcrypto",
"setuptools",
"ujson",
"zope.interface",
"pyjwt",
"asyncpg",
"cffi",
"PyYAML>=5.1",
"lru-dict",
"mypy_extensions",
"argon2-cffi",
"backoff",
"urllib3>=1.20,<2",
"brotli",
],
extras_require={
"test": [
"pytest==8.3.2",
"docker>=5.0.0",
"backoff",
"psycopg2-binary==2.9.3",
"pytest-asyncio==0.21.2",
"pytest-cov>=2.0.0,<=2.9.0",
"coverage>=4.0.3",
"pytest-docker-fixtures",
"pytest-rerunfailures>=14.0",
"openapi-spec-validator==0.2.8",
"asyncmock",
"prometheus-client",
],
"docs": [
"sphinx",
"recommonmark",
"sphinxcontrib-httpdomain",
"sphinxcontrib-httpexample",
"sphinx-guillotina-theme",
"sphinx-autodoc-typehints",
],
"redis": ["aioredis==1.3.1"],
"memcached": ["emcache"],
"mailer": ["html2text>=2018.1.9", "aiosmtplib>=1.0.6"],
},
entry_points={
"console_scripts": [
"guillotina = guillotina.commands:command_runner",
"g = guillotina.commands:command_runner",
]
},
)