-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsetup.py
More file actions
120 lines (111 loc) · 2.82 KB
/
setup.py
File metadata and controls
120 lines (111 loc) · 2.82 KB
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 -*-
# pylint: disable=all
# type: ignore
from setuptools import setup
with open('README.rst', 'r') as f:
long_description = f.read()
__version__ = '0.1.2'
# setup attributes
attrs = dict(
name='Flask-DataTables-peewee',
version=__version__,
description='Flask integration with DataTables and peewee.',
long_description=long_description,
author='TEKID Ltd.',
author_email='contact@tek-id.com',
maintainer='Jarry XIAO',
maintainer_email='jarry.xiao@tek-id.com',
url='https://github.com/tekidltd/Flask-DataTables',
download_url='https://github.com/tekidltd/Flask-DataTables/archive/v%s.tar.gz' % __version__,
# py_modules
packages=[
'flask_datatables',
],
# scripts
# ext_modules
classifiers=[
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Natural Language :: English',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3 :: Only',
'Topic :: Software Development',
'Topic :: Utilities',
'Typing :: Typed',
],
# distclass
# script_name
# script_args
# options
license='BSD 3-Clause License',
keywords=[
'flask',
'peewee',
'datatables',
],
platforms=[
'any',
],
# cmdclass
# data_files
# package_dir
# obsoletes
# provides
# requires
# command_packages
# command_options
package_data={
'': [
'LICENSE',
'README.rst',
],
'flask_datatables': [
'py.typed',
],
},
# include_package_data
# libraries
# headers
# ext_package
# include_dirs
# password
# fullname
# long_description_content_type
# python_requires
# zip_safe,
install_requires=[
'Flask',
'peewee',
'typing; python_version<"3.5"',
'typing_extensions',
],
#entry_points
#extras_require
#setup_requires
)
try:
from setuptools import setup
from setuptools.command.build_py import build_py
attrs.update(dict(
include_package_data=True,
# libraries
# headers
# ext_package
# include_dirs
# password
# fullname
long_description_content_type='text/x-rst',
python_requires='>=3.6',
# zip_safe=True,
))
except ImportError:
from distutils.core import setup
from distutils.command.build_py import build_py
# set-up script for pip distribution
setup(**attrs)