#!/usr/bin/env python # -*- coding: utf-8 -*- import io import os from setuptools import setup, find_packages def read_req(req_file): with open(os.path.join('requirements', req_file)) as req: return [line for line in req.readlines() if line and not line.isspace()] with io.open('README.rst', encoding='utf-8') as readme: description = readme.read() requirements = ['djangorestframework>=3.7.0'] + read_req('base.txt') requirements_validation = read_req('validation.txt') setup( name='drf-swagger', version='1.0.0rc1', packages=find_packages('src', include=['drf_swagger']), package_dir={'': 'src'}, include_package_data=True, install_requires=requirements, extras_require={ 'validation': requirements_validation, }, license='BSD License', description='Automated generation of real Swagger/OpenAPI 2.0 schemas from Django Rest Framework code.', long_description=description, url='https://github.com/axnsan12/drf-swagger', author='Cristi V.', author_email='cristi@cvjd.me', keywords='drf django django-rest-framework schema swagger openapi codegen swagger-codegen ' 'documentation drf-swagger django-rest-swagger drf-openapi', classifiers=[ 'Intended Audience :: Developers', 'License :: OSI Approved :: BSD License', 'Development Status :: 4 - Beta', 'Operating System :: OS Independent', 'Environment :: Web Environment' 'Programming Language :: Python', 'Programming Language :: Python :: 2', 'Programming Language :: Python :: 2.7', 'Programming Language :: Python :: 3', 'Programming Language :: Python :: 3.4', 'Programming Language :: Python :: 3.5', 'Programming Language :: Python :: 3.6', 'Framework :: Django', 'Framework :: Django :: 1.11', 'Framework :: Django :: 2.0', 'Topic :: Documentation', 'Topic :: Software Development :: Code Generators', ], )