forked from AnyBlok/AnyBlok
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
130 lines (123 loc) · 4.92 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
121
122
123
124
125
126
127
128
129
130
# -*- coding: utf-8 -*-
# This file is a part of the AnyBlok project
#
# Copyright (C) 2014 Jean-Sebastien SUZANNE <jssuzanne@anybox.fr>
# Copyright (C) 2015 Jean-Sebastien SUZANNE <jssuzanne@anybox.fr>
# Copyright (C) 2016 Jean-Sebastien SUZANNE <jssuzanne@anybox.fr>
# Copyright (C) 2017 Jean-Sebastien SUZANNE <jssuzanne@anybox.fr>
# Copyright (C) 2018 Jean-Sebastien SUZANNE <jssuzanne@anybox.fr>
#
# 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
import sys
from setuptools import setup, find_packages
version = '0.17.1'
if sys.version_info < (3, 3):
sys.stderr.write("This package requires Python 3.3 or newer. "
"Yours is " + sys.version + os.linesep)
sys.exit(1)
requires = [
'sqlalchemy',
'sqlalchemy-utils >= 0.33.0',
'argparse',
'alembic',
'graphviz',
'nose', # for unittest during the blok install
'lxml',
'six',
'PyYAML',
'appdirs',
'sqlalchemy-utils',
'pytz',
'python-dateutil',
'texttable',
'testfixtures',
]
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', 'CHANGES.rst'), 'r', encoding='utf-8'
) as change:
CHANGE = change.read()
with open(
os.path.join(here, 'doc', 'FRONT.rst'), 'r', encoding='utf-8'
) as front:
FRONT = front.read()
setup(
name="AnyBlok",
version=version,
author="Jean-Sébastien Suzanne",
author_email="jssuzanne@anybox.fr",
description="Anyblok is a dynamic injection blok framework",
license="MPL2",
long_description=README + '\n' + FRONT + '\n' + CHANGE,
url="http://docs.anyblok.org/%s" % version,
packages=find_packages(),
zip_safe=False,
include_package_data=True,
install_requires=requires,
tests_require=requires + ['nose'],
classifiers=[
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3 :: Only',
'Topic :: Software Development',
'Topic :: Software Development :: Libraries :: Python Modules',
'License :: OSI Approved :: Mozilla Public License 2.0 (MPL 2.0)',
],
entry_points={
'console_scripts': [
'anyblok_createdb=anyblok.scripts:anyblok_createdb',
'anyblok_updatedb=anyblok.scripts:anyblok_updatedb',
'anyblok_nose=anyblok.scripts:anyblok_nose',
'anyblok_interpreter=anyblok.scripts:anyblok_interpreter',
'anyblok_doc=anyblok.scripts:anyblok2doc',
],
'bloks': [
'anyblok-core=anyblok.bloks.anyblok_core:AnyBlokCore',
'model_authz='
'anyblok.bloks.model_authz:ModelBasedAuthorizationBlok',
'anyblok-io=anyblok.bloks.io:AnyBlokIO',
'anyblok-io-csv=anyblok.bloks.io_csv:AnyBlokIOCSV',
'anyblok-io-xml=anyblok.bloks.io_xml:AnyBlokIOXML',
],
'test_bloks': [
'test-blok1=anyblok.test_bloks.test_blok1:TestBlok',
'test-blok2=anyblok.test_bloks.test_blok2:TestBlok',
'test-blok3=anyblok.test_bloks.test_blok3:TestBlok',
'test-blok4=anyblok.test_bloks.test_blok4:TestBlok',
'test-blok5=anyblok.test_bloks.test_blok5:TestBlok',
'test-blok6=anyblok.test_bloks.test_blok6:TestBlok',
'test-blok7=anyblok.test_bloks.test_blok7:TestBlok',
'test-blok8=anyblok.test_bloks.test_blok8:TestBlok',
'test-blok9=anyblok.test_bloks.test_blok9:TestBlok',
'test-blok10=anyblok.test_bloks.test_blok10:TestBlok',
'test-blok11=anyblok.test_bloks.test_blok11:TestBlok',
'test-blok12=anyblok.test_bloks.test_blok12:TestBlok',
'test-blok13=anyblok.test_bloks.test_blok13:TestBlok',
],
'nose.plugins.0.10': [
'anyblok-bloks=anyblok.plugins:AnyBlokPlugin',
],
'anyblok.init': [],
'anyblok_configuration.post_load': [],
'anyblok.model.plugin': [
'hybrid_method=anyblok.model.hybrid_method:HybridMethodPlugin',
'table_mapper=anyblok.model.table_and_mapper:TableMapperPlugin',
'event=anyblok.model.event:EventPlugin',
'sqla-event=anyblok.model.event:SQLAlchemyEventPlugin',
'auto-orm-event=anyblok.model.event:AutoSQLAlchemyORMEventPlugin',
'cache=anyblok.model.cache:CachePlugin',
'field_datetime=anyblok.model.field_datetime:AutoUpdatePlugin',
],
},
extras_require={},
)