-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
55 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
"""Coverage Environment Plugin""" | ||
import os | ||
|
||
from packaging.markers import default_environment | ||
|
||
DEFAULT_ENVIRONMENT = {} | ||
|
||
|
||
def coverage_init(reg, options): | ||
global DEFAULT_ENVIRONMENT | ||
DEFAULT_ENVIRONMENT.update([ | ||
(k.upper(), v) | ||
for k, v in default_environment().items()]) | ||
|
||
if 'markers' in options: | ||
os.environ.update(DEFAULT_ENVIRONMENT) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
coverage >= 4.0 | ||
packaging |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
[bdist_wheel] | ||
universal = 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
#!/usr/bin/env python | ||
|
||
from setuptools import setup | ||
|
||
classifiers = """\ | ||
Environment :: Console | ||
Intended Audience :: Developers | ||
License :: OSI Approved :: MIT License | ||
Operating System :: OS Independent | ||
Programming Language :: Python :: 2.7 | ||
Programming Language :: Python :: 3.4 | ||
Programming Language :: Python :: 3.5 | ||
Programming Language :: Python :: 3.6 | ||
Programming Language :: Python :: Implementation :: CPython | ||
Programming Language :: Python :: Implementation :: PyPy | ||
Topic :: Software Development :: Quality Assurance | ||
Topic :: Software Development :: Testing | ||
Development Status :: 3 - Alpha | ||
""" | ||
|
||
setup( | ||
name='coverage_env_plugin', | ||
version='0.1', | ||
description='coverage.py environment plugin', | ||
author='John Vandenberg', | ||
author_email='[email protected]', | ||
url='https://github.com/jayvdb/coverage_env_plugin', | ||
py_modules=['coverage_env_plugin'], | ||
install_requires=[ | ||
'coverage >= 4.0', | ||
'packaging', | ||
], | ||
license='MIT License', | ||
classifiers=classifiers.splitlines(), | ||
) |