setup.py 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. #!/usr/bin/env python
  2. # -*- coding: utf-8 -*-
  3. import codecs
  4. import os
  5. from setuptools import setup
  6. # Utility function to read the README file.
  7. # Used for the long_description. It's nice, because now 1) we have a top level
  8. # README file and 2) it's easier to type in the README file than to put a raw
  9. # string in below ...
  10. def read(fname):
  11. file_path = os.path.join(os.path.dirname(__file__), fname)
  12. return codecs.open(file_path, encoding='utf-8').read()
  13. setup(
  14. name='pytest-django',
  15. use_scm_version=True,
  16. description='A Django plugin for pytest.',
  17. author='Andreas Pelme',
  18. author_email='andreas@pelme.se',
  19. maintainer="Andreas Pelme",
  20. maintainer_email="andreas@pelme.se",
  21. url='https://pytest-django.readthedocs.io/',
  22. license='BSD-3-Clause',
  23. packages=['pytest_django'],
  24. long_description=read('README.rst'),
  25. python_requires='>=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*',
  26. setup_requires=['setuptools_scm>=1.11.1'],
  27. install_requires=[
  28. 'pytest>=3.6',
  29. 'pathlib2;python_version<"3.4"',
  30. ],
  31. extras_require={
  32. 'docs': [
  33. 'sphinx',
  34. 'sphinx_rtd_theme',
  35. ],
  36. 'testing': [
  37. 'Django',
  38. 'django-configurations>=2.0',
  39. 'six',
  40. ],
  41. },
  42. classifiers=['Development Status :: 5 - Production/Stable',
  43. 'Framework :: Django',
  44. 'Framework :: Django :: 1.8',
  45. 'Framework :: Django :: 1.9',
  46. 'Framework :: Django :: 1.10',
  47. 'Framework :: Django :: 1.11',
  48. 'Framework :: Django :: 2.0',
  49. 'Framework :: Django :: 2.1',
  50. 'Framework :: Django :: 2.2',
  51. 'Framework :: Django :: 3.0',
  52. 'Framework :: Django :: 3.1',
  53. 'Intended Audience :: Developers',
  54. 'License :: OSI Approved :: BSD License',
  55. 'Operating System :: OS Independent',
  56. 'Programming Language :: Python',
  57. 'Programming Language :: Python :: 2.7',
  58. 'Programming Language :: Python :: 3.4',
  59. 'Programming Language :: Python :: 3.5',
  60. 'Programming Language :: Python :: 3.6',
  61. 'Programming Language :: Python :: 3.7',
  62. 'Programming Language :: Python :: 3.8',
  63. 'Programming Language :: Python :: Implementation :: CPython',
  64. 'Programming Language :: Python :: Implementation :: PyPy',
  65. 'Topic :: Software Development :: Testing',
  66. ],
  67. project_urls={
  68. 'Source': 'https://github.com/pytest-dev/pytest-django',
  69. 'Changelog': 'https://pytest-django.readthedocs.io/en/latest/changelog.html',
  70. },
  71. # the following makes a plugin available to pytest
  72. entry_points={'pytest11': ['django = pytest_django.plugin']})