forked from emilybache/pytest-approvaltests
-
Notifications
You must be signed in to change notification settings - Fork 3
/
setup.py
54 lines (48 loc) · 1.71 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
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
import codecs
import re
from pathlib import Path
from setuptools import setup
def read(fname):
file_path = os.path.join(os.path.dirname(__file__), fname)
return codecs.open(file_path, encoding='utf-8').read()
HERE = Path(__file__).parent
_version_file_contents = (HERE / "version.py").read_text()
matched = re.search(r'"(.*)"', _version_file_contents)
VERSION = matched.group(1) if matched is not None else "UNKNOWN VERSION"
setup(
name='pytest-approvaltests',
version=VERSION,
author='Emily Bache',
author_email='[email protected]',
maintainer='Emily Bache',
maintainer_email='[email protected]',
license='MIT',
url='https://github.com/approvals/pytest-approvaltests',
description='A plugin to use approvaltests with pytest',
long_description=read('README.rst'),
py_modules=['pytest_approvaltests'],
python_requires='>=3.6.1',
install_requires=['pytest>=7.0.1', 'approvaltests'],
classifiers=[
'Development Status :: 4 - Beta',
'Framework :: Pytest',
'Intended Audience :: Developers',
'Topic :: Software Development :: Testing',
'Programming Language :: Python',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: Implementation :: CPython',
'Programming Language :: Python :: Implementation :: PyPy',
'Operating System :: OS Independent',
'License :: OSI Approved :: MIT License',
],
entry_points={
'pytest11': [
'approvaltests = pytest_approvaltests',
],
},
)