setup.py 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. #!/usr/bin/env python
  2. # -*- coding: utf-8 -*-
  3. from __future__ import unicode_literals
  4. import os
  5. from setuptools import find_packages, setup
  6. from rest_framework_bulk import __version__, __author__
  7. def read(fname):
  8. return (open(os.path.join(os.path.dirname(__file__), fname), 'rb')
  9. .read().decode('utf-8'))
  10. authors = read('AUTHORS.rst')
  11. history = read('HISTORY.rst').replace('.. :changelog:', '')
  12. licence = read('LICENSE.rst')
  13. readme = read('README.md')
  14. requirements = read('requirements.txt').splitlines() + [
  15. 'setuptools',
  16. ]
  17. test_requirements = (
  18. read('requirements.txt').splitlines()
  19. + read('requirements-dev.txt').splitlines()[1:]
  20. )
  21. setup(
  22. name='djangorestframework-bulk',
  23. version=__version__,
  24. author=__author__,
  25. author_email='miroslav@miki725.com',
  26. description='Django REST Framework bulk CRUD view mixins',
  27. long_description='\n\n'.join([readme, history, authors, licence]),
  28. url='https://github.com/miki725/django-rest-framework-bulk',
  29. license='MIT',
  30. keywords='django',
  31. packages=find_packages(),
  32. install_requires=requirements,
  33. tests_require=test_requirements,
  34. classifiers=[
  35. 'Development Status :: 3 - Alpha',
  36. 'Framework :: Django',
  37. 'Intended Audience :: Developers',
  38. 'Operating System :: OS Independent',
  39. 'Programming Language :: Python',
  40. 'Programming Language :: Python :: 3',
  41. 'Topic :: Utilities',
  42. 'Topic :: Internet :: WWW/HTTP',
  43. 'License :: OSI Approved :: MIT License',
  44. ],
  45. )