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