-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathsetup.py
70 lines (61 loc) · 2.22 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
import os
from setuptools import setup
BASE_DIR = os.path.abspath(os.path.dirname(__file__))
REQUIRED = [
'Django>=2.0'
]
EXTRAS = {
'Pillow': ['Pillow>=2.1'],
'msgpack': ['msgpack']
}
def read_files(files):
data = []
for file in files:
with open(file, encoding='utf-8') as my_file:
data.append(my_file.read())
return "\n".join(data)
meta = {}
with open('django_api_forms/version.py', encoding='utf-8') as f:
exec(f.read(), meta)
setup(
name='django-api-forms',
version=meta['__version__'],
packages=['django_api_forms'],
install_requires=REQUIRED,
extras_require=EXTRAS,
url='https://github.com/Sibyx/django_api_forms',
license='MIT',
author='Jakub Dubec',
author_email='jakub.dubec@gmail.com',
description='Declarative Django request validation for RESTful APIs ',
long_description=read_files(['README.md', 'CHANGELOG.md']),
long_description_content_type='text/markdown',
keywords=['django', 'forms', 'request', 'validation', 'rest', 'json'],
classifiers=[
# As from https://pypi.python.org/pypi?%3Aaction=list_classifiers
'Development Status :: 4 - Beta',
'Programming Language :: Python',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3 :: Only',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: Implementation :: PyPy',
'Framework :: Django :: 2.0',
'Framework :: Django :: 2.1',
'Framework :: Django :: 2.2',
'Framework :: Django :: 3.0',
'Framework :: Django :: 3.1',
'Framework :: Django :: 3.2',
'Framework :: Django :: 4.0',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Topic :: Internet :: WWW/HTTP',
'Topic :: Internet :: WWW/HTTP :: HTTP Servers',
'Topic :: Software Development :: Libraries :: Python Modules',
'Environment :: Web Environment',
]
)