forked from Teemu/pytest-sugar
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
76 lines (70 loc) · 2.59 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
72
73
74
75
76
import codecs
from setuptools import setup
# Copied from (and hacked):
# https://github.com/pypa/virtualenv/blob/develop/setup.py#L42
def get_version(filename):
import os
import re
here = os.path.dirname(os.path.abspath(__file__))
f = codecs.open(os.path.join(here, filename), encoding="utf-8")
version_file = f.read()
f.close()
version_match = re.search(
r"^__version__ = ['\"]([^'\"]*)['\"]",
version_file,
re.M,
)
if version_match:
return version_match.group(1)
raise RuntimeError("Unable to find version string.")
setup(
name="pytest-saccharin",
description=(
"pytest-saccharin is a updated fork of pytest-sugar, a plugin"
" for pytest that changes the default look and feel of pytest"
" (e.g. progressbar, show tests that fail instantly)."
),
long_description=codecs.open("README.md", encoding="utf-8").read(),
long_description_content_type="text/markdown",
version=get_version("pytest_sugar.py"),
url="https://github.com/DisruptiveLabs/pytest-saccharin/",
project_urls={
"Source": "https://github.com/DisruptiveLabs/pytest-saccharin/",
"Tracker": "https://github.com/DisruptiveLabs/pytest-saccharin/issues",
},
license="BSD",
author="DisruptiveLabs, Teemu, Janne Vanhala and others",
author_email=", ".join(
[
]
),
py_modules=["pytest_sugar"],
entry_points={"pytest11": ["sugar = pytest_sugar"]},
zip_safe=False,
include_package_data=True,
platforms="any",
install_requires=["pytest>=2.9", "py", "termcolor>=1.1.0", "packaging>=14.1"],
classifiers=[
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"License :: OSI Approved :: BSD License",
"Operating System :: POSIX",
"Operating System :: Microsoft :: Windows",
"Operating System :: MacOS :: MacOS X",
"Topic :: Software Development :: Testing",
"Topic :: Software Development :: Libraries",
"Topic :: Utilities",
"Programming Language :: Python :: 2",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.4",
"Programming Language :: Python :: 3.5",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: Implementation :: PyPy",
],
)