File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ """Coverage Environment Plugin"""
2+ import os
3+
4+ from packaging .markers import default_environment
5+
6+ DEFAULT_ENVIRONMENT = {}
7+
8+
9+ def coverage_init (reg , options ):
10+ global DEFAULT_ENVIRONMENT
11+ DEFAULT_ENVIRONMENT .update ([
12+ (k .upper (), v )
13+ for k , v in default_environment ().items ()])
14+
15+ if 'markers' in options :
16+ os .environ .update (DEFAULT_ENVIRONMENT )
Original file line number Diff line number Diff line change 1+ coverage >= 4.0
2+ packaging
Original file line number Diff line number Diff line change 1+ [bdist_wheel]
2+ universal = 1
Original file line number Diff line number Diff line change 1+ #!/usr/bin/env python
2+
3+ from setuptools import setup
4+
5+ classifiers = """\
6+ Environment :: Console
7+ Intended Audience :: Developers
8+ License :: OSI Approved :: MIT License
9+ Operating System :: OS Independent
10+ Programming Language :: Python :: 2.7
11+ Programming Language :: Python :: 3.4
12+ Programming Language :: Python :: 3.5
13+ Programming Language :: Python :: 3.6
14+ Programming Language :: Python :: Implementation :: CPython
15+ Programming Language :: Python :: Implementation :: PyPy
16+ Topic :: Software Development :: Quality Assurance
17+ Topic :: Software Development :: Testing
18+ Development Status :: 3 - Alpha
19+ """
20+
21+ setup (
22+ name = 'coverage_env_plugin' ,
23+ version = '0.1' ,
24+ description = 'coverage.py environment plugin' ,
25+ author = 'John Vandenberg' ,
26+ author_email = 'jayvdb@gmail.com' ,
27+ url = 'https://github.com/jayvdb/coverage_env_plugin' ,
28+ py_modules = ['coverage_env_plugin' ],
29+ install_requires = [
30+ 'coverage >= 4.0' ,
31+ 'packaging' ,
32+ ],
33+ license = 'MIT License' ,
34+ classifiers = classifiers .splitlines (),
35+ )
You can’t perform that action at this time.
0 commit comments