-
Notifications
You must be signed in to change notification settings - Fork 35
/
Copy pathsetup.py
71 lines (61 loc) · 1.87 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
#!/usr/bin/env python
"""Setup for Django Coverage Plugin
Licensed under the Apache 2.0 License
- http://www.apache.org/licenses/LICENSE-2.0
- https://github.com/nedbat/django_coverage_plugin/blob/master/NOTICE.txt
"""
import re
from os.path import dirname, join
from setuptools import setup
def read(*names, **kwargs):
"""Read and return contents of file
Parameter: encoding kwarg may be set
"""
return open(
join(dirname(__file__), *names),
encoding=kwargs.get('encoding', 'utf8')
).read()
classifiers = """\
Environment :: Console
Intended Audience :: Developers
License :: OSI Approved :: Apache Software License
Operating System :: OS Independent
Programming Language :: Python :: 3.8
Programming Language :: Python :: 3.9
Programming Language :: Python :: 3.10
Programming Language :: Python :: 3.11
Programming Language :: Python :: 3.12
Programming Language :: Python :: Implementation :: CPython
Programming Language :: Python :: Implementation :: PyPy
Topic :: Software Development :: Quality Assurance
Topic :: Software Development :: Testing
Development Status :: 5 - Production/Stable
Framework :: Django
Framework :: Django :: 1.11
Framework :: Django :: 2.2
Framework :: Django :: 3.2
Framework :: Django :: 4.2
Framework :: Django :: 5.1
"""
setup(
name='django_coverage_plugin',
version='3.1.0',
description='Django template coverage.py plugin',
long_description=(
re.sub(
'(?ms)^.. start-badges.*^.. end-badges',
'',
read('README.rst'),
)
),
long_description_content_type='text/x-rst',
author='Ned Batchelder',
author_email='ned@nedbatchelder.com',
url='https://github.com/nedbat/django_coverage_plugin',
packages=['django_coverage_plugin'],
install_requires=[
'coverage',
],
license='Apache-2.0',
classifiers=classifiers.splitlines(),
)