diff --git a/setup.cfg b/setup.cfg index 97b1620..967603d 100644 --- a/setup.cfg +++ b/setup.cfg @@ -2,10 +2,6 @@ universal = 1 -[metadata] -license_file = LICENSE - - [flake8] max_line_length = 120 max_complexity = 10 @@ -18,3 +14,51 @@ source = rest_auth omit = *migrations* tests + + +[metadata] +name = django-rest-auth +version = 0.9.5 +keywords = django, rest, auth, registration, rest-framework, django-registration, api +description = Create a set of REST API endpoints for Authentication and Registration +long_description = file: README.rst +license = MIT +license_file = LICENSE + +author = Sumit Chachra +author_email = chachra@tivix.com +url = http://github.com/Tivix/django-rest-auth + +classifiers = + Development Status :: 4 - Beta + Framework :: Django + Framework :: Django :: 1.11 + Framework :: Django :: 2.0 + Intended Audience :: Developers + Intended Audience :: System Administrators + License :: OSI Approved :: BSD License + Operating System :: OS Independent + Programming Language :: Python + Programming Language :: Python :: 2 + Programming Language :: Python :: 2.7 + Programming Language :: Python :: 3 + Programming Language :: Python :: 3.5 + Programming Language :: Python :: 3.6 + Programming Language :: Python :: 3.7 + Topic :: Software Development + +[options] +zip_safe = False +include_package_data = True +packages = find: +install_requires = + Django >= 1.8.0 + djangorestframework >= 3.1.3 + +[options.extras_require] +with_social = + django-allauth >= 0.25.0 + +[options.packages.find] +exclude = + tests diff --git a/setup.py b/setup.py index fbb1d70..2598061 100644 --- a/setup.py +++ b/setup.py @@ -1,50 +1,5 @@ #!/usr/bin/env python - -import os -from setuptools import setup, find_packages +from setuptools import setup -here = os.path.dirname(os.path.abspath(__file__)) -f = open(os.path.join(here, 'README.rst')) -long_description = f.read().strip() -f.close() - - -setup( - name='django-rest-auth', - version='0.9.5', - author='Sumit Chachra', - author_email='chachra@tivix.com', - url='http://github.com/Tivix/django-rest-auth', - description='Create a set of REST API endpoints for Authentication and Registration', - packages=find_packages(), - long_description=long_description, - keywords='django rest auth registration rest-framework django-registration api', - zip_safe=False, - install_requires=[ - 'Django>=1.8.0', - 'djangorestframework>=3.1.3', - ], - extras_require={ - 'with_social': ['django-allauth>=0.25.0'], - }, - include_package_data=True, - classifiers=[ - 'Development Status :: 4 - Beta', - 'Framework :: Django', - 'Framework :: Django :: 1.11', - 'Framework :: Django :: 2.0', - 'Intended Audience :: Developers', - 'Intended Audience :: System Administrators', - 'License :: OSI Approved :: BSD License', - 'Operating System :: OS Independent', - 'Programming Language :: Python', - 'Programming Language :: Python :: 2', - 'Programming Language :: Python :: 2.7', - 'Programming Language :: Python :: 3', - 'Programming Language :: Python :: 3.5', - 'Programming Language :: Python :: 3.6', - 'Programming Language :: Python :: 3.7', - 'Topic :: Software Development' - ], -) +setup()