-
Notifications
You must be signed in to change notification settings - Fork 5
/
setup.py
110 lines (101 loc) · 3.71 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
# This file is a part of the AnyBlok / Pyramid project
#
# Copyright (C) 2015 Jean-Sebastien SUZANNE <jssuzanne@anybox.fr>
# Copyright (C) 2018 Jean-Sebastien SUZANNE <jssuzanne@anybox.fr>
# Copyright (C) 2019 Jean-Sebastien SUZANNE <js.suzanne@gmail.com>
# Copyright (C) 2021 Jean-Sebastien SUZANNE <js.suzanne@gmail.com>
#
# This Source Code Form is subject to the terms of the Mozilla Public License,
# v. 2.0. If a copy of the MPL was not distributed with this file,You can
# obtain one at http://mozilla.org/MPL/2.0/.
import os
from setuptools import find_packages, setup
version = "1.2.2"
requires = [
"anyblok>=1.1.0",
"pyramid",
"pyramid_tm",
"zope.sqlalchemy",
"passlib",
"hupper",
]
extra_dependencies = {
"oidc": ["oic"],
}
here = os.path.abspath(os.path.dirname(__file__))
with open(os.path.join(here, "README.rst"), "r", encoding="utf-8") as readme:
README = readme.read()
with open(
os.path.join(here, "doc", "FRONT.rst"), "r", encoding="utf-8"
) as front:
FRONT = front.read()
with open(
os.path.join(here, "doc", "CHANGES.rst"), "r", encoding="utf-8"
) as change:
CHANGE = change.read()
console_scripts = [
"anyblok_pyramid=anyblok_pyramid.scripts:wsgi",
"gunicorn_anyblok_pyramid=anyblok_pyramid.scripts:gunicorn_wsgi",
]
anyblok_pyramid_includeme = [
"pyramid_tm=anyblok_pyramid.pyramid_config:pyramid_tm",
"static_paths=anyblok_pyramid.pyramid_config:static_paths",
]
anyblok_init = [
"anyblok_pyramid_config=anyblok_pyramid:anyblok_init_config",
]
setup(
name="anyblok_pyramid",
version=version,
author="Jean-Sébastien Suzanne",
author_email="jssuzanne@anybox.fr",
description="Web Server Pyramid for AnyBlok",
license="MPL2",
long_description=README + "\n" + FRONT + "\n" + CHANGE,
url="http://docs.anyblok-pyramid.anyblok.org/" + version,
packages=find_packages(),
zip_safe=False,
include_package_data=True,
install_requires=requires,
tests_require=requires + ["pytest", "pytest-cov", "WebTest"],
classifiers=[
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Topic :: Software Development :: Libraries :: Python Modules",
"Framework :: Pyramid",
"Topic :: Internet :: WWW/HTTP",
"Topic :: Internet :: WWW/HTTP :: HTTP Servers",
"Topic :: Internet :: WWW/HTTP :: WSGI :: Server",
"License :: OSI Approved :: Mozilla Public License 2.0 (MPL 2.0)",
],
entry_points={
"console_scripts": console_scripts,
"anyblok_pyramid.settings": [
"pyramid_settings=anyblok_pyramid.pyramid_config:pyramid_settings",
],
"anyblok_pyramid.includeme": anyblok_pyramid_includeme,
"anyblok.init": anyblok_init,
"bloks": [
"pyramid=anyblok_pyramid.bloks.pyramid:Pyramid",
"auth=anyblok_pyramid.bloks.auth:Auth",
"auth-password=anyblok_pyramid.bloks.password:Password",
"authorization=anyblok_pyramid.bloks.authorization:Authorization",
"user-identity=anyblok_pyramid.bloks.user_identity:UserIdentity",
],
"anyblok.model.plugin": [
(
"restrict_query_by_user=anyblok_pyramid.bloks.pyramid."
"restrict:RestrictQueryByUserIdPlugin"
),
],
"test_bloks": [
"test-pyramid1=anyblok_pyramid.test_bloks.test1:Test",
"test-pyramid2=anyblok_pyramid.test_bloks.test2:Test",
],
},
extras_require=extra_dependencies,
)